[GRASS-dev] g.mlist: exclude parameter wish
Markus Neteler
neteler at osgeo.org
Wed Nov 19 04:20:54 EST 2008
Hi,
would it be complicated to add an "exclude_pattern" parameter to
g.mlist/g.mremove?
Example: I want to select only the gpcp_1dd_p1d_*_count maps but not the monthly
counts:
g.mlist type=rast patt="gpcp_1dd_p1d_*_count"
gpcp_1dd_p1d_1997_2007_month04_10_count
gpcp_1dd_p1d_1997_count
gpcp_1dd_p1d_1997_month04_10_count
gpcp_1dd_p1d_1998_count
gpcp_1dd_p1d_1998_month04_10_count
gpcp_1dd_p1d_1999_count
gpcp_1dd_p1d_1999_month04_10_count
gpcp_1dd_p1d_2000_count
gpcp_1dd_p1d_2000_month04_10_count
gpcp_1dd_p1d_2001_count
gpcp_1dd_p1d_2001_month04_10_count
gpcp_1dd_p1d_2002_count
gpcp_1dd_p1d_2002_month04_10_count
gpcp_1dd_p1d_2003_count
gpcp_1dd_p1d_2003_month04_10_count
gpcp_1dd_p1d_2004_count
gpcp_1dd_p1d_2004_month04_10_count
gpcp_1dd_p1d_2005_count
gpcp_1dd_p1d_2005_month04_10_count
gpcp_1dd_p1d_2006_count
gpcp_1dd_p1d_2006_month04_10_count
gpcp_1dd_p1d_2007_count
gpcp_1dd_p1d_2007_month04_10_count
Wish (ideal world):
g.mlist type=rast patt="gpcp_1dd_p1d_*_count" exclude="month"
gpcp_1dd_p1d_1997_count
gpcp_1dd_p1d_1998_count
gpcp_1dd_p1d_1999_count
gpcp_1dd_p1d_2000_count
gpcp_1dd_p1d_2001_count
gpcp_1dd_p1d_2002_count
gpcp_1dd_p1d_2003_count
gpcp_1dd_p1d_2004_count
gpcp_1dd_p1d_2005_count
gpcp_1dd_p1d_2006_count
gpcp_1dd_p1d_2007_count
I know that -r and -e are available but I failed to write an exclusion regex.
And often just simple patterns are to be suppressed in the selection.
Markus
More information about the grass-dev
mailing list