[GRASS-user] error opening netcdf file
Chiara Scaini
chiara.scaini at bsc.es
Tue Apr 5 08:59:22 EDT 2011
hi everybody
this is my first post :-)
i'm working with meteo data.
usually i open netcdf with qgis and then import them in grass, using
the r.in.gdal.
grass/qgis error in command line is:
Loaded : GdalTools (package: GdalTools)
100%
ERROR 4: `/home/cscaini/Desktop/meteo/
WRF-Puerto/prova.nc' not recognised as a supported file format.
100%
Warning: QProcess: Destroyed while process is still running.
100%
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
ERROR 6: No translation an empty SRS to PROJ.4 format is known.
GRASS 6.4.0 (barcelona):~ > exit^C
i have a .nc file that i cannot import,
so i tryed by command line to investigate what happens
ncdump -h gives a normal output starting like this:
netcdf Con-001.res {
dimensions:
lon = 151 ;
lat = 151 ;
alt = 33 ;
time = UNLIMITED ; // (25 currently)
variables:
float lon(lon) ;
lon:units = "degrees_east" ;
lon:description = "longitude. East positive" ;
float lat(lat) ;
lat:units = "degrees_north" ;
lat:description = "latitude. North positive" ;
float alt(alt) ;
alt:units = "m" ;
alt:description = "heights (a.s.l.)" ;
float time(time) ;
time:units = "h" ;
time:description = "time after 0000UTC" ;
etc etc etc
but when i try to do a gdalinfo, or translate it into geotiff, this is
the message i get:
cscaini at cscaini-ThinkPad-T400:~/Desktop$ gdal_translate -a_srs WGS84
-sds prova2.nc prova-translation
ERROR 4: `prova2.nc' not recognised as a supported file format.
GDALOpen failed - 4
`prova2.nc' not recognised as a supported file format.
cscaini at cscaini-ThinkPad-T400:~/Desktop$ gdalinfo prova2.nc
ERROR 4: `prova2.nc' not recognised as a supported file format.
gdalinfo failed - unable to open 'prova2.nc'.
does everybody know which could be the problem?
this file is generated by WRF weather forecast model, and then
modified.
(i attached the file)
with packages netcdf, gdal, etc, everything should be ok,
because until today i could manage netcdf without problems directly in
grass
thank you very much :-)
chiara scaini
WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.
http://www.bsc.es/disclaimer.htm
More information about the grass-user
mailing list