Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-15 Thread Even Rouault
ire Luís ; Even Rouault ; gdal-dev@lists.osgeo.org *Subject:* RE: [gdal-dev] Writing multi-bands vs multi-datasets On more. The warning about “No 1D variable is indexed by dimension time” turned out to be because I was calling Gdal.setmetadataitem(ds, "NETCDF_DIM_EXTRA", “{time}”) (li

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-15 Thread Joaquim Manuel Freire Luís
CRS is tored so I can find it from other programs? Also, is there a way of setting the "actual_range" and "_Fillvalue" data attributes? Joaquim From: Joaquim Manuel Freire Luís Sent: Thursday, October 14, 2021 9:03 PM To: Joaquim Manuel Freire Luís ; Even Rouault ; gdal

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
de that warning go away. From: gdal-dev On Behalf Of Joaquim Manuel Freire Luís Sent: Thursday, October 14, 2021 8:42 PM To: Even Rouault ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Writing multi-bands vs multi-datasets Much better (I was confused by those curly braces thinking it was part o

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
hat vector of strings should be translated automatically to a "char *string[]" and GDAL expects the "-co" (I think) From: Even Rouault Sent: Thursday, October 14, 2021 8:14 PM To: Joaquim Manuel Freire Luís ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Writing multi-bands

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Even Rouault
    crs = Gdal.getproj(cube, wkt=true)    (crs != "" ) && Gdal.setproj!(ds, crs) Gdal.unsafe_copy(ds, filename=fname, driver=getdriver("netCDF"), options=["-co", "FORMAT=NC4", "-co", "COMPRESS=DEFLATE", "-co"

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
fname, driver=getdriver("netCDF"), options=["-co", "FORMAT=NC4", "-co", "COMPRESS=DEFLATE", "-co", "ZLEVEL=4"]) end From: Even Rouault Sent: Sunday, October 10, 2021 10:48 PM To: Joaquim Manuel Freire Luís ; gdal-dev@lists.osgeo

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-10 Thread Joaquim Manuel Freire Luís
I see thanks, will study it. I'll end up learning some python at the force of studying it's examples Joaquim From: Even Rouault Sent: Sunday, October 10, 2021 10:48 PM To: Joaquim Manuel Freire Luís ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Writing multi-bands vs mult

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-10 Thread Even Rouault
Joaquim, https://github.com/OSGeo/gdal/pull/4634 should hopefully help Even Le 10/10/2021 à 22:26, Joaquim Manuel Freire Luís a écrit : Hi, I have a Julia version of gdal_translate (that ends up calling GDALDatasetRasterIOEx) that works in saving a MxNxP array, but not the way I wanted.

[gdal-dev] Writing multi-bands vs multi-datasets

2021-10-10 Thread Joaquim Manuel Freire Luís
Hi, I have a Julia version of gdal_translate (that ends up calling GDALDatasetRasterIOEx) that works in saving a MxNxP array, but not the way I wanted. It creates a multi-subdatasets file, whilst what I wished is to write a multi-band file. For example, the file written with this Julia functio