ts_data_channel_metadata
Holds metadata about a single data channel.
Contents
Properties:
NAME | DESCRIPTION | TYPE | |
Site/station information | |||
---|---|---|---|
network | Network name | 2-character string | |
station | Station name | character string | |
component | Component name | 1-3 character string | |
location | Usually '00' | character string | |
information | Instrument model, serial #, etc | character string | |
fullname | 'network.station.component' (READ-ONLY) | character string | |
Timing | |||
timezero | GMT time at which station was synchronized | ts_datetime | |
tzoffset | Instrument clock offset at synchronization (seconds) | numeric scalar | |
clockdrift | Linear clock drift == (endTime(inst)-endTime(GPS) ) / (endTime-startTime) | numeric scalar | |
timing | {timezero, tzoffset,clockdrift} | cell array | |
Position | |||
lon | Decimal Degrees E | numeric scalar | |
lat | Decimal Degrees N | numeric scalar | |
elev | Station meters above sealevel | numeric scalar | |
wdepth | Water depth at station (0 if land station, -elev if seafloor station) | numeric scalar | |
coordinates | [lon,lat,elev,wdepth] | 1x4 numeric array | |
Instrument response | |||
response | Instrument response | ts_response |
Methods:
- ts_data_channel_metadata - Constructor
- GPSTime - Convert instrument time to GPS time
- instrumentTime - Convert GPS time to instrument time
- update - Updates values to those in a reference
- eq - Returns 1 if name,location,network & component are identical
- neq - Returns 1 if name,location,network or component are not identical
Example
meta=ts_data_channel_metadata('Napoli','IT','STS-2',40.83,14.25,25,0)
meta = station: 'Napoli' network: ' IT' information: ' STS-2' timezero: NULL tzoffset: 0 clockdrift: 0 lon: 14.25 lat: 40.83 elev: 25 wdepth: 0 component: ' ' response (PxZ): 0x0
meta.component='BHZ';
newmeta=meta;
meta==newmeta
ans = 1
newmeta.component='BHN';
meta==newmeta
ans = 0
newmeta.component='ALongString';
Error using ts_data_channel_metadata/set.component (line 182) component can have at most 3 characters Error in ts_data_channel_metadata_help (line 51) newmeta.component='ALongString';