NAME:
wstdatetojd - convert wst string date to jd
SYNTAX: jd=wstdatetojd(datestr)
ARGS:
datestr: string format "mm/dd/yy hh:mm:ss" ast
DESCRIPTION:
Convert datestr from weather station to julday.
(See /pkg/rsi/local/libao/phil/wst/wstdatetojd.pro)
NAME:
wstldrec - load struct from ascii input
SYNTAX: a=wstldrec(inpl)
ARGS:
inpl: string ascii record read from oriondata.txt.
DESCRIPTION:
load wst structure from ascii input line
(See /pkg/rsi/local/libao/phil/wst/wstldrec.pro)
NAME:
wstrawinpday - read in 1 days worth of data from ascii file
SYNTAX: n=wstrawinpday(lun,yymmdd,bar,inp1=inp1,ndays=ndays)
ARGS:
lun : int from file open
yymmdd: int yymmdd of date to start on from file open
ndays : int number of days to input. def=1
RETURNS:
n: int number records input
bar[n]: struct input data
inp1: string string data for first row input
DESCRIPTION:
Routine reads ndays worth of data from the file pointed to by lun.
Lun should be assigned to the oriondata.txt ascii file
(written by the orion weather station). The routine does no positioning
before starting to read (so you should do a rewind if you don't know
where you are positioned in the file.
The routine reads until it finds a record with the data yymmdd. It will
continue reading for ndays (default=1) days worth of records.
The data is loaded into the {wststr) array bar.
If the keyword inp1= is supplied then the first ascii record returned
will be returned in inp1 (for debugging).
Notes:
1. the routine leaves you postioned after the first non-matching record
is found. If you read day N, and then read day N+1 without rewinding
the lun, then you will miss the first record of day N+1.
(See /pkg/rsi/local/libao/phil/wst/wstrawinpday.pro)