Difference between revisions of "time ref"

From WikiROMS
Jump to navigationJump to search
m (TIME REF moved to time ref: We are listing these under variable names not .in keywords)   (change visibility)
Line 1: Line 1:
= TIME_REF =
<div class="title">time_ref</div>
{{#lst:Variables|time_ref}}
 
----


Reference time used to define the "units" attribute written to the output netcdf files.  
Reference time used to define the "units" attribute written to the output netcdf files.  


For so-called realistic applications where the model time corresponds to a certain calendar date, TIME_REF will be a floating point number > 0 in the format (yyyymmdd.f)
For so-called realistic applications where the model time corresponds to a certain calendar date, '''time_ref''' will be a floating point number > 0 in the format (yyyymmdd.f)


For example, TIME_REF=20020115.5 will yield the following CF-compliant [http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-1.0.html] time units attribute:
For example, setting <span class="blue">TIME_REF</span>=20020115.5 in your [[ocean.in]] will yield the following [http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-1.0.html CF-Comliant] time units attribute:


     units = "seconds since 2002-01-15 12:00:00"  
     units = "seconds since 2002-01-15 12:00:00"  


There are some default special values for TIME_REF:  
There are some default special values for <span class="blue">TIME_REF</span>:  


If TIME_REF = -2, model time and DSTART are in modified Julian
If <span class="blue">TIME_REF</span> = -2, model time and [[dstart|DSTART]] are in modified Julian days units.  The "units" attribute becomes:
days units.  The "units" attribute becomes:


     units = "since 1968-05-23 00:00:00 GMT:
     units = "since 1968-05-23 00:00:00 GMT:


If TIME_REF = -1, model time and DSTART are in a calendar
If <span class="blue">TIME_REF</span> = -1, model time and [[dstart|DSTART]] are in a calendar with 360 days in every year (30 days each month).  The "units" attribute is:
with 360 days in every year (30 days each month).  The "units"
attribute is:


   units = "seconds since 0000-01-01 00:00:00"
   units = "seconds since 0000-01-01 00:00:00"


If TIME_REF = 0, model time and DSTART are in a common year
If <span class="blue">TIME_REF</span> = 0, model time and [[dstart|DSTART]] are in a common year calendar with 365.25 days.  The "units" attribute is:
calendar with 365.25 days.  The "units" attribute is:


   units = "seconds since 0000-01-01 00:00:00"
   units = "seconds since 0000-01-01 00:00:00"


 
There are several user postings about time keeping in ROMS on the [http://marine.rutgers.edu/po/users/forum/viewtopic.php?t=69 User Forum]
There are several user posting about time keeping in ROMS on the User Forum at http://marine.rutgers.edu/po/users/forum/viewtopic.php?t=69

Revision as of 19:46, 31 March 2008

time_ref
time_ref
Reference time (yyyymmdd.f) used to compute relative time: elapsed time interval since reference-time.
option =
routine = mod_scalars.F
keyword = TIME_REF
input = roms.in

Reference time used to define the "units" attribute written to the output netcdf files.

For so-called realistic applications where the model time corresponds to a certain calendar date, time_ref will be a floating point number > 0 in the format (yyyymmdd.f)

For example, setting TIME_REF=20020115.5 in your ocean.in will yield the following CF-Comliant time units attribute:

   units = "seconds since 2002-01-15 12:00:00" 

There are some default special values for TIME_REF:

If TIME_REF = -2, model time and DSTART are in modified Julian days units. The "units" attribute becomes:

   units = "since 1968-05-23 00:00:00 GMT:

If TIME_REF = -1, model time and DSTART are in a calendar with 360 days in every year (30 days each month). The "units" attribute is:

  units = "seconds since 0000-01-01 00:00:00"

If TIME_REF = 0, model time and DSTART are in a common year calendar with 365.25 days. The "units" attribute is:

  units = "seconds since 0000-01-01 00:00:00"

There are several user postings about time keeping in ROMS on the User Forum