r3.timestamp.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <h2>DESCRIPTION</h2>
  2. This command has 2 modes of operation. If no date argument
  3. is supplied, then the current timestamp for the 3D raster map
  4. is printed. If a date argument is specified, then the
  5. timestamp for the 3D raster map is set to the specified
  6. date(s). See EXAMPLES below.
  7. <h2>EXAMPLES</h2>
  8. <b>r3.timestamp map=soils</b><br>
  9. Prints the timestamp for the "soils" 3D raster map. If
  10. there is no timestamp for soils, nothing is printed. If
  11. there is a timestamp, one or two lines are printed,
  12. depending on if the timestamp for the map consists of a
  13. single date or two dates (ie start and end dates).
  14. <p><b>r3.timestamp map=soils date='15 sep 1987'</b><br>
  15. Sets the timestamp for "soils" to the single date<br>
  16. "15 sep 1987"
  17. <p><b>r3.timestamp map=soils date='15 sep 1987/20 feb 1988'</b><br>
  18. Sets the timestamp for "soils" to have the start date<br>
  19. "15 sep 1987" and the end date "20 feb 1988"
  20. <p><b>r3.timestamp map=soils date='18 feb 2005 10:30:00/20 jul 2007 20:30:00'</b><br>
  21. Sets the timestamp for "soils" to have the start date<br>
  22. "18 aug 2005 10:30:00" and the end date "20 jul 2007 20:30:00"
  23. <p>
  24. <b>r3.timestamp map=soils date=none</b><br>
  25. Removes the timestamp for the "soils" 3D raster map
  26. <h2>TIMESTAMP FORMAT</h2>
  27. The timestamp values must use the format as described in the
  28. GRASS datetime library. The source tree for this library
  29. should have a description of the format. For convience, the
  30. formats as of Feb, 1996 are reproduced here:
  31. <p> There are two types of datetime values: absolute and
  32. relative. Absolute values specify exact dates and/or times.
  33. Relative values specify a span of time. Some examples will
  34. help clarify:
  35. <p><b>Absolute</b><p> The general format for absolute values is
  36. <p><tt>
  37. day month year [bc] hour:minute:seconds timezone
  38. <br>
  39. day is 1-31<br>
  40. month is jan,feb,...,dec<br>
  41. year is 4 digit year<br>
  42. [bc] if present, indicates dates is BC<br>
  43. hour is 0-23 (24 hour clock)<br>
  44. minute is 0-59<br>
  45. second is 0-59.9999 (fractions of second allowed)<br>
  46. timezone is +hhmm or -hhmm (eg, -0600)<br>
  47. <br>
  48. parts can be missing
  49. <br>
  50. 1994 [bc]<br>
  51. Jan 1994 [bc]<br>
  52. 15 jan 1000 [bc]<br>
  53. 15 jan 1994 [bc] 10 [+0000]<br>
  54. 15 jan 1994 [bc] 10:00 [+0100]<br>
  55. 15 jan 1994 [bc] 10:00:23.34 [-0500]<br>
  56. <br>
  57. </tt>
  58. <b> Relative</b>
  59. There are two types of relative datetime values, year-
  60. month and day-second. The formats are:
  61. <p><tt>
  62. [-] # years # months<br>
  63. [-] # days # hours # minutes # seconds
  64. </tt><p> The words years, months, days, hours, minutes, seconds
  65. are literal words, and the # are the numeric values.<br>
  66. Examples:<p><tt>
  67. 2 years<br>
  68. 5 months<br>
  69. 2 years 5 months<br>
  70. 100 days<br>
  71. 15 hours 25 minutes 35.34 seconds<br>
  72. 100 days 25 minutes<br>
  73. 1000 hours 35.34 seconds
  74. </tt><p> The following are <i>illegal</i> because it mixes year-month
  75. and day-second (because the number of days in a month
  76. or in a year vary):<p><tt>
  77. 3 months 15 days<br>
  78. 3 years 10 days
  79. </tt>
  80. <h2>BUGS</h2>
  81. Spaces in the timestamp value are required.
  82. <h2>AUTHOR</h2>
  83. Michael Pelizzari<br>
  84. Lockheed Martin Space Systems<br>
  85. based on r.timestamp by Michael Shapiro, <br>
  86. U.S. Army Construction Engineering Research Laboratory
  87. <p><i>Last changed: $Date$</i>