HWRF
trunk@4391
|
Checks loop current file timestamps. More...
Checks loop current file timestamps.
This module checks the datestamp in the Loop Current files and compare with the forecast start date. If the datestmp is 90 days older than forecast start date, it tells the ocean init scripts to not use them. Also note that if the datestamp in the Loop Current files later than forecast date, it tells the ocean init scripts to not not use them.
Functions | |
def | Isthis_LCuseful |
Determines if loop current files are still usable for a cycle of interest. More... | |
def | get_endline (file) |
Read the last line of the given file and return it. More... | |
Variables | |
string | LCdir = '/mnt/lfs2/projects/hwrf-data/fix-files/hwrf-20140617-fix/fix/loop_curr' |
Loop current directory for running the test program. | |
string | lfile = LCdir+'/hwrf_gfdl_loop_current_rmy5.dat.20131001' |
rmy5 loop current file to test | |
string | rfile = LCdir+'/hwrf_gfdl_loop_current_wc_ring_rmy5.dat.20131001' |
wc_ring_rmy5 loop current file to test | |
string | startdate = '2013101123' |
Cycle to check. | |
def pom.check_lcfiles.get_endline | ( | file | ) |
Read the last line of the given file and return it.
file | the file to read |
Definition at line 78 of file check_lcfiles.py.
Referenced by pom.check_lcfiles.Isthis_LCuseful().
def pom.check_lcfiles.Isthis_LCuseful | ( | startdate, | |
lfile, | |||
rfile, | |||
logger = None |
|||
) |
Determines if loop current files are still usable for a cycle of interest.
startdate | the cycle of interest as a string, format YYYYMMDDHH |
lfile,rfile | the loop current l and r files |
logger | a logging.Logger for log messages. |
Definition at line 21 of file check_lcfiles.py.