Hi,
is there any option so I can convert many files or a folder (for example, 500 images from .asc to .tif) together at once, so that they will have matching color analysis? I use to do this untill now with Globalmapper, the “batch convert/reproject” option and I would like to do it through Grass or another open source gis program.
Thank you.
There are several options. You could do a shell script to import all
files in grass (very easy in linux) or I believe grass gui has a batch
import feature. Also, QGis has a gdal plugin that will let you convert
several files at once (I think it's in raster / gdaltools /
transform).
To set the same color for all rasters, once in grass you can see what
is your high and low value and set the correct color for one of the
rasters. Then you just use r.colors to copy the colortable from one
raster to all the rest.
cheers
Daniel
On Fri, May 11, 2012 at 5:23 AM, giannis Nj <netsagief@hotmail.com> wrote:
Hi,
is there any option so I can convert many files or a folder (for example,
500 images from .asc to .tif) together at once, so that they will have
matching color analysis? I use to do this untill now with Globalmapper, the
"batch convert/reproject" option and I would like to do it through Grass or
another open source gis program.
Thank you.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
dear all,
I recently published a grass script for focussing surveys. The name is r.finder, hoping it can be of help for somebody…
you can find it at:
www.palombini.net/sw/finder
with explanations, manual and a brief tutorial
(the script purposes summary is copied below)
All the best
Agu
r.finder
by Augusto Palombini
r.finder is a GRASS-GIS script created for the intelligent geographic survey, in order to check the analogies of the places where some known items are located and show the most similar areas in the region. r.finder outs a map containing all cells matching the same combination of thematic maps parameters of the non-null/non-zero cells in the input map. May out as well a statistical report and graphs of the cell values.
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Dr Augusto Palombini PhD
www.palombini.net
- archeologo - archaeologist -
ricercatore - researcher
CNR (National Research Council of Italy)
ITABC - Institute for Technologies applied to Cultural Heritage
Virtual Heritage Lab http://www.vhlab.itabc.cnr.it
(+39) 06 90672721 - 06 90672448
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
On Fri, May 11, 2012 at 10:23 AM, giannis Nj <netsagief@hotmail.com> wrote:
is there any option so I can convert many files or a folder (for example,
500 images from .asc to .tif) together at once,
gdalwarp can do that well:
RES=10.0
BIGTIFF="-co BIGTIFF=YES"
# in megabytes
CACHE="--config GDAL_CACHEMAX 8000 -wm 8000"
LIST="`ls ???.tif`"
# fix some no data on the fly
# for reprojection, using -r and -tr (don't use otherwise)
gdalwarp $CACHE $BIGTIFF -srcnodata 65535 -dstnodata 65535 -r bilinear
-tr $RES $RES $LIST out_$RES.tif
gdaladdo out_$RES.tif 2 4 8 16 32
so that they will have matching color analysis?
This would require histogram matching.
Best
Markus