====== 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/.info % cp -r .responses/ /tmp % ./extract.all >& extract.log % diff /tmp/.responses/ .responses/ (Check that differences are expected) % \rm -rf /tmp/.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) * **__[5] Refresh metadata on [[https://aqms-bk-aux.geo.berkeley.edu/NCSSwiki/doku.php?id=operations:db_ncedc:ops_man_prod#aqmsmetadata_loading|PostgreSQL AQMS system]].__** 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