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

This module has a simple "get_vitals" function to extract vitals from NHC vital file (syndat_tcvitals.year). More...

Detailed Description

This module has a simple "get_vitals" function to extract vitals from NHC vital file (syndat_tcvitals.year).

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

Functions

def get_vitals (vitalfile, centerid, stormid, yyyy, trackfile)
 Reads tcvitals. More...
 
def qck (astr, bstr)
 Quality check function: if a>b or b is 999, returns -999, otherwise returns b. More...
 
def track_shorten
 Removes unwanted parts of the track file from get_vitals() More...
 

Variables

list __all__ = [ 'get_vitals' ]
 List of symbols to export by "from pom.track import *".
 

Function Documentation

def pom.track.get_vitals (   vitalfile,
  centerid,
  stormid,
  yyyy,
  trackfile 
)

Reads tcvitals.

Parameters
vitalfileFile to parse
centeridForecast center: NHC or JTWC
stormidthree character storm ID (ie.: 12L, 19W)
yyyyYear.
trackfileOutput file.

Definition at line 21 of file track.py.

def pom.track.qck (   astr,
  bstr 
)

Quality check function: if a>b or b is 999, returns -999, otherwise returns b.

Parameters
astr,bstrstring values containing integers a and b

Definition at line 72 of file track.py.

Referenced by pom.track.get_vitals().

def pom.track.track_shorten (   fin,
  fout,
  ymdh,
  logger = None 
)

Removes unwanted parts of the track file from get_vitals()

Parameters
fin,foutinput and output files
ymdhdate and hour of interest as a ten digit number in a string
loggera logging.Logger for log messages
Returns
0 on error, or the number of lines kept in fin otherwise

Definition at line 81 of file track.py.