[GRASS-dev] Additional switch(es) for <g.mapsets>?

Martin Landa landa.martin at gmail.com
Sat Feb 16 05:54:48 PST 2013


Hi,

2013/2/16 Nikos Alexandris <nik at nikosalexandris.net>:
> A use case is, for example, that I need to selectively use  i.landsat.toar  on
> many Mapsets (that is, on many Landsat scenes) with the default
> method(=uncorrected) and produce At-Sensor-Reflectances while performing
> conversion to Top-of-Atmosphere Radiance with  i.landsat.toar's  "-r" switch.
>
> Currently, in bash-scripting G7, I try first to remove access to all mapsets
> but the current (of course) as follows:
>
> # one-liner!
> g.mapsets mapset=$(g.mapsets -p sep=newline | grep -v `g.mapset -p` | tr "\n"
> ",") operation=remove

If I understood well, you want something like

g.mapsets set=<current_mapset>

?

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list