[GRASS-user] r.in.onearth

Trying to use the r.in.onearth on the way like below:

r.in.onearth -l output=landsat_tm_7 file=/tmp/test tmband=visual 'wgetopt=-t 0'

I got the error message like below (see the output in the P.S.) The Grass is 6.3.CVS from 20.8.2006, compiled on Ubuntu 6.06.

What's wrong - something with Gdal, the wget or is it a bug of the r.in.onearth?

Thanks

Tomas

p.s. the output:

=======================================================
Will download and import LandsatTM Data with band visual

************** DOWNLOAD DATA ****************
Requesting Data from http://wms.jpl.nasa.gov/wms.cgi
--00:41:52-- http://wms.jpl.nasa.gov/wms.cgi
           => `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020'
Resolving wms.jpl.nasa.gov... 137.78.11.25
Connecting to wms.jpl.nasa.gov|137.78.11.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/vnd.ogc.se_xml]

    0K 7.21 MB/s

00:41:54 (7.21 MB/s) - `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' saved [325]

Downloaded file is not a GeoTiff file, but will try to import
************** CHECK DATA *****************
ERROR 4: `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

GDALOpen failed - 4
`/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

ERROR 4: `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

GDALOpen failed - 4
`/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

!-------------------BREAK---------------------!
Downloaded file is not supported by gdal, or cannot be imported
File of Type: XML document text

Message from Server http://wms.jpl.nasa.gov/wms.cgi

!------------BEGIN-ERROR-MESSGAE--------------!
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd ">
<ServiceExceptionReport version="1.1.0">
  <ServiceException>
    Requested image is too wide, max allowed width is 4096
  </ServiceException>
</ServiceExceptionReport>
!-------------END-ERROR-MESSGAE---------------!

========
Finished

Hi,
the XML error message from the NASA server says the image you want
to download is too big -> more than 4096 cols. You need to change your region resolution or you have to download the image in tiles smaller than 4096 cols or rows.

The NASA server had send the XML error message instead of an image, so r.in.gdal was not able to import.

best regards
soeren

lanczos@t-zones.sk schrieb:

Trying to use the r.in.onearth on the way like below:

r.in.onearth -l output=landsat_tm_7 file=/tmp/test tmband=visual 'wgetopt=-t 0'

I got the error message like below (see the output in the P.S.) The Grass is 6.3.CVS from 20.8.2006, compiled on Ubuntu 6.06.

What's wrong - something with Gdal, the wget or is it a bug of the r.in.onearth?

Thanks

Tomas

p.s. the output:

=======================================================
Will download and import LandsatTM Data with band visual

Requesting Data from http://wms.jpl.nasa.gov/wms.cgi
--00:41:52-- http://wms.jpl.nasa.gov/wms.cgi
           => `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020'
Resolving wms.jpl.nasa.gov... 137.78.11.25
Connecting to wms.jpl.nasa.gov|137.78.11.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/vnd.ogc.se_xml]

    0K 7.21 MB/s

00:41:54 (7.21 MB/s) - `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' saved [325]

Downloaded file is not a GeoTiff file, but will try to import
************** CHECK DATA *****************
ERROR 4: `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

GDALOpen failed - 4
`/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

ERROR 4: `/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

GDALOpen failed - 4
`/home/tomas/grassdata/srtm40_03/tomas/.tmp/tomas/10568.0/Image_global_mosaic_base_visual_6019_12020' not recognised as a supported file format.

!-------------------BREAK---------------------!
Downloaded file is not supported by gdal, or cannot be imported
File of Type: XML document text
Message from Server http://wms.jpl.nasa.gov/wms.cgi
!------------BEGIN-ERROR-MESSGAE--------------!
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd ">
<ServiceExceptionReport version="1.1.0">
  <ServiceException>
    Requested image is too wide, max allowed width is 4096
  </ServiceException>
</ServiceExceptionReport>
!-------------END-ERROR-MESSGAE---------------!

Finished

------------------------------------------------------------------------

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Sören Gebbert wrote:

the XML error message from the NASA server says the image you want
to download is too big -> more than 4096 cols. You need to change your
region resolution or you have to download the image in tiles smaller
than 4096 cols or rows.

The NASA server had send the XML error message instead of an image, so
r.in.gdal was not able to import.

+++

eval `g.region -g | grep '^rows='`
eval `g.region -g | grep '^cols='`

if [ "$rows" -ge 4096 ] || [ "$cols" -ge 4096 ] ; then
   echo "ERROR: Region too large for server. Must be smaller than 4096x4096." 1>&2
   exit 1
fi

+++

Hamish