User Tools

Site Tools


operations:db_ncedc:iris_sis

SIS/IRIS Instrument Responses Import

  • Oracle System {dcmgr@transform}:
1.- Copy/paste the contents of the SIS email into email.sis:

    % cd /home/dcmgr/responses/RdSEED/Logs
    % cat email.sis 
    UPDATE: NC_LWPB - 2024-09-27T17:41:47 - https://files.anss-sis.scsn.org/production/dataless/NC/NC_LWPB.dataless
    NEW: NC_KPPB - 2024-09-27T17:39:38 - https://files.anss-sis.scsn.org/production/dataless/NC/NC_KPPB.dataless
    UPDATE: NC_KCSB - 2024-09-27T17:36:40 - https://files.anss-sis.scsn.org/production/dataless/NC/NC_KCSB.dataless
    % 

2.- Run genList.bash to generate the netsta.lst file:

    % ./genList.bash 
    % cat netsta.lst
    NC LWPB
    NC KPPB
    NC KCSB
    % 

3.- Eventually add to netsta.lst other sites that need to be imported (e.g. from IRIS).

4.- Import metadata and generate response products:

    % ./UpdateMetadata.bash 
  • PostgreSQL System {aqms@aqms-[bk|nc]-pp (active PP system)}:
1.- Copy/paste the contents of the Oracle netsta.lst file:

    % cd /home/aqms/DBmaint/metadata
    % cat netsta.lst
    NC LWPB
    NC KPPB
    NC KCSB
    %                       

2.- Import metadata and generate response products:

    % ./UpdateMetadata.bash       

The following section describes the actions taken by the UpdateMetadata.bash scripts

  • [1] Import IR information via dataless SEED:
  • SIS: (BK BP CE CI GM NC NP RE WR)
  • IRIS: (AZ CC GS LB NN PB UO US UW)
% cd RdSEED/Logs/
% cat netsta.lst 
NC GHC
NC GGU
NC GGP
% ./PopulateList
  • [2] Generate directory response information:
% cd NET.info/<Net>.info
% cp -r <Net>.responses/ /tmp
% ./extract.all >& extract.log 
% diff /tmp/<Net>.responses/ <Net>.responses/ (Check that differences are expected)
% \rm -rf /tmp/<Net>.responses/
  • [3] Generate *.db.* files:
% cd Generate_Instr
% ./Generate_Instr.csh
% ssh range
% cd /home/transform/dcmgr/responses/Generate_Instr
% ./CompareFiles.csh (Check that differences are expected)
% ./UpdateBDSN_range.csh
% exit
  • [4] Generate EEW channel files: (BK CE NC NN NP WR)
% cd EEW
% (Eventually update list of sites in Update_Tables.sql)
% ./UpdateDB.csh
% cd ChanFiles
% ./Build_chanfiles.csh
% ./Compare.csh
% cp chanfile_mp.dat chanfile_mp.dat.DIST (if chanfile_mp.dat has changed)
% cp chanfile_ucb.dat chanfile_ucb.dat.DIST (if chanfile_ucb.dat has changed)

Here are the basic instructions. For more details, please refer to the above link.

- On aqms@aqms-[bk|nc]-pp (active PP system):

  As the 'aqms' user on the active pp (aqms-bk-pp or aqms-nc-pp), cd into /home/aqms/DBmaint/metadata/.
  To load a list of networks and stations:
  
     * Run 'getFromList' to retrieve the stationXML files for the networks and stations
       specified in 'netsta.lst', e.g.:

 [aqms@aqms-bk-pp metadata]$ cat netsta.lst 
 NC ASP
 BK MERC
 NP 1858
 UW WVOR
 [aqms@aqms-bk-pp metadata]$ ./getFromList

     * To refresh the metadata on aqms-bk-rt & aqms-nc-rt (~30 mins):

 [aqms@aqms-bk-pp ~]$ cd /home/aqms/DBmaint/metadata/
 [aqms@aqms-bk-pp metadata]$ ./refreshMetadata.csh

     * To refresh the PWS channel mappings:

 [aqms@aqms-bk-pp ~]$ cd /home/aqms/DBmaint/PWS/
 [aqms@aqms-bk-pp PWS]$ ./pws

     * To refresh the PWS channel mappings on aqms-bk-rt & aqms-nc-rt:

 [aqms@aqms-bk-pp ~]$ cd /home/aqms/DBmaint/misc_tables/
 [aqms@aqms-bk-pp misc_tables]$ ./refreshMiscTables.csh
  • [6] Add site to DART archive rules if logger is MINIMUS: (BK)
% vi /home/dip/dcmgr/dart/rules/archive.BK.rules
operations/db_ncedc/iris_sis.txt · Last modified: 2024/10/04 14:37 by stephane