[GRASS-user] r.out.gdal and INTERLEAVE=PIXEL

Hello everybody,
I need to export some raster data from GRASS to ArcView; as suggested on the
wiki [1] I used the option INTERLEAVE=PIXEL with r.out.gdal:

r.out.gdal in=elevation.10m format=GTiff type=Float32
createopt="INTERLEAVE=PIXEL" out=output.tif

The problem is that, using gdalinfo, INTERLEAVE is still set to BAND.
Any idea?

Using GRASS 6.4.0svn and GDAL 1.7.1

Thanks
Luca

--
View this message in context: http://n2.nabble.com/r-out-gdal-and-INTERLEAVE-PIXEL-tp4611081p4611081.html
Sent from the Grass - Users mailing list archive at Nabble.com.

thedok78 wrote:

I need to export some raster data from GRASS to ArcView; as
suggested on the wiki [1] I used the option INTERLEAVE=PIXEL with
r.out.gdal:

r.out.gdal in=elevation.10m format=GTiff type=Float32
createopt="INTERLEAVE=PIXEL" out=output.tif

The problem is that, using gdalinfo, INTERLEAVE is still
set to BAND.
Any idea?

Using GRASS 6.4.0svn and GDAL 1.7.1

yes, I can reproduce this: (grass 6.5 + gdal 1.5.2)

#spearfish
G6.5> r.out.gdal elevation.dem out=elev_pix.tif crea="INTERLEAVE=PIXEL"
G6.5> gdalinfo elev_pix.tif | grep INTERLEAVE
  INTERLEAVE=BAND

Hamish

On Mon, Feb 22, 2010 at 1:40 PM, Hamish <hamish_b@yahoo.com> wrote:

thedok78 wrote:

I need to export some raster data from GRASS to ArcView; as
suggested on the wiki [1] I used the option INTERLEAVE=PIXEL with
r.out.gdal:

r.out.gdal in=elevation.10m format=GTiff type=Float32
createopt="INTERLEAVE=PIXEL" out=output.tif

The problem is that, using gdalinfo, INTERLEAVE is still
set to BAND.
Any idea?

Using GRASS 6.4.0svn and GDAL 1.7.1

yes, I can reproduce this: (grass 6.5 + gdal 1.5.2)

#spearfish
G6.5> r.out.gdal elevation.dem out=elev_pix.tif crea="INTERLEAVE=PIXEL"
G6.5> gdalinfo elev_pix.tif | grep INTERLEAVE
INTERLEAVE=BAND

IMHO best will be to open a GDAL ticket for this.

Markus

Hamish wrote:

thedok78 wrote:
  

I need to export some raster data from GRASS to ArcView; as
suggested on the wiki [1] I used the option INTERLEAVE=PIXEL with
r.out.gdal:

r.out.gdal in=elevation.10m format=GTiff type=Float32
createopt="INTERLEAVE=PIXEL" out=output.tif

The problem is that, using gdalinfo, INTERLEAVE is still
set to BAND.
Any idea?

Using GRASS 6.4.0svn and GDAL 1.7.1
    
yes, I can reproduce this: (grass 6.5 + gdal 1.5.2)

#spearfish
G6.5> r.out.gdal elevation.dem out=elev_pix.tif crea="INTERLEAVE=PIXEL"
G6.5> gdalinfo elev_pix.tif | grep INTERLEAVE
  INTERLEAVE=BAND
  

The INTERLEAVE option has no effect with elevation.10m because this is a raster, not a raster group, only one band is exported and there is nothing to interleave, this option and the suggestion in the wiki applies only to multi-band GeoTIFF.

Markus M

Thanks for all your answer.
This is the reply from the Gdal list:
http://trac.osgeo.org/gdal/ticket/3433

My problem is how to export a raster to be used inside ArcGIS..the procedure
on the wiki [1] uses INTERLEAVE=PIXEL .
If I use a standard r.out.gdal syntax, the min shown is 2.22 *e^-308 and the
max 1.97*e^308

Anyone has got experience on this task?

Thanks
Luca

[1] :
http://grass.osgeo.org/wiki/Tips_for_Arc_users#Raster_import.2Fexport_commands
--
View this message in context: http://n2.nabble.com/r-out-gdal-and-INTERLEAVE-PIXEL-tp4611081p4621558.html
Sent from the Grass - Users mailing list archive at Nabble.com.

thedok78 wrote:

Thanks for all your answer.
This is the reply from the Gdal list:
http://trac.osgeo.org/gdal/ticket/3433

My problem is how to export a raster to be used inside ArcGIS..the procedure
on the wiki [1] uses INTERLEAVE=PIXEL .
  

... for multi-band raster exports

If I use a standard r.out.gdal syntax, the min shown is 2.22 *e^-308 and the
max 1.97*e^308
  

... in some ESRI product I guess. That's a bug in that ESRI product, it should use something like -DBL_MAX but uses DBL_MIN, which would be the potential data range but not the actual data range. File a bug with ESRI, wait for it to get fixed, download the fixed version. Alternatively, adjust the symbology for the raster map you want to display, if you're lucky, the ESRI product you are using offers a number of different color rules to be applied to your raster map.

thedok78 wrote:

If I use a standard r.out.gdal syntax, the min shown is
2.22 *e^-308 and the max 1.97*e^308

try different values for the type= option.

Hamish