Opened 15 years ago

Last modified 15 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:
Cc:

Description

Hi,
I'm trying to import a ncdf file into grass, but gdalinfo not recognized the
file (neither r.in.gdal):

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
  JPEG (rw): JPEG JFIF
  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




#gdalinfo bmrc_6fix_clt_ca_map.nc
ERROR 4: `bmrc_6fix_clt_ca_map.nc' not recognised as a supported file format.

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


Thank you for your help

marta

Attachments (1)

echam3_0fix_tas_va_map.nc (33.8 KB) - added by marta.benito@… 15 years ago.
netcdf file for testing if is generated by GMT

Download all attachments as: .zip

Change History (6)

comment:1 Changed 15 years ago by warmerdam

Marta,

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.

Changed 15 years ago by marta.benito@…

Attachment: echam3_0fix_tas_va_map.nc added

netcdf file for testing if is generated by GMT

comment:2 Changed 15 years ago by marta.benito@…

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

thanks again 

marta

comment:3 Changed 15 years ago by warmerdam

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

comment:4 Changed 15 years ago by warmerdam

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 Changed 15 years ago by marta.benito@…

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

regards 

marta
Note: See TracTickets for help on using tickets.