The following files can be loaded:
#
Grid: SEAGRID file or ROMS history file
- press button [grid]
- when load a new grid, a new stations file (bellow) should also be loaded
- variables used are:
longitude, lon_rho or x_rho
latitude, lat_rho or y_rho
bathymetry, h
#
Coastline: mat file with variables lon and lat
- use menu [SpectrHA] >> [overlay] >> [coastline]
#
Stations: ROMS stations file or ROMS history file
- press button [station]
- variables used are:
longitude, lon_rho or x_rho
latitude, lon_rho or x_rho
bathymetry, h
time, ocean_time
ssh, zeta
velocity, u, v, ubar and vbar
# Data file: mat file with data to be analyses
- press button [file]
- variables needed:
serie, can be real or imaginary; imaginary part is interpreted as v-momentum
interval, interval in hours, default is 1h
lon and lat, just to show position on grid and maybe be used by T_TIDE; default is nan
start_time, start time of serie, as datenum; default is nan, otherwise it will be used by T_TIDE
- example:
>> interval=1; >> t=0:interval:30*24; >> serie=cos(2*pi*t/12)+0.5*cos(2*pi*t/12.4206-deg2rad(30)); >> lon=-10; >> lat=40; >> start_time=datenum(2001,12,19,18,0,0); >> save example_1Dserie serie interval lon lat start_time >> >> % 2D serie: >> v=0.7*cos(2*pi*t/12-deg2rad(45))+0.2*cos(2*pi*t/12.4206); >> serie=serie+sqrt(-1)*v; >> save example_2Dserie serie interval lon lat start_time
#
Ellipse file: mat file with ellipse parameters
- press button [struc]
- variables needed:
major, minor, inc and pha, major axes, minor axes, inclination and phase of the ellipse
or, instead, use tidestruc, if you want to load several ellipses, directly from T_TIDE and LSF output
lon and lat, just to show position on grid, this way you can select a near station and compare...; default is nan
color, colors to be used drawing the ellipses
if it is not present, or they are less than the ellipses being loaded, a default
color (see configuration) is used
color is a matrix of the kind [r g b; r g b; ...]
- example:
>> major=1; >> minor=0.4; >> inc=10; >> pha=30; >> lon=-9; >> lat=41; >> color=[1 0 0]; >> save example_ellipse major minor inc pha lon lat color >> >> % tidestruc: >> major=[1 0.7 0.2]; >> minor=[0.4 0.2 0.1]; >> inc=[10 70 120]; >> pha=[30 0 90]; >> lon=-10; >> lat=41; >> color=[1 0 0; 0 0 1; 0 0 0]; >> err=zeros(size(major)); >> tidecon=[major' err' minor' err' inc' err' pha' err']; >> tidestruc.tidecon=tidecon; >> save example_tidestruc tidestruc lon lat color