Got error while converting the low resolution data to high resolution data
이전 댓글 표시
I have some satellite data sets, which have a resolution of 2.5 degree. I want to make it to 0.1 degree resolution data. I have used some technique, but everytime i got some error. I am attaching the corresponding file and the code by which I have tried to regrid the data in higher resolution.
>> [loni,lati] = meshgrid(min_lon:1/4:max_lon,max_lat:-1/4:min_lat);
>> [loni,lati] = meshgrid(min_lon:1/10:max_lon,max_lat:-1/10:min_lat);
>> h = xch4_l3_mean(:,:,1);
>> h2 = interp2(lon,lat,h,loni,lati);
Error using interp2>makegriddedinterp (line 232)
Input grid is not a valid MESHGRID.
Error in interp2 (line 136)
F = makegriddedinterp(X, Y, V, method,extrap);
>> h2 = griddata(lon,lat,h,loni,lati);
Error using scatteredInterpolant
The input points must be a double array.
Error in griddata>useScatteredInterp (line 185)
F = scatteredInterpolant(inargs{1}(:),inargs{2}(:),inargs{3}(:), ...
Error in griddata (line 126)
vq = useScatteredInterp(inputargs, numarg, method, 'none');
The data can be found using the following codes :
lon = h5read('GOSATTFTS2019010120190131_03C02SV0295.h5','/Data/geolocation/longitude');
lat = h5read('GOSATTFTS2019010120190131_03C02SV0295.h5','/Data/geolocation/latitude');
xch4 = h5read('GOSATTFTS2019010120190131_03C02SV0295.h5','/Data/mixingRatio/XCH4');)
댓글 수: 1
Walter Roberson
2021년 8월 7일
xch4_l3_mean
We do not know what that one is.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 CubeSat and Satellites에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!