Opened 18 years ago

Last modified 18 years ago

#636 closed defect (fixed)

netCDF file not recognized

Reported by: marta.benito@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:


I'm trying to import a ncdf file into grass, but gdalinfo not recognized the
file (neither

but should recognize it with the configuration:

#gdalinfo --formats
Supported Formats:
  VRT (rw): Virtual Raster
  GTiff (rw): GeoTIFF
  NITF (rw): National Imagery Transmission Format
  HFA (rw): Erdas Imagine Images (.img)
  SAR_CEOS (ro): CEOS SAR Image
  CEOS (ro): CEOS Image
  ELAS (rw): ELAS
  AIG (ro): Arc/Info Binary Grid
  AAIGrid (rw): Arc/Info ASCII Grid
  SDTS (ro): SDTS Raster
  DTED (rw): DTED Elevation Raster
  PNG (rw): Portable Network Graphics
  MEM (rw): In Memory Raster
  JDEM (ro): Japanese DEM (.mem)
  GIF (rw): Graphics Interchange Format (.gif)
  ESAT (ro): Envisat Image Format
  BSB (ro): Maptech BSB Nautical Charts
  XPM (rw): X11 PixMap Format
  BMP (rw): MS Windows Device Independent Bitmap
  PCIDSK (rw): PCIDSK Database File
  netCDF (rw): network Common Data Format
  PNM (rw): Portable Pixmap Format (netpbm)
  DOQ1 (ro): USGS DOQ (Old Style)
  DOQ2 (ro): USGS DOQ (New Style)
  ENVI (rw): ENVI .hdr Labelled
  EHdr (rw): ESRI .hdr Labelled
  PAux (rw): PCI .aux Labelled
  MFF (rw): Atlantis MFF Raster
  MFF2 (rw): Atlantis MFF2 (HKV) Raster
  FujiBAS (ro): Fuji BAS Scanner Image
  GSC (ro): GSC Geogrid
  FAST (ro): EOSAT FAST Format
  BT (rw): VTP .bt (Binary Terrain) 1.3 Format
  LAN (ro): Erdas .LAN/.GIS
  CPG (ro): Convair PolGASP
  L1B (ro): NOAA Polar Orbiter Level 1b Data Set
  FIT (rw): FIT Image
  USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
  GXF (ro): GeoSoft Grid Exchange Format

ERROR 4: `' not recognised as a supported file format.

GDALOpen failed - 4
`' not recognised as a supported file format.

Thank you for your help


Attachments (1) (33.8 KB ) - added by marta.benito@… 18 years ago.
netcdf file for testing if is generated by GMT

Download all attachments as: .zip

Change History (6)

comment:1 by warmerdam, 18 years ago


GDALs netCDF support currently only support files that are produced by GMT. 
You didn't attach the file in question, so I can't verify if that is the issue
or not.  

I have modified the netCDF reader now to issue a warning if given a netCDF file
that doesn't have the expected GMT format.

by marta.benito@…, 18 years ago

Attachment: added

netcdf file for testing if is generated by GMT

comment:2 by marta.benito@…, 18 years ago

Thanks for your answer and I have just send you the file 

thanks again 


comment:3 by warmerdam, 18 years ago

I have confirmed this is a non-GMT netCDF file. 

comment:4 by warmerdam, 18 years ago

BTW, I can convert this to GeoTIFF or some other format for you if you wish.
I am able to read it in GDAL via the OPeNDAP connector.  

comment:5 by marta.benito@…, 18 years ago

Thanks a lot I will try to do something similar, because I have a lot of maps, 


Note: See TracTickets for help on using tickets.