Wednesday 23 October 2019

gdal - Converting netCDF to geotiff file?


NetCDF files downloaded from


could not be converted to geotiff using gdaltranslate command below:


 gdal_translate -ot float32 -unscale -CO COMPRESS=deflate NETCDF:"A2006001170000.L2_LAC_OC.x.nc":chlor_a fulldisk.tif

The error message is the following:


Warning 1: NetCDF driver detected file type=5, but libnetcdf detected type=3
Warning 1: NETCDF:A2006001170000.L2_LAC_OC.x.nc:chlor_a is a netCDF file, but chlor_a is not a variable.

ERROR 4: `NETCDF:A2006001170000.L2_LAC_OC.x.nc:chlor_a' does not exist in the file system, and is not recognized as a supported dataset name.

I got the NetCDF file from NASA ocean color website.


Is there any way of fixing the issue?



Answer



Try


gdal_translate -ot float32 -unscale -CO COMPRESS=deflate HDF5:"A2006001170000.L2_LAC_OC.nc"://geophysical_data/chlor_a fulldisk.tif

enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...