RSKaddstationdata.m
Arguments
Input
-Required-
RSK
-Optional-
RSK
profile
- profile number(s) to which station data should be assigned. Defaults to all profileslatitude
- must be of data type numericallongitude
- must be of data type numericalstation
- Nx1 character array or cell array of strings with length equal to the number of profilescruise
- character array or cell array of stringsvessel
- character array or cell array of stringsdepth
- numericaldate
- character array or cell array of stringsweather
- character array or cell array of stringscrew
- character array or cell array of stringscomment
- character array or cell array of stringsdescription
- character array or cell array of strings
Output
RSK
The function appends station data to data structure with profiles, including latitude, longitude, station, comment, etc. The function is vectorized, which allows multiple station data inputs for multiple profiles. But when there is only one station data input for multiple profiles, all profiles will be assigned with the same value.
Example:
rsk = RSKaddstationdata(rsk,'latitude',45,'longitude',-25,'station',{'SK1'},'vessel',{'R/V RBR'},'cruise',{'Skootamatta Lake 1'})
% -OR-
rsk = RSKaddstationdata(rsk,'profile',4:6,'latitude',[45,44,46],'longitude',[-25,-24,-23],'comment',{'Comment1','Comment2','Comment3'});
Note that the station data entries will be added to the headers in the files written by RSK2CSV and RSK2ODV.