I have a data which is in .nc format. I want to extract a variable which is in XxYxZ dimensions for example 4032x496x3 inside the netcdf file. But the problem is when using gdal_translate it is reading it in the dimensions ZxYxX that is, it outputs Input file size is 3, 496.

Is there any way that i can specify the dimensions of input file, or any other method to shift the dimension Z in palce of X and then use gdal_translate?

here is the gdalinfo of my data

and gdal_translate code

I have used

sample file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.