Got error while converting the low resolution data to high resolution data
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 7 Août 2021
xch4_l3_mean
We do not know what that one is.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur CubeSat and Satellites dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!