.TH t.shift 1grass "" "GRASS 7.8.5" "GRASS GIS User's Manual" .SH NAME \fI\fBt.shift\fR\fR \- Shifts temporally the maps of a space time dataset. .SH KEYWORDS temporal, time management, shift, time .SH SYNOPSIS \fBt.shift\fR .br \fBt.shift \-\-help\fR .br \fBt.shift\fR \fBinput\fR=\fIname\fR [\fBtype\fR=\fIname\fR] \fBgranularity\fR=\fIstring\fR [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIname\fR \fB[required]\fR" 4m .br Name of an existing space time dataset .IP "\fBtype\fR=\fIname\fR" 4m .br Type of the input space time dataset .br Options: \fIstrds, stvds, str3ds\fR .br Default: \fIstrds\fR .IP "\fBgranularity\fR=\fIstring\fR \fB[required]\fR" 4m .br Shift granularity .br Format absolute time: \(dqx years, x months, x weeks, x days, x hours, x minutes, x seconds\(dq, relative time is of type integer .SH DESCRIPTION \fIt.shift\fR is designed to temporally shift all registered maps in a space time dataset with a user defined granularity. Raster, 3D raster and vector space time datasets are supported. .PP The format of the absolute time granularity is \(dqnumber unit\(dq. Number is an integer, unit is the temporal unit that can be one of year(s), month(s), week(s), day(s), hour(s), minute(s) or second(s). .PP The granularity in case of relative time is an integer. The temporal unit is the unit of the space time dataset and can not be modified. .SH NOTES Be careful when shifting space time datasets with absolute time. The temporal granularity may change if you shift a space time dataset with a unit that is different from the space time dataset granularity. Be aware that the shifting with months and years may result in incorrect days per month. Shifting the date 20012\-03\-31 with a granularity of one month will result in 2012\-04\-31 which is incorrect. In this case an error will raise and the shifting will not performed for the whole dataset. .PP You can use the extraction module to shift only a subset of maps from a space time dataset. Be aware that the shifting of maps affect all space time datasets in which they are registered. .SH EXAMPLE We create 6 raster maps and register them in a space time raster dataset using an increment of one day. Then we shift the time intervals with a granularity of 12 hours. .br .nf \fC r.mapcalc expression=\(dqprec_1 = rand(0, 550)\(dq \-s r.mapcalc expression=\(dqprec_2 = rand(0, 450)\(dq \-s r.mapcalc expression=\(dqprec_3 = rand(0, 320)\(dq \-s r.mapcalc expression=\(dqprec_4 = rand(0, 510)\(dq \-s r.mapcalc expression=\(dqprec_5 = rand(0, 300)\(dq \-s r.mapcalc expression=\(dqprec_6 = rand(0, 650)\(dq \-s t.create type=strds temporaltype=absolute \(rs output=precipitation_daily \(rs title=\(dqDaily precipitation\(dq \(rs description=\(dqTest dataset with daily precipitation\(dq t.register \-i type=raster input=precipitation_daily \(rs maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6 \(rs start=2012\-01\-01 increment=\(dq1 day\(dq t.info type=strds input=precipitation_daily +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Space Time Raster Dataset \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Basic information \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Id: ........................ precipitation_daily@PERMANENT | Name: ...................... precipitation_daily | Mapset: .................... PERMANENT | Creator: ................... soeren | Temporal type: ............. absolute | Creation time: ............. 2014\-11\-23 19:20:26.004855 | Modification time:.......... 2014\-11\-23 19:20:26.471536 | Semantic type:.............. mean +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Absolute time \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Start time:................. 2012\-01\-01 00:00:00 | End time:................... 2012\-01\-07 00:00:00 | Granularity:................ 1 day | Temporal type of maps:...... interval +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Spatial extent \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | North:...................... 80.0 | South:...................... 0.0 | East:.. .................... 120.0 | West:....................... 0.0 | Top:........................ 0.0 | Bottom:..................... 0.0 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Metadata information \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Raster register table:...... raster_map_register_882043e9afaa4e60b845aceb1a1fee2c | North\-South resolution min:. 10.0 | North\-South resolution max:. 10.0 | East\-west resolution min:... 10.0 | East\-west resolution max:... 10.0 | Minimum value min:.......... 0.0 | Minimum value max:.......... 16.0 | Maximum value min:.......... 297.0 | Maximum value max:.......... 647.0 | Aggregation type:........... None | Number of registered maps:.. 6 | | Title: | Daily precipitation | Description: | Test dataset with daily precipitation | Command history: | # 2014\-11\-23 19:20:26 | t.create type=\(dqstrds\(dq temporaltype=\(dqabsolute\(dq | output=\(dqprecipitation_daily\(dq title=\(dqDaily precipitation\(dq | description=\(dqTest dataset with daily precipitation\(dq | # 2014\-11\-23 19:20:26 | t.register \-i type=\(dqrast\(dq input=\(dqprecipitation_daily\(dq | maps=\(dqprec_1,prec_2,prec_3,prec_4,prec_5,prec_6\(dq start=\(dq2012\-01\-01\(dq | increment=\(dq1 day\(dq | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ t.rast.list input=precipitation_daily name|mapset|start_time|end_time prec_1|PERMANENT|2012\-01\-01 00:00:00|2012\-01\-02 00:00:00 prec_2|PERMANENT|2012\-01\-02 00:00:00|2012\-01\-03 00:00:00 prec_3|PERMANENT|2012\-01\-03 00:00:00|2012\-01\-04 00:00:00 prec_4|PERMANENT|2012\-01\-04 00:00:00|2012\-01\-05 00:00:00 prec_5|PERMANENT|2012\-01\-05 00:00:00|2012\-01\-06 00:00:00 prec_6|PERMANENT|2012\-01\-06 00:00:00|2012\-01\-07 00:00:00 t.shift type=strds input=precipitation_daily granularity=\(dq12 hours\(dq t.info type=strds input=precipitation_daily +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Space Time Raster Dataset \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Basic information \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Id: ........................ precipitation_daily@PERMANENT | Name: ...................... precipitation_daily | Mapset: .................... PERMANENT | Creator: ................... soeren | Temporal type: ............. absolute | Creation time: ............. 2014\-11\-23 19:20:26.004855 | Modification time:.......... 2014\-11\-23 19:21:08.240018 | Semantic type:.............. mean +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Absolute time \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Start time:................. 2012\-01\-01 12:00:00 | End time:................... 2012\-01\-07 12:00:00 | Granularity:................ 24 hours | Temporal type of maps:...... interval +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Spatial extent \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | North:...................... 80.0 | South:...................... 0.0 | East:.. .................... 120.0 | West:....................... 0.0 | Top:........................ 0.0 | Bottom:..................... 0.0 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Metadata information \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | Raster register table:...... raster_map_register_882043e9afaa4e60b845aceb1a1fee2c | North\-South resolution min:. 10.0 | North\-South resolution max:. 10.0 | East\-west resolution min:... 10.0 | East\-west resolution max:... 10.0 | Minimum value min:.......... 0.0 | Minimum value max:.......... 16.0 | Maximum value min:.......... 297.0 | Maximum value max:.......... 647.0 | Aggregation type:........... None | Number of registered maps:.. 6 | | Title: | Daily precipitation | Description: | Test dataset with daily precipitation | Command history: | # 2014\-11\-23 19:20:26 | t.create type=\(dqstrds\(dq temporaltype=\(dqabsolute\(dq | output=\(dqprecipitation_daily\(dq title=\(dqDaily precipitation\(dq | description=\(dqTest dataset with daily precipitation\(dq | # 2014\-11\-23 19:20:26 | t.register \-i type=\(dqrast\(dq input=\(dqprecipitation_daily\(dq | maps=\(dqprec_1,prec_2,prec_3,prec_4,prec_5,prec_6\(dq start=\(dq2012\-01\-01\(dq | increment=\(dq1 day\(dq | # 2014\-11\-23 19:21:08 | t.shift type=\(dqstrds\(dq input=\(dqprecipitation_daily\(dq | granularity=\(dq12 hours\(dq | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ t.rast.list input=precipitation_daily name|mapset|start_time|end_time prec_1|PERMANENT|2012\-01\-01 12:00:00|2012\-01\-02 12:00:00 prec_2|PERMANENT|2012\-01\-02 12:00:00|2012\-01\-03 12:00:00 prec_3|PERMANENT|2012\-01\-03 12:00:00|2012\-01\-04 12:00:00 prec_4|PERMANENT|2012\-01\-04 12:00:00|2012\-01\-05 12:00:00 prec_5|PERMANENT|2012\-01\-05 12:00:00|2012\-01\-06 12:00:00 prec_6|PERMANENT|2012\-01\-06 12:00:00|2012\-01\-07 12:00:00 \fR .fi .SH SEE ALSO \fI t.create, t.register, t.snap \fR .SH AUTHOR Sören Gebbert, Thünen Institute of Climate\-Smart Agriculture .SH SOURCE CODE .PP Available at: t.shift source code (history) .PP Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual