[GRASS-dev] limits of r.patch

Margherita Di Leo dileomargherita at gmail.com
Mon Jul 16 01:53:27 PDT 2012


Hi,

thank you all for answering,

On Sun, Jul 15, 2012 at 10:11 PM, Markus Neteler <neteler at osgeo.org> wrote:

>
>
> Alternative:
> Make the mosaik with gdalwarp and import/register this single file.
> Here a simple script, using the GDAL cache to speed up (you'll
> need to adapt it):
>
>
> RES=10.0
>

Markus, in my case resolution is  RES=0:00:01, should I use decimal degrees
(RES=0.000278 , not sure it is correct) ?

BIGTIFF="-co BIGTIFF=YES"
> # GDAL cache in megabytes
> CACHE="--config GDAL_CACHEMAX 8000 -wm 8000"
>
> LIST="`ls aster*.tif`"
>
> gdalwarp $CACHE $BIGTIFF -srcnodata 65535 -dstnodata 65535 -r bilinear
>
-tr $RES $RES $LIST mosaik_$RES.tif
> gdaladdo mosaik_$RES.tif 2 4 8 16 32
>
> Hope this helps,
> Markus
>

My steps are the following:

# RES=0:00:01
RES=0.000278
BIGTIFF="-co BIGTIFF=YES"
# GDAL cache in megabytes
CACHE="--config GDAL_CACHEMAX 8000 -wm 8000"
# Select from the complete ASTER coverage, the limits for Europe, and put
it in a LIST:
LIST="ogr2ogr -f index_dem.shp -spat -11.0001389 33.9998611 43.0001389
72.0001389 "
gdalwarp $CACHE $BIGTIFF -srcnodata * -dstnodata * -r bilinear -tr $RES
$RES $LIST mosaik_$RES.tif

But I get:

[leomarg at d01ri1002912 Dem_lzw]$ gdalwarp $CACHE $BIGTIFF -srcnodata *
-dstnodata * -r bilinear -tr $RES $RES $LIST mosaik_$RES.tif

Usage: gdalwarp [--help-general] [--formats]
    [-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"]
    [-order n] [-tps] [-rpc] [-geoloc] [-et err_threshold]
    [-te xmin ymin xmax ymax] [-tr xres yres] [-tap] [-ts width height]
    [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]
    [-srcnodata "value [value...]"] [-dstnodata "value [value...]"]
-dstalpha
    [-r resampling_method] [-wm memory_in_mb] [-multi] [-q]
    [-cutline datasource] [-cl layer] [-cwhere expression]
    [-csql statement] [-cblend dist_in_pixels]
    [-of format] [-co "NAME=VALUE"]* [-overwrite]
    srcfile* dstfile

Available resampling methods:
    near (default), bilinear, cubic, cubicspline, lanczos.


where am I wrong?

TIA




-- 
Dr. Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20120716/9e61e340/attachment.html>


More information about the grass-dev mailing list