HSC-PROC-UPLC-0004 : Standard Mission Config Template 1. Delivery Notes No delivery note Take Note of the Tar File & the New MC name (for MPS email and for steps below) 2. Software used for import + Source the Environment (if not already done!!) HCSS SOFTWARE = 1.1.0 (Always use the most recent HCSS Software version) PHS SOFTWARE = 1.1.0_PHS (Always use the most recent PHS Software version) Herjbo02 - HCSS_PHS_TEST_herjbo02_0_6_6.props file & source .minimal_herjbo02 : PHS: Using BUILDNUM 534 & PHS: Using JBOSS_HOME /usr/local/software/jboss/jboss-3.2.6_0_6_5 Machines used : - heropl02 - hscphs2 for the uplink co-ord part - heropl02 - hscphs2 for the PropHandler - heropl01 - hscmps1 for the MPS - herjbo02 - hsc_phs account Source the Environment before you proceed to step 3. hscphs2@heropl02/home/hscphs2/otherSetups> source setHcssEnvironment_v1.1.0 3. What is the New Mission Configuration Name going to be?? MC_HPhase3_P29ASTR_S27ASTR_SDP/ hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP> ls HIFI/ logs/ PACS/ SPIRE/ 5. Copy across the contents of the SPIRE & HIFI ICC directories from a previous mission_config subdirectory. Remove any "tmp" files created the last time you ran the duration scripts on those files. cp MC_HPhase3_P27ASTR_S27ASTR_SDP/SPIRE/* MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE/. cp MC_HPhase3_P27ASTR_S27ASTR_SDP/HIFI/* MC_HPhase3_P29ASTR_S27ASTR_SDP/HIFI/. 6.Steps to Import the new HIFI Instrument model into a new MC a.Download & Untar the delivery from the CVS into the new mission_config directory (& the delivery directory) b.Set the Instrument Model & check with CUSGUI c.Clean the CUS & Cal tables from the instrument model d.Import the new Instrument Cus & Cal into the DB e.GO TO THE BASIC TEMPLATE FILE FOR THIS INSTRUMENT. Check Durations & then RETURN TO THIS TEMPLATE. f.If Durations are OK then COMMIT the Delivery with CUSGUI g.Create the new Mission Configuration name in the DB h.Import the New HIFI Instrument Model into the Mission Configuration. 6(a) Download & Untar the delivery from the CVS into the new mission_config directory (& the delivery directory) hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS> mkdir OD150_Rescue hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150> setenv CVSROOT :pserver:lorourke@cvs.rssd.esa.int:/services/repositories/HERSCHEL_CVS hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150> cvs login Logging in to :pserver:lorourke@cvs.rssd.esa.int:2401/services/repositories/HERSCHEL_CVS CVS password: hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150> cvs co develop/data/observingmodes/hscpv/od150/OD150 develop/data/observingmodes/hscpv/od150/ not found hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150> cvs co develop/data/observingmodes/hscpv/od150/OD150_Rescue.tar U develop/data/observingmodes/hscpv/od150/OD150_Rescue.tar Delivery directory hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS/OD150_Rescue> tar -xvf OD150_Rescue.tar OD150_Rescue.def OD150_Rescue_CAL.xml hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS/OD150_Rescue> cp * ~/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/. 6(b) Set the Instrument Model & check with CUSGUI Set instrument = PACS hscphs2@heropl02/home/hscphs2/.hcss> vi Uplink_Coord.props #Comment out next two for PACS only #hcss.mps.obdb_file = OBDB_4_0_B004_20090325.csv #hcss.mps.stpf_file = STPF_00002_20090324.csv #CUS #var.hcss.instrument = SPIRE var.hcss.instrument = PACS #var.hcss.instrument = HIFI hcss.cus.model = FLIGHT Opened CUSGUI with PACS hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS/OD150_Rescue> Oct 9, 2009 5:23:15 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:23:16 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:23:16 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:23:16 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:23:16 PM herschel.cus.gui.CusEditor chooseInstrument INFO: Using instrument command set from PACS, specified by property hcss.cus.instrument 6(c) Clean the CUS & Cal tables from the instrument model hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS/OD150_Rescue> cus -f -m "clean PACS CUS from DB" -deleteall Oct 9, 2009 5:24:33 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:24:34 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:24:34 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:24:34 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:24:43 PM herschel.cus.gui.Cus infoMessage INFO: All definitions have been deleted hscphs2@heropl02/home/hscphs2/icchsc/delivery/OD0150/PACS/OD150_Rescue> cus -f -m "clean PACS CAL from DB" -caldeleteall Oct 9, 2009 5:24:55 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:24:56 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:24:56 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:24:56 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:25:02 PM herschel.cus.gui.Cus infoMessage INFO: All calibration tables successfully deleted TAKE NOTE : OPEN UP CUSGUI & VERIFY IT IS EMPTY i.e. No Cus scripts & No Parameter tables OK TAKE NOTE : Check HPSDB in the CUSGUI Session = hpsdb_CCS_MOC3_200908141600 6(d) Import the new Instrument CUS & Cal tables into the DB Import PACS Mission Configuration hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/PACS> cus -m "upload P29ASTR" -import OD150_Rescue.def -importcaltables OD150_Rescue_CAL.xml Oct 9, 2009 5:29:06 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:29:07 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:29:08 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:29:08 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:29:31 PM herschel.cus.gui.Cus infoMessage INFO: Definitions successfully imported Oct 9, 2009 5:29:31 PM herschel.cus.gui.Cus infoMessage INFO: Using current directory Oct 9, 2009 5:29:31 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:29:31 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:29:34 PM herschel.cus.gui.Cus infoMessage INFO: Calibration tables successfully imported from "OD150_Rescue_CAL.xml" 6(e) GO TO THE BASIC TEMPLATE FILE FOR THIS INSTRUMENT. Check Durations & then RETURN TO THIS TEMPLATE. No durations file 6(f) If Durations are OK then COMMIT the Delivery with CUSGUI OPENED CUSGUI & COMMITTED (REGISTRY/COMMIT) THE PACS DELIVERY P29ASTR TAKE NOTE : It is very important that you commit the delivery as defined above. OK 6(g) Create the new Mission Configuration name in the DB hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/PACS> missetup -addconfig MC_HPhase3_P29ASTR_S27ASTR_SDP Oct 9, 2009 5:31:45 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:31:46 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:31:47 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:31:47 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:31:47 PM herschel.ccm.tools.MissionSetup infoMessage INFO: Using database "hsc_ops_operations_tm_1@herdb02.esac.esa.int" Oct 9, 2009 5:31:47 PM herschel.ccm.tools.MissionSetup infoMessage INFO: Mission configuration "MC_HPhase3_P29ASTR_S27ASTR_SDP" created in database "hsc_ops_operations_tm_1@herdb02.esac.esa.int" TAKE NOTE : Confirm the correct Mission Config Name has been created as shown in the last line above. 6(h) Import the New PACS Instrument Model into the Mission Configuration. Run CUSGUI >cusgui& Select "Create Instrument Model in a Configuration" and select the correct Mission Config. [hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/PACS> Oct 9, 2009 5:32:29 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:32:30 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:32:31 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:32:31 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:32:31 PM herschel.cus.gui.CusEditor chooseInstrument INFO: Using instrument command set from PACS, specified by property hcss.cus.instrument Oct 9, 2009 5:32:50 PM herschel.versant.ccm.MissionImpl getMissionConfiguration INFO: Using configuration "MC_HPhase3_P29ASTR_S27ASTR_SDP" Oct 9, 2009 5:33:02 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:33:02 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int ================== 7. Steps to Import the OLD SPIRE Instrument model into the MC a.Set Instrument Model = SPIRE b.Check with CUSGUI c.Run the duration script for the SPIRE instrument d.Import into the new Mission Configuration 7(a) Set Instrument Model = SPIRE hscphs2@heropl02/home/hscphs2/.hcss> vi Uplink_Coord.props #Comment out next two for PACS only hcss.mps.obdb_file = OBDB_4_0_B004_20090325.csv hcss.mps.stpf_file = STPF_00002_20090324.csv #CUS var.hcss.instrument = SPIRE #var.hcss.instrument = PACS #var.hcss.instrument = HIFI hcss.cus.model = FLIGHT 7(b) Check with CUSGUI hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/PACS> Oct 9, 2009 5:34:30 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:34:31 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:34:32 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:34:32 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:34:32 PM herschel.cus.gui.CusEditor chooseInstrument INFO: Using instrument command set from SPIRE, specified by property hcss.cus.instrument TAKE NOTE : Instrument above must be SPIRE if you want to work with the SPIRE instrument model. 7(c) Run the duration script for the SPIRE instrument Run the duration script for OD 117 delivered Since I do not know what is in cusgui I will delete SPIRE instrument and upload OD117 one hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE> cus -f -m "clean SPIRE from DB" -deleteall Oct 9, 2009 5:40:37 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:40:38 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:40:39 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:40:39 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:40:48 PM herschel.cus.gui.Cus infoMessage INFO: All definitions have been deleted [1] + Running cusgui hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE> cus -f -m "clean SPIRE CAL from DB" -caldeleteall Oct 9, 2009 5:41:26 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:41:26 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:41:27 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:41:27 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:41:32 PM herschel.cus.gui.Cus infoMessage INFO: All calibration tables successfully deleted hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE> cus -m "upload S27ASTR" -import SPIRE_MC_ASTR_pv43_FULL_27_0_CUS.def -importcaltables SPIRE_MC_ASTR_pv43_FULL_27_0_CUS_CAL.xml Oct 9, 2009 5:43:11 PM herschel.share.log.util.LogInitialiser init INFO: Initialising using local log configuation file /home/hscphs2/.hcss/userlogging.properties Oct 9, 2009 5:43:12 PM herschel.versant.store.ReplStoreFactoryImpl createStore INFO: Creating ObjectStore: hsc_ops_operations_tm_1@herdb02.esac.esa.int Oct 9, 2009 5:43:12 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:43:12 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:43:25 PM herschel.cus.gui.Cus infoMessage INFO: Definitions successfully imported Oct 9, 2009 5:43:25 PM herschel.cus.gui.Cus infoMessage INFO: Using current directory Oct 9, 2009 5:43:25 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Using RW-Access for node: hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:43:25 PM herschel.versant.store.replication.ReplicatingTransaction connectToRemoteDatabase INFO: Connection established to hsc_ops_operations_tm_1_n2@herdb02.esac.esa.int Oct 9, 2009 5:43:28 PM herschel.cus.gui.Cus infoMessage INFO: Calibration tables successfully imported from "SPIRE_MC_ASTR_pv43_FULL_27_0_CUS_CAL.xml" Then run durations: hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE> python SPIRE_CUS_THCP.py hscphs2@heropl02/home/hscphs2/icchsc/mission_config/MC_HPhase3_P29ASTR_S27ASTR_SDP/SPIRE> diff SPIRE_harness_duration_summary_20091009_17h47m34s.log SPIRE_Duration.txt Instrument model not committed. New MC