[gdal-dev] Why not netCDF output?
Even Rouault
even.rouault at mines-paris.org
Mon Sep 27 15:02:55 EDT 2010
Joaquim,
The valid formats for the output of gdalwarp are formats that support the
Create() method, not just the CreateCopy() method. This is indicated by (rw+)
: the + indicates that Create() is supported.
The difference between Create() and CreateCopy() is mainly that Create() allows
writing of pixel data in random order, which is needed by gdalwarp.
You can try in 2 steps :
1) gdalwarp -of VRT lixo.grd [other_options] temp.vrt
2) gdal_translate -of netCDF temp.vrt proj.grd
Best regards,
Even
> Hi
>
> While running this command
>
> gdalwarp -s_srs +proj=latlong -t_srs "+proj=ortho +lon_0=-42 +lat_0=40
> +ellps=WGS84" -of netCDF lixo.grd proj.grd
>
> I get
>
> Output driver `netCDF' not recognised or does not support direct output
> file creation. The following format drivers are configured
> (a format list where netCDF is not listed)
>
> but if I ask gdalwarp the list of formats, netCDF is listed there as
> (rw). Furthermore
>
> gdalwarp --format netCDF
> Format Details:
> Short Name: netCDF
> Long Name: Network Common Data Format
> Extension: nc
> Help Topic: frmt_netcdf.html
> Supports: CreateCopy() - Create dataset by copying another.
>
> ??
>
> Joaquim Luis
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list