Changes between Initial Version and Version 1 of Ticket #782


Ignore:
Timestamp:
08/24/18 16:25:22 (6 years ago)
Author:
arango
Comment:

'

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #782

    • Property ResolutionDone
    • Property Status newclosed
  • Ticket #782 – Description

    initial v1  
    1 In update src:ticket:771 I made changes to how the reference time is now processed in ROMS. The time attribute in input NetCDF is essential in the processing of external data. It usually has the form of:   
     1This change is a significant improvement, and I recommend users to update their code if have a version newer than Jun 21, 2018.
     2
     3In update src:ticket:771, I made changes on how the reference time is processed in ROMS. The time attribute in input NetCDF is essential in the processing of external data. It usually has the form of:   
    24{{{
    35  'time-units since YYYY-MM-DD hh:mm:ss'
     
    2123As you can see, people creating NetCDF files are not consistent in the format for '''YYYY-MM-DD hh:mm:ss'''.  Therefore, I added a generic routine '''time_units''' to the module '''dateclock.F'''.
    2224
    23 I am using the ASCII character set to decode the time units attribute string and replace unneeded characters with blank space, '''CHAR(32)'''. Only the following characters are retained:
     25I am using the ASCII character set to decode the time units attribute string and replace unneeded characters with a blank space, '''CHAR(32)'''. Only the following characters are retained:
    2426{{{
    2527!    Char  Dec  Control Action
     
    5355Then, every numerical value in the string is converted to a real variable to allow floating-point values for seconds. The year, month, day, hour, and minutes are output as integers.
    5456
     57Many thanks to John Wilkin for bringing this issue to my attention. If the time attribute in your input file is not in the form of '''time-units since YYYY-MM-DD hh:mm:ss''', you will get an error when calling function '''netcdf_get_time'''.
     58
    5559----
    5660
    57 I also updated function '''decode_line''' in '''inp_par.F''' to remove control-keys introduced when generating or editing input script '''ocean.in'''. It now checks and replaces ASCII characters '''CHAR(0)''' to '''CHAR(31)''' with blank space:
     61I also updated function '''decode_line''' in '''inp_par.F''' to remove control-keys introduced when generating or editing input script '''ocean.in'''. It now checks and replaces ASCII characters '''CHAR(0)''' to '''CHAR(31)''' with a blank space:
    5862{{{
    5963!  Char  Dec  Key  Control Action