- Timestamp:
- 03/21/07 10:14:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Calendar/julday.html
r210 r234 89 89 <div id="file_comments"> 90 90 Calculate the Julian Day Number for a given month, day, and year. 91 This is the inverse of the library function CALDAT. 92 3 calendars are available according to the value of key_caltype 91 This is the inverse of the library function 92 <a href=".//CALDAT.html">CALDAT</a>. 93 3 calendars are available according to the value of key_caltype 93 94 (variable of the common file cm_4cal): 'greg', '360d', 'noleap' 94 95 </div> … … 107 108 <div class="routine_details" id="_julday"> 108 109 109 <h2><a class="top" href="#container">top</a>julday <span class="categories"> Calendar 110 <h2><a class="top" href="#container">top</a>julday <span class="categories"> 111 Calendar 110 112 </span></h2> 111 113 112 114 <p class="header"> 113 <span class="result">result = </span>julday(<span class="result"><a href="#_julday_param_MONTH">MONTH</a>, <a href="#_julday_param_DAY">DAY</a>, <a href="#_julday_param_YEARin">YEARin</a>[, <a href="#_julday_param_Hour">Hour</a>][, <a href="#_julday_param_Minute">Minute</a>][, <a href="#_julday_param_Second">Second</a>]</span>, <a href="#_julday_keyword_NDAYSPM">NDAYSPM</a>=<span class="result"> NDAYSPM</span>)</p>114 115 <div class="comments"> 116 </div> 117 118 <h3>Return value</h3><div class="preformat"> 115 <span class="result">result = </span>julday(<span class="result"><a href="#_julday_param_MONTH">MONTH</a>, <a href="#_julday_param_DAY">DAY</a>, <a href="#_julday_param_YEARin">YEARin</a>[, <a href="#_julday_param_Hour">Hour</a>][, <a href="#_julday_param_Minute">Minute</a>][, <a href="#_julday_param_Second">Second</a>]</span>, <a href="#_julday_keyword_NDAYSPM">NDAYSPM</a>=<span class="result">integer</span>)</p> 116 117 <div class="comments"> 118 </div> 119 120 <h3>Return value</h3><div class="preformat"> 119 121 the Julian Day Number (which begins at noon) of the specified calendar date. 120 If Hour, Minute, and Second are not specified, then the result will be a 121 long integer, otherwise the result is a double precision floating point 122 If Hour, Minute, and Second are not specified, then the result will be a 123 long integer, otherwise the result is a double precision floating point 122 124 number. 123 125 </div> … … 133 135 <span class="attr">required</span> 134 136 135 136 137 138 </h4> 139 140 <div class="comments"> 141 Number of the desired month (1 = January, ..., 12 = December). 142 Can be scalar or array 137 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 138 139 140 </h4> 141 142 <div class="comments"> 143 Number of the desired month (1 = January, ..., 12 = December). 143 144 </div> 144 145 … … 149 150 <span class="attr">required</span> 150 151 151 152 153 154 </h4> 155 156 <div class="comments"> 157 Number of day of the month. Can be scalar or array152 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 153 154 155 </h4> 156 157 <div class="comments"> 158 Number of day of the month. 158 159 </div> 159 160 … … 164 165 <span class="attr">required</span> 165 166 166 167 168 169 </h4> 170 171 <div class="comments"> 167 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 168 169 170 </h4> 171 172 <div class="comments"> 172 173 Number of the desired year.Year parameters must be valid 173 174 values from the civil calendar. Years B.C.E. are represented … … 175 176 as positive integers. In particular, note that there is no 176 177 year 0 in the civil calendar. 1 B.C.E. (-1) is followed by 177 1 C.E. (1). 178 Change: However for climatological year, we do accept the year 178 1 C.E. (1). 179 Change: However for climatological year, we do accept the year 179 180 O but we change it for year 654321L (the same trick is done in 180 181 caldat so caldat, julday(1,1,0) gives you back Jan 1st of year 0) 181 Can be scalar or array182 182 </div> 183 183 … … 188 188 189 189 190 190 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 191 191 <span class="attr">default:</span> <span class="value">12</span> 192 192 193 193 </h4> 194 194 195 <div class="comments"> 196 Number of the hour of the day. Can be scalar or array195 <div class="comments"> 196 Number of the hour of the day. 197 197 </div> 198 198 … … 203 203 204 204 205 205 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 206 206 <span class="attr">default:</span> <span class="value">0</span> 207 207 … … 209 209 210 210 <div class="comments"> 211 Number of the minute of the hour. Can be scalar or array211 Number of the minute of the hour. 212 212 </div> 213 213 … … 218 218 219 219 220 220 <span class="attr">type:</span> <span class="value">scalar (integer or double) or array of scalars</span> 221 221 <span class="attr">default:</span> <span class="value">0</span> 222 222 … … 224 224 225 225 <div class="comments"> 226 Number of the second of the minute. Can be scalar or array226 Number of the second of the minute. 227 227 </div> 228 228 … … 240 240 241 241 242 242 <span class="attr">type:</span> <span class="value">integer</span> 243 243 <span class="attr">default:</span> <span class="value">30</span> 244 244 245 245 </h4> 246 246 247 <div class="comments"> 248 To use a calendar with fixed number of days per month s.247 <div class="comments"> 248 To use a calendar with fixed number of days per month. 249 249 see also the use of key_caltype (variable of the common file cm_4cal) 250 250 </div> … … 255 255 <h3>Version history</h3> 256 256 257 <h4>Version</h4><div class="preformat"> $Id: julday.pro 205 2007-01-22 07:55:49Z smasson $</div> 258 <h4>History</h4><div class="preformat"> 257 <h4>Version</h4><div class="preformat"> 258 $Id: julday.pro 231 2007-03-19 17:15:51Z pinsard $</div> 259 <h4>History</h4><div class="preformat"> 259 260 Translated from "Numerical Recipies in C", by William H. Press, 260 261 Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. … … 273 274 eg. julday(349,1,1970) 274 275 275 Sebastien Masson, May 2006, add dif erent calendat with key_caltype276 Sebastien Masson, May 2006, add different calendat with key_caltype 276 277 (variable of the common file cm_4cal) 277 278 </div> … … 282 283 283 284 284 <h4>Restrictions</h4><div class="preformat"> 285 The Result will have the same dimensions as the smallest array, or285 <h4>Restrictions</h4><div class="preformat"> 286 The result will have the same dimensions as the smallest array, or 286 287 will be a scalar if all arguments are scalars. 287 288 288 289 289 290 Accuracy using IEEE double precision numbers is approximately 290 291 1/10000th of a second, with higher accuracy for smaller (earlier) … … 295 296 296 297 297 <h4>Uses routines</h4><div class="preformat"> cm_4cal 298 <h4>Uses routines</h4><div class="preformat"> 299 cm_4cal 298 300 </div> 299 301
Note: See TracChangeset
for help on using the changeset viewer.