~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to raster/r.timestamp/description.html

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<h2>DESCRIPTION</h2>
2
2
 
3
 
This command has 2 modes of operation. If no date argument is supplied, then
4
 
the current timestamp for the raster map is printed. If a date argument is
5
 
specified, then the timestamp for the raster map is set to the specified
6
 
date(s).  See EXAMPLES below.
 
3
This command has 2 modes of operation. If no <b>date</b> argument is
 
4
supplied, then the current timestamp for the raster map is printed. If
 
5
a date argument is specified, then the timestamp for the raster map is
 
6
set to the specified date(s). See examples below.
7
7
 
8
8
<h2>NOTES</h2>
9
9
 
10
 
Strings containing spaces should be quoted. For specifying a range
11
 
of time, the two timestamps should be separated by a forward slash.
12
 
To remove the timestamp from a raster map, use <b>date=</b><em>none</em>.
13
 
 
14
 
<h2>EXAMPLES</h2>
15
 
 
16
 
 <b>r.timestamp map=soils</b><br>
17
 
          Prints the timestamp for the "soils" raster map. If
18
 
          there is no timestamp for soils, nothing is printed. If
19
 
          there is a timestamp, one or two time strings are printed,
20
 
          depending on if the timestamp for the map consists of a
21
 
          single date or two dates (ie start and end dates).
22
 
<p>
23
 
<b>     r.timestamp map=soils date='15 sep 1987'</b><br>
24
 
          Sets the timestamp for "soils" to the single date<br>
25
 
          "15 sep 1987"
26
 
<p>
27
 
<b>     r.timestamp map=soils date='15 sep 1987/20 feb 1988'</b><br>
28
 
          Sets the timestamp for "soils" to have the start date<br>
29
 
          "15 sep 1987" and the end date "20 feb 1988"
30
 
<p>
31
 
<b>     r.timestamp map=soils date=none</b><br>
32
 
          Removes the timestamp for the "soils" raster map
33
 
 
 
10
Strings containing spaces should be quoted. For specifying a range of
 
11
time, the two timestamps should be separated by a forward slash. To
 
12
remove the timestamp from a raster map, use <b>date=none</b>.
34
13
 
35
14
<h2>TIMESTAMP FORMAT</h2>
36
 
     The timestamp values must use the format as described in the
37
 
     GRASS datetime library.  The source tree for this library
38
 
     should have a description of the format. For convience, the
39
 
     formats as of Feb, 1996 are reproduced here:
40
 
<p>
41
 
     There are two types of datetime values: absolute and
42
 
     relative. Absolute values specify exact dates and/or times.
43
 
     Relative values specify a span of time. Some examples will
44
 
     help clarify:
45
 
<p>
46
 
<b>Absolute</b><p>
47
 
          The general format for absolute values is:
48
 
<p><tt>
49
 
             day month year [bc] hour:minute:seconds timezone
50
 
<p>
51
 
             day is 1-31<br>
52
 
             month is jan,feb,...,dec<br>
53
 
             year is 4 digit year<br>
54
 
             [bc] if present, indicates dates is BC<br>
55
 
             hour is 0-23 (24 hour clock)<br>
56
 
             mintue is 0-59<br>
57
 
             second is 0-59.9999 (fractions of second allowed)<br>
58
 
             timezone is +hhmm or -hhmm (eg, -0600)<br>
59
 
<p>
60
 
          parts can be missing
61
 
<p>
62
 
             1994 [bc]<br>
63
 
             Jan 1994 [bc]<br>
64
 
             15 jan 1000 [bc]<br>
65
 
             15 jan 1994 [bc] 10 [+0000]<br>
66
 
             15 jan 1994 [bc] 10:00 [+0100]<br>
67
 
             15 jan 1994 [bc] 10:00:23.34 [-0500]<br>
68
 
<p>
69
 
</tt>
70
 
<b>Relative</b><p>
71
 
          There are two types of relative datetime values, year-
72
 
          month and day-second.  The formats are:
73
 
<p><tt>
74
 
             [-] # years # months<br>
 
15
 
 
16
The timestamp values must use the format as described in the <em>GRASS
 
17
Datetime Library</em>. The source tree for this library should have a
 
18
description of the format. For convience, the formats are reproduced
 
19
here:
 
20
 
 
21
<p>
 
22
There are two types of datetime values:
 
23
 
 
24
<ul>
 
25
  <li><em>absolute</em> and
 
26
  <li><em>relative</em>.
 
27
</ul>
 
28
 
 
29
Absolute values specify exact dates and/or times. Relative values
 
30
specify a span of time. 
 
31
 
 
32
<h3>Absolute</h3>
 
33
 
 
34
The general format for absolute values is:
 
35
 
 
36
<div class="code"><pre>
 
37
  day month year [bc] hour:minute:seconds timezone
 
38
 
 
39
             day is 1-31
 
40
             month is jan,feb,...,dec
 
41
             year is 4 digit year
 
42
             [bc] if present, indicates dates is BC
 
43
             hour is 0-23 (24 hour clock)
 
44
             mintue is 0-59
 
45
             second is 0-59.9999 (fractions of second allowed)
 
46
             timezone is +hhmm or -hhmm (eg, -0600)
 
47
</pre></div>
 
48
 
 
49
Some parts can be missing, for example
 
50
 
 
51
<div class="code"><pre>
 
52
             1994 [bc]
 
53
             Jan 1994 [bc]
 
54
             15 jan 1000 [bc]
 
55
             15 jan 1994 [bc] 10 [+0000]
 
56
             15 jan 1994 [bc] 10:00 [+0100]
 
57
             15 jan 1994 [bc] 10:00:23.34 [-0500]
 
58
</pre></div>
 
59
 
 
60
<h3>Relative</h3>
 
61
 
 
62
There are two types of relative datetime values, year-month and
 
63
day-second. The formats are:
 
64
 
 
65
<div class="code"><pre>
 
66
             [-] # years # months
75
67
             [-] # days # hours # minutes # seconds
76
 
</tt><p>
77
 
          The words years, months, days, hours, minutes, seconds
78
 
          are literal words, and the # are the numeric values.<br>
79
 
          Examples:<p>
80
 
<tt>
81
 
             2 years<br>
82
 
             5 months<br>
83
 
             2 years 5 months<br>
84
 
             100 days<br>
85
 
             15 hours 25 minutes 35.34 seconds<br>
86
 
             100 days 25 minutes<br>
 
68
</pre></div>
 
69
 
 
70
The words years, months, days, hours, minutes, seconds are literal
 
71
words, and the # are the numeric values. Examples:
 
72
 
 
73
<div class="code"><pre>
 
74
             2 years
 
75
             5 months
 
76
             2 years 5 months
 
77
             100 days
 
78
             15 hours 25 minutes 35.34 seconds
 
79
             100 days 25 minutes
87
80
             1000 hours 35.34 seconds
88
 
</tt><p>
89
 
          The following are <i>illegal</i> because it mixes year-month
90
 
          and day-second (because the number of days in a month
91
 
          or in a year vary):<p>
92
 
<tt>
93
 
             3 months 15 days<br>
 
81
</pre></div>
 
82
 
 
83
The following are <i>illegal</i> because it mixes year-month and
 
84
day-second (because the number of days in a month or in a year vary):
 
85
 
 
86
<div class="code"><pre>
 
87
             3 months 15 days
94
88
             3 years 10 days
95
 
</tt>
96
 
 
97
 
<h2>SEE ALSO</h2>
98
 
 
99
 
<em><a HREF="v.timestamp.html">v.timestamp</a></em>
 
89
</pre></div>
 
90
 
 
91
<h2>EXAMPLES</h2>
 
92
 
 
93
Prints the timestamp for the "soils" raster map. If there is no
 
94
timestamp for "soils", nothing is printed. If there is a timestamp,
 
95
one or two time strings are printed, depending on if the timestamp for
 
96
the map consists of a single date or two dates (ie start and end
 
97
dates).
 
98
 
 
99
<div class="code"><pre>
 
100
    r.timestamp map=soils
 
101
</pre></div>
 
102
 
 
103
Sets the timestamp for "soils" to the single date "15 sep 1987".
 
104
 
 
105
<div class="code"><pre>
 
106
    r.timestamp map=soils date='15 sep 1987'
 
107
</pre></div>
 
108
 
 
109
Sets the timestamp for "soils" to have the start date "15 sep 1987"
 
110
and the end date "20 feb 1988".
 
111
 
 
112
<div class="code"><pre>
 
113
    r.timestamp map=soils date='15 sep 1987/20 feb 1988'
 
114
</pre></div>
 
115
 
 
116
Removes the timestamp for the "soils" raster map.
 
117
 
 
118
<div class="code"><pre>
 
119
    r.timestamp map=soils date=none
 
120
</pre></div>
100
121
 
101
122
<h2>BUGS</h2>
102
123
Spaces in the timestamp value are required.
103
124
 
 
125
<h2>SEE ALSO</h2>
 
126
 
 
127
<em>
 
128
  <a href="r.info.html">r.info</a>
 
129
</em>
 
130
 
104
131
<h2>AUTHOR</h2>
105
132
 
106
 
Michael Shapiro, <br>
107
 
U.S.Army Construction Engineering Research Laboratory
 
133
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
108
134
 
109
 
<p><i>Last changed: $Date: 2008-05-16 21:09:06 +0200 (ven, 16 mag 2008) $</i>
 
135
<p>
 
136
<i>Last changed: $Date: 2010-10-24 11:19:19 +0200 (Sun, 24 Oct 2010) $</i>