Changes between Version 6 and Version 7 of Grass7/TemporalGISAlgebra
- Timestamp:
- Jul 5, 2013, 6:08:09 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Grass7/TemporalGISAlgebra
v6 v7 28 28 Hence many operations that are common in spatial processing should have an equivalent in the temporal processing. 29 29 30 ==== Temporal selection ==== 31 30 32 Here an example of the temporal algebra that simply selects parts of a space time dataset without the processing raster or vector data: 31 33 … … 48 50 }}} 49 51 50 We can now define arbitrary topological relations using logical or ||to connect them:52 We can now define arbitrary topological relations using logical OR to connect them: 51 53 52 54 {{{ … … 56 58 Select all parts of A that are equal B, during B or overlaps B. 57 59 58 In addition we define a temporal buffer function, that buffer time instances or time intervals: 59 60 In addition we define a temporal functions: 61 62 ==== Temporal buffer ==== 63 Buffer time instances or time intervals: 64 {{{ 60 65 buff_t(STDS, "time interval") 61 66 }}} 62 67 Example: 63 64 68 {{{ 65 69 C = buff_t(A, "1 day") … … 67 71 68 72 Buffer all maps of STDS A with a temporal buffer of one day. 73 74 ==== Temporal shift ==== 75 76 Temporally shift all maps in a space time dataset by an interval: 77 {{{ 78 tshift(STDS, "time interval") 79 }}} 80 Example: 81 {{{ 82 tshift(A, "2 months") 83 }}} 84 Temporally shift all maps of space time dataset A by two months. 85 86 ==== Temporally snap === 87 88 Temporally snap time instances to its temporal nearest neighbor in the future and close gaps between time intervals. 89 {{{ 90 tsnap(STDS) 91 }}} 92 93 ==== The hash operator ==== 94 95 It is of important interest how many maps are located in the time interval of a single map when processing two space time datasets. 96 For this reason the hash operator '''#''' was introduced. In addition to the hash operator the temporal relation can be specified 97 that should be analysed. 98 99 Example: 100 {{{ 101 C = if(equal, A{contains,#}B > 2, A{contains,:}B) 102 }}} 103 This expression selects all maps from A that temporally contains at least 2 maps from B and stores them in space time dataset C. 104 The leading '''equal''' statement in the '''if''' condition specifies the temporal relation between the if and then part of the expression. This is very important, so we do not need to specify a time reference for temporal processing. 69 105 = Overview of all temporal algebra elements = 70 106