HWRF  trunk@4391
Functions | Variables
pom.check_lcfiles Namespace Reference

Checks loop current file timestamps. More...

Detailed Description

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.

Note
Please report bugs/questions/comments to bijuthomas(at)mail(dot)uri(dot)edu.
Author
Biju Thomas, GSO, University of Rhode Island.
Date
August 5, 2014

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.
 

Function Documentation

def pom.check_lcfiles.get_endline (   file)

Read the last line of the given file and return it.

Parameters
filethe 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.

Parameters
startdatethe cycle of interest as a string, format YYYYMMDDHH
lfile,rfilethe loop current l and r files
loggera logging.Logger for log messages.

Definition at line 21 of file check_lcfiles.py.