Re: [gdal-dev] HDF4 python add band

2014-04-28 Thread Even Rouault
Luca, > > Ok, so I could create a MEM dataset and fill it and at the end of my > process CreateCopy() to a new HDF4Image. (I'm merging several HDF in > one) Hum, no. There's actually no specialized implementation of CreateCopy() in the HDF4Image driver, so the generic CreateCopy() implementation

Re: [gdal-dev] HDF4 python add band

2014-04-27 Thread Etienne Tourigny
It might be easier to use dedicated software for this. No the same but related, there are quite a few libraries out there for joining and editing netcdf files, there is probably the same for hdf files. cheers Etienne On Mon, Apr 28, 2014 at 2:58 AM, Luca Delucchi wrote: > On 27 April 2014 11:2

Re: [gdal-dev] HDF4 python add band

2014-04-27 Thread Luca Delucchi
On 27 April 2014 11:20, Even Rouault wrote: > Luca, > Hi Even, > very few drivers (and formats) support AddBand (the only ones are MEM and > VRT), mostly because it would imply in most cases to completely rewrite the > structure of what is already on disk. > ok, > Currently, with current code,

Re: [gdal-dev] HDF4 python add band

2014-04-27 Thread Even Rouault
Luca, very few drivers (and formats) support AddBand (the only ones are MEM and VRT), mostly because it would imply in most cases to completely rewrite the structure of what is already on disk. Currently, with current code, your only option is to specify the right number of bands at Create() t

[gdal-dev] HDF4 python add band

2014-04-26 Thread Luca Delucchi
Hi everybody, I'm working with HDF4Image and Python bindings, I would like to add new band after create the layer. When I try to use AddBand function it return: ERROR 6: "FILENAME" Dataset does not support the AddBand() method. It should be possible to make possible to use AddBand() also for th