EnglishFrenchSpanish

OnWorks favicon

g.listgrass - Online in the Cloud

Run g.listgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command g.listgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


g.list - Lists available GRASS data base files of the user-specified data type optionally
using the search pattern.

KEYWORDS


general, map management, list

SYNOPSIS


g.list
g.list --help
g.list [-iretmpf] type=datatype[,datatype,...] [pattern=string] [exclude=string]
[mapset=name[,name,...]] [separator=character] [region=name] [output=name]
[--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:
-i
Ignore case

-r
Use basic regular expressions instead of wildcards

-e
Use extended regular expressions instead of wildcards

-t
Print data types

-m
Print fully-qualified map names (including mapsets)

-p
Pretty printing in human readable format

-f
Verbose listing (also list map titles)

--overwrite
Allow output files to overwrite existing files

--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
type=datatype[,datatype,...] [required]
Data type(s)
Options: raster, raster_3d, vector, label, region, group, all
raster: raster map(s)
raster_3d: 3D raster map(s)
vector: vector map(s)
label: paint label file(s)
region: region definition(s)
group: imagery group(s)
all: all types

pattern=string
Map name search pattern (default: all)

exclude=string
Map name exclusion pattern (default: none)

mapset=name[,name,...]
Name of mapset to list (default: current search path)
’.’ for current mapset; ’*’ for all mapsets in location

separator=character
Field separator
Special characters: pipe, comma, space, tab, newline
Default: newline

region=name
Name of saved region for map search (default: not restricted)
’.’ for current region; ’*’ for default region

output=name
Name for output file
If not given or ’-’ then standard output

DESCRIPTION


g.list searches for data files matching a pattern given by wildcards or POSIX Extended
Regular Expressions.

NOTES


The output of g.list may be useful for other programs’ parameter input (e.g. time series
for r.series) when used with separator=comma.

EXAMPLES


List all raster maps as continuous, sorted list:
g.list type=rast
List all vector maps as continuous, sorted list with MAPSET info (i.e. fully-qualified
map names):
g.list type=vector -m
List all raster and vector maps ordered by mapset:
g.list type=raster -p
List all raster and vector maps as continuous, sorted list:
g.list type=rast,vect
List all available GRASS data base files:
g.list type=all

Mapset search path
If mapset is not specified than g.list searches for data files in the mapsets which are
included in the search path (defined by g.mapsets), see g.mapsets -p.
g.list rast -p
raster map(s) available in mapset <user1>:
dmt
...
raster map(s) available in mapset <PERMANENT>:
aspect
...
By option mapset=. (one dot) can be listed only data files from the current mapset:
g.list rast mapset=.
...
Similarly mapset=* (one asterisk) prints data files from all available mapsets also
including those which are not listed in the current search path (see g.mapsets -l).
g.list rast mapset=* -p
raster map(s) available in mapset <landsat>:
lsat5_1987_10
...
raster map(s) available in mapset <user1>:
dmt
...
raster map(s) available in mapset <PERMANENT>:
aspect
...

Wildcards
List all vector maps starting with letter "r":
g.list type=vector pattern="r*"
List all vector maps starting with letter "r" or "a":
g.list type=vector pattern="[ra]*"
List all raster maps starting with "soil_" or "landuse_":
g.list type=raster pattern="{soil,landuse}_*"
List certain raster maps with one variable character/number:
g.list type=raster pattern="N45E00?.meters"
Use of exclude parameter:
# without exclude:
g.list rast pat="r*" mapset=PERMANENT
railroads
roads
rstrct.areas
rushmore
# exclude only complete word(s):
g.list rast pat="r*" exclude=roads mapset=PERMANENT
railroads
rstrct.areas
rushmore
# exclude with wildcard:
g.list rast pat="r*" exclude="*roads*" mapset=PERMANENT
rstrct.areas
rushmore

Regular expressions
List all soil maps starting with "soils" in their name:
g.list -r type=raster pattern=’^soils’
List "tmp" if "tmp" raster map exists:
g.list -r type=raster pattern=’^tmp$’
List "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):
g.list -r type=vector pattern=’^tmp[0-9]$’
List "tmp0"..."tmp9" if corresponding vector map exists (each map name comma separated):
g.list -r type=vector separator=comma pattern=’^tmp[0-9]$’

Extended regular expressions
List all precipitation maps for the years 1997-2012, comma separated:
g.list -e type=raster separator=comma pattern="precip_total.(199[7-9]|200[0-9]|201[0-2]).sum"

Maps whose region overlaps with a saved region
List all raster maps starting with "tmp_" whose region overlaps with the region of "test"
raster map:
g.region raster=test save=test_region
g.list type=raster pattern=’tmp_*’ region=test_region
List "tmp0"..."tmp9" vector maps whose region overlaps with the current region:
g.list -r type=vector pattern=’^tmp[0-9]$’ region=.
List all raster and vector maps whose region overlaps with the default region of the
PERMANENT mapset in the current location (DEFAULT_WIND):
g.list type=rast,vect region=*
Note that, without region=*, g.list type=rast,vect simply lists all available raster and
vector maps from the current search path regardless of their region.

Use g.listgrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 2
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 3
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 4
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 5
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 6
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad