GRASS logo

NAME

t.rast.reclass - Reclassify maps in a SpaceTimeRasterDataset.

KEYWORDS

temporal, reclassification, raster, time

SYNOPSIS

t.rast.reclass
t.rast.reclass --help
t.rast.reclass [-ne] input=name output=name rules=name [semantic_label=string] [temporaltype=name] [semantictype=string] [title=string] [description=string] [nprocs=integer] [where=sql_query] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-n
Register Null maps
-e
Extend existing space time raster dataset
--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:

input=name [required]
Name of the input space time raster dataset
output=name [required]
Name of the output space time raster dataset
rules=name [required]
File containing reclass rules
'-' for standard input
semantic_label=string
Semantic label to be assigned to the reclassified map - also used as a suffix that is appended to input map name
temporaltype=name
The temporal type of the space time dataset
Options: absolute, relative
semantictype=string
Semantic type of the space time dataset
Options: min, max, sum, mean
title=string
Title of the new space time dataset
description=string
Description of the new space time dataset
nprocs=integer
Number of r.reclass processes to run in parallel
Default: 1
where=sql_query
WHERE conditions of SQL statement without 'where' keyword used in the temporal GIS framework
Example: start_time > '2001-01-01 12:30:00'

Table of contents

DESCRIPTION

t.rast.reclass is a wrapper around the r.reclass module that creates a reclassified map for each registered map of a space time raster dataset and registers it in an output space time raster dataset. Metadata of the input space time raster dataset are transfered to the output space time raster dataset as far as possible. A new title and description can be assigned to the output space time raster dataset, if it does not exist. The reclassified maps can also be registered into an existing space time raster dataset if the e-flag is set.

This module is not sensitive to the current region and mask settings.

NOTES

Parallel processing is supported. Internally, several r.reclass modules will be started, depending on the number of specified parallel processes (nprocs) and the number of input maps to reclassify.

EXAMPLES

Reclassification of monthly data into yearly data

t.rast.reclass input=tempmean_monthly output=tempmean_yearly \
                 basename=tempmean_year \
                 granularity="1 years" method=average

t.support input=tempmean_yearly \
          title="Yearly precipitation" \
          description="Aggregated precipitation dataset with yearly resolution"

t.info tempmean_yearly
 +-------------------- Space Time Raster Dataset -----------------------------+
 |                                                                            |
 +-------------------- Basic information -------------------------------------+
 | Id: ........................ tempmean_yearly@climate_2000_2012
 | Name: ...................... tempmean_yearly
 | Mapset: .................... climate_2000_2012
 | Creator: ................... lucadelu
 | Temporal type: ............. absolute
 | Creation time: ............. 2014-11-27 10:25:21.243319
 | Modification time:.......... 2014-11-27 10:25:21.862136
 | Semantic type:.............. mean
 +-------------------- Absolute time -----------------------------------------+
 | Start time:................. 2009-01-01 00:00:00
 | End time:................... 2013-01-01 00:00:00
 | Granularity:................ 1 year
 | Temporal type of maps:...... interval
 +-------------------- Spatial extent ----------------------------------------+
 | North:...................... 320000.0
 | South:...................... 10000.0
 | East:.. .................... 935000.0
 | West:....................... 120000.0
 | Top:........................ 0.0
 | Bottom:..................... 0.0
 +-------------------- Metadata information ----------------------------------+
 | Raster register table:...... raster_map_register_514082e62e864522a13c8123d1949dea
 | North-South resolution min:. 500.0
 | North-South resolution max:. 500.0
 | East-west resolution min:... 500.0
 | East-west resolution max:... 500.0
 | Minimum value min:.......... 7.370747
 | Minimum value max:.......... 8.81603
 | Maximum value min:.......... 17.111387
 | Maximum value max:.......... 17.915511
 | Aggregation type:........... average
 | Number of registered maps:.. 4
 |
 | Title: Yearly precipitation
 | Monthly precipitation
 | Description: Aggregated precipitation dataset with yearly resolution
 | Dataset with monthly precipitation
 | Command history:
 | # 2014-11-27 10:25:21
 | t.rast.aggregate input="tempmean_monthly"
 |     output="tempmean_yearly" basename="tempmean_year" granularity="1 years"
 |     method="average"
 |
 | # 2014-11-27 10:26:21
 | t.support input=tempmean_yearly \
 |        title="Yearly precipitation" \
 |        description="Aggregated precipitation dataset with yearly resolution"
 +----------------------------------------------------------------------------+

SEE ALSO

r.reclass, t.info,

Temporal data processing Wiki

AUTHOR

Stefan Blumentrath

SOURCE CODE

Available at: t.rast.reclass source code (history)

Accessed: Friday Oct 25 13:33:18 2024


Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.4.0 Reference Manual