ts_data_channel_metadata

Holds metadata about a single data channel.

Contents

Properties:

NAME DESCRIPTIONTYPE
Site/station information
network Network name2-character string
station Station namecharacter string
component Component name1-3 character string
location Usually '00'character string
information Instrument model, serial #, etccharacter string
fullname 'network.station.component' (READ-ONLY)character string
Timing
timezero GMT time at which station was synchronizedts_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 Enumeric scalar
lat Decimal Degrees Nnumeric scalar
elev Station meters above sealevelnumeric 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 responsets_response

Methods:

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';

See also

ts_response, ts_datetime