[Index for .]
getdbase
Help text
GETDBASE On first call for a session, all float details are loaded from
the master database (massaging some fields in the process) into global
variables. If 'fnum' provided, extracts record for that float.
INPUT: fnum - WMO ID of float for which DB record required (not required
if simply want to load global DB variables.)
fnum= -1 will force REloading of the database.
OUTPUT: dbdat - structure of details for the specified float (empty if
no fnum specified)
File INPUT: Reads spreadsheet/argomaster.csv which is a csv dump of
sheet 1 of argomaster.xls
GLOBALS: If not already loaded this session, these global variables are
created:
THE_ARGO_FLOAT_DB - struct array of float details for every float
ARGO_ID_CROSSREF - (nfloat X 3) array, rows comprising
1) WMO ID 2) ARGOS ID 3) deployment num
TO TEST: for fn = [list of all float numbers...]
dbdat = getdbase(fn);
end
Warnings: Reports if 'Manufacturer' field is not as expected, or if
'endrow' flag is not in expected column. Both may arise if spreadsheet
is incomplete or if structure has been altered.
SEE ALSO: idcrossref.m getcaldbase.m
Author: Jeff Dunn CMAR/BoM Aug 2006
USAGE: dbdat = getdbase(fnum);
Cross-Reference Information
This function calls
This function is called by