[gdal-dev] VRT file from NetCDF

Yves Jacolin yjacolin at free.fr
Tue Dec 13 07:21:41 EST 2011


Le mardi 13 décembre 2011 13:01:24, Even Rouault a écrit :
> Selon Yves Jacolin <yjacolin at free.fr>:
> > Hello,
> > 
> > I am trying to create vrt files from netcdf files using only one
> > subdataset. FYI, the second step will be to create a vrt file with two
> > bandes linked to two
> > subdataset.
> > 
> > I am using a first vrt file for begining created from a tif file as
> > template. The
> > vrt file using tif file is working correctly. The tiff file has been
> > created by
> > gdal_translate from the netcdf file.
> > 
> > If I try to open the vrt file linked to netcdf file in QGIS no data is
> > dispaly,
> > values are null for all the dataset. QGIS medatada says "no data value".
> > 
> > Any idea?
> 
> Yves,
> 
> did you try to create the VRT with "gdal_translate -of VRT netCDF:xxxxx
> netcdf.vrt" and see if it shows up correctly in QGIS (it should...). ? Then
> you can compare with the VRT you've created at hand.
> 
Even,

I tested and compared both files and they are similar (except that with 
gdal_translate I have Metadata tags). Both are not working in QGIS: no value 
in dataset! Translating into GTIFF is working but I want to keep vrt files to 
working on them with MapServer.

I can send you netcdf and vrt file if you want to test it.

Thanks,

Y.
-- 
Yves Jacolin

http://yjacolin.gloobe.org


More information about the gdal-dev mailing list