[gdal-dev] Re: gdalwarp capability to output as netCDF format
Hendy Sumanto
hsumanto at vpac.org
Tue Aug 30 23:24:16 EDT 2011
Thanks for both Chaitanya kumar CH and Even Rouault for your replies.
I will make a request to implement the Create method for the NetCDF driver so that gdalwarp can output as netCDF format
on the NetCDF improvements thread.
Regards,
Hendy
----- Original Message -----
From: "Even Rouault" <even.rouault at mines-paris.org>
To: "Chaitanya kumar CH" <chaitanya.ch at gmail.com>
Cc: "Hendy Sumanto" <hsumanto at vpac.org>, gdal-dev at lists.osgeo.org
Sent: Wednesday, 24 August, 2011 9:49:55 PM
Subject: Re: [gdal-dev] Re: gdalwarp capability to output as netCDF format
Selon Chaitanya kumar CH <chaitanya.ch at gmail.com>:
I'd note that implementing Create() is not always possible, depending on the
caracteristics of the format iself and/or the library that enables the access to
it. For netCDF, I can't say, being not versed into the format. There's perhaps
hope that it is doable since I see that the nc_put_vara_double() API that is
called in CreateCopy() takes as argument the offset where to write the buffer,
but it is not a guarantee that random access is possible.
Without changing the code, you still have the possibility to warp into a format
that supports Create() and translate into netCDF afterwards. The intermediate
format could be VRT if you want to save disk space. Of course, in that case, the
translate step will be a bit longer since it will do the warping on the fly.
> Hendy,
>
> Currently, there are no plans to implement the Create method for the netCDF
> driver. You can formally request for it by creating a ticket in the gdal
> trac page [1].
>
> To implement the method yourselves, you have to look at the current driver
> page[2] and the driver implementation tutorial page[3].
>
> [1]: http://trac.osgeo.org/gdal/
> [2]: http://www.gdal.org/frmt_netcdf.html
> [3]: http://www.gdal.org/gdal_drivertut.html
>
> On Wed, Aug 24, 2011 at 2:20 PM, Hendy Sumanto <hsumanto at vpac.org> wrote:
>
> > I probably should change the question to this to make it clearer.
> > Does anyone know whether there is plan to implement Create method for
> > netCDF driver as currently it is only support only CreateCopy method?
> > If no, could someone please describe what steps would be involved to add
> > this method to the netCDF driver as I am pretty new to GDAL.
> >
> > Thanks.
> >
> > Regards,
> >
> > Hendy
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
>
> +91-9494447584
> 17.2416N 80.1426E
>
More information about the gdal-dev
mailing list