Project

General

Profile

Stations example

Retrieving data from a specific station, at different levels of detail

retrieve information at the CHANNEL level

Where network: IU, station: ANMO, location: 00, channel: BHZ

s = irisFetch.Stations('CHANNEL','IU','ANMO','00','BHZ')
s = 

                      Code: 'IU'
               Description: 'Global Seismograph Network (GSN - IRIS/USGS)'
                   EndDate: '2500-12-12 15:59:59.000'
    SelectedNumberStations: 1
                 StartDate: '1987-12-31 16:00:00.000'
                  Stations: [1x1 struct]
       TotalNumberStations: 91

Using wildcards

retrieve information at the STATION level for the global seismic network ( network code: _GSN )

Using [ ] in the request is the same as using the wildcard *

s = irisFetch.Stations('STATION','_GSN',[ ],[ ],[ ])  
s = 

                      Code: '_GSN'
               Description: []
                   EndDate: '2599-12-31 15:59:59.000'
    SelectedNumberStations: 226
                 StartDate: '1987-12-31 16:00:00.000'
                  Stations: [1x226 struct]
       TotalNumberStations: 226

Find out the names of all virtual networks

Network codes for virtual networks start with an underscore. ex. _GSN , _ARCTIC, etc.

s = irisFetch.Stations('NETWORK','_*',[ ],[ ],[ ]);
names = {s.Code};
disp ( names(1:5) )
   '_AFTAC'    '_ANSS'    '_ANSS-BB'    '_ANTARCTICA'    '_ANU'

retrieve information at the CHANNEL level for all High-gain broadband seismometers in the global seismic network ( network code: _GSN )

The question mark represents one character. This query retrieves channels BHZ, BHN, BHE, BH1, etc..

s = irisFetch.Stations('CHANNEL','_GSN',[ ],[ ],'BH?')  

s = 

                      Code: '_GSN'
               Description: []
                   EndDate: '2599-12-31 15:59:59.000'
    SelectedNumberStations: 226
                 StartDate: '1987-12-31 16:00:00.000'
                  Stations: [1x226 struct]
       TotalNumberStations: 226