Changes between Initial Version and Version 1 of Ticket #782
- Timestamp:
- 08/24/18 16:25:22 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #782
- Property Resolution → Done
- Property Status new → closed
-
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: 1 This change is a significant improvement, and I recommend users to update their code if have a version newer than Jun 21, 2018. 2 3 In 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: 2 4 {{{ 3 5 'time-units since YYYY-MM-DD hh:mm:ss' … … 21 23 As 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'''. 22 24 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:25 I 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: 24 26 {{{ 25 27 ! Char Dec Control Action … … 53 55 Then, 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. 54 56 57 Many 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 55 59 ---- 56 60 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:61 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 a blank space: 58 62 {{{ 59 63 ! Char Dec Key Control Action