t.create.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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=20-08-2012 increment="1 days"
  38. t.info type=strds input=precipitation_daily
  39. +-------------------- Space Time Raster Dataset -----------------------------+
  40. | |
  41. +-------------------- Basic information -------------------------------------+
  42. | Id: ........................ precipitation_daily@PERMANENT
  43. | Name: ...................... precipitation_daily
  44. | Mapset: .................... PERMANENT
  45. | Creator: ................... soeren
  46. | Creation time: ............. 2012-10-16 00:20:28.920018
  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 days
  53. | Temporal type of maps:...... interval
  54. +-------------------- Spatial extent ----------------------------------------+
  55. | North:...................... 70.0
  56. | South:...................... 0.0
  57. | East:.. .................... 100.0
  58. | West:....................... 0.0
  59. | Top:........................ 0.0
  60. | Bottom:..................... 0.0
  61. +-------------------- Metadata information ----------------------------------+
  62. | Number of registered maps:.. 7
  63. | Title:
  64. | Daily precipitation
  65. | Description:
  66. | Test dataset with daily precipitation
  67. | North-South resolution min:. 10.0
  68. | North-South resolution max:. 10.0
  69. | East-west resolution min:... 10.0
  70. | East-west resolution max:... 10.0
  71. | Minimum value min:.......... 0.0
  72. | Minimum value max:.......... 0.0
  73. | Maximum value min:.......... 9.0
  74. | Maximum value max:.......... 9.0
  75. | Raster register table:...... precipitation_daily_PERMANENT_raster_register
  76. +----------------------------------------------------------------------------+
  77. </pre></div>
  78. <h2>SEE ALSO</h2>
  79. <em>
  80. <a href="t.register.html">t.register</a>,
  81. <a href="t.info.html">t.info</a>
  82. </em>
  83. <h2>AUTHOR</h2>
  84. S&ouml;ren Gebbert
  85. <p><i>Last changed: $Date$</i>