t.create.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <h2>DESCRIPTION</h2>
  2. The purpose of this module is the creation of space time datasets of
  3. type raster (STRDS), 3D raster (STR3DS) and vector (STVDS).
  4. <p>
  5. Space time datasets represent spatio-temporal fields in the temporal GRASS framework.
  6. They are designed to collect any amount of time stamped maps with time intervals
  7. and time instances.
  8. The temporal type of a space time dataset
  9. can be absolute or relative and must be set on dataset creation besides the name and the description.
  10. <p>
  11. Time stamped maps can registered in and unregistered from space time datasets.
  12. The spatio-temporal extent as well as the metadata of a space time dataset is derived from its registered maps.
  13. Hence the metadata is dependent from the dataset type (raster, 3D raster, vector).
  14. <p>
  15. <h2>EXAMPLE</h2>
  16. In this example we create 7 raster maps using r.mapcalc with random values
  17. that will be registered in a single space time
  18. raster dataset named <em>precipitation_daily</em> using a daily temporal granularity.
  19. The names of the raster maps are stored in a text
  20. file that is used for raster map registration.
  21. We use <em>t.create</em> for the space time raster dataset creation
  22. and <em>t.register</em> to register the raster maps
  23. in the space time raster dataset.
  24. At the end we report informations about the
  25. space time raster dataset to stdout using <em>t.info</em>.
  26. <div class="code"><pre>
  27. MAPS="map_1 map_2 map_3 map_4 map_5 map_6 map_7"
  28. for map in ${MAPS} ; do
  29. r.mapcalc --o expr="${map} = rand(0, 10)"
  30. echo ${map} >> map_list.txt
  31. done
  32. t.create type=strds temporaltype=absolute \
  33. output=precipitation_daily \
  34. title="Daily precipitation" \
  35. description="Test dataset with daily precipitation"
  36. t.register -i type=rast input=precipitation_daily \
  37. file=map_list.txt start=2012-08-20 increment="1 days"
  38. t.info type=strds input=precipitation_daily
  39. +-------------------- Space Time Raster Dataset -----------------------------+
  40. | |
  41. +-------------------- Basic information -------------------------------------+
  42. | Id: ........................ precipitation_daily@test
  43. | Name: ...................... precipitation_daily
  44. | Mapset: .................... test
  45. | Creator: ................... soeren
  46. | Creation time: ............. 2013-07-13 12:18:52.848223
  47. | Temporal type: ............. absolute
  48. | Semantic type:.............. mean
  49. +-------------------- Absolute time -----------------------------------------+
  50. | Start time:................. 2012-08-27 00:00:00
  51. | End time:................... 2012-09-03 00:00:00
  52. | Granularity:................ 1 day
  53. | Temporal type of maps:...... interval
  54. +-------------------- Spatial extent ----------------------------------------+
  55. | North:...................... 80.0
  56. | South:...................... -1.0
  57. | East:.. .................... 120.5
  58. | West:....................... -40.5
  59. | Top:........................ 0.0
  60. | Bottom:..................... 0.0
  61. +-------------------- Metadata information ----------------------------------+
  62. | Raster register table:...... precipitation_daily_test_raster_register
  63. | North-South resolution min:. 1.0
  64. | North-South resolution max:. 1.0
  65. | East-west resolution min:... 1.0
  66. | East-west resolution max:... 1.0
  67. | Minimum value min:.......... 0.0
  68. | Minimum value max:.......... 0.0
  69. | Maximum value min:.......... 9.0
  70. | Maximum value max:.......... 9.0
  71. | Number of registered maps:.. 7
  72. |
  73. | Title:
  74. | Daily precipitation
  75. | Description:
  76. | Test dataset with daily precipitation
  77. | Command history:
  78. | # 2013-07-13 12:18:52
  79. | t.create type="strds" temporaltype="absolute"
  80. | output="precipitation_daily" title="Daily precipitation"
  81. | description="Test dataset with daily precipitation"
  82. | # 2013-07-13 12:18:53
  83. | t.register -i type="rast" input="precipitation_daily"
  84. | file="map_list.txt" start="2012-08-20" increment="1 days"
  85. |
  86. +----------------------------------------------------------------------------+
  87. </pre></div>
  88. <h2>SEE ALSO</h2>
  89. <em>
  90. <a href="t.register.html">t.register</a>,
  91. <a href="t.info.html">t.info</a>
  92. </em>
  93. <h2>AUTHOR</h2>
  94. S&ouml;ren Gebbert
  95. <p><i>Last changed: $Date$</i>