== Generate PACS DetectorSelection Table == * Check whether the PacsDetectorSelectionTable already exist : http://wiki.mpe.mpg.de/Herschel/PACS/FM_ILT_Procedures/DetectorSelectionTables * Contact Roland Ottensamer and Ekkehard Wieprecht that you plan to generate a new DetectorSelectionTable. Get a proper DetectorSelection Table number from them. * Start the DetectorSelection Tool as described in the PCSS User Manual Chapter 16 (e.g. upper right Button in JIDE) : {{{ IA>> from herschel.pacs.spu.edit import * IA>> a = DXSedit() }}} * Follow the Instructions of the User Manual to generate a Detctor Selection Table for uplink (Menu -> File -> "save as TCLScript" and downlink (Menu -> File ->"save DetectorSelectionTable"). The TCL script you may not need when using CUS '''Some User do not trust the DetectorSelection Tool and might contact Roland Ottensamer to generate it. In this case Roland will send back the files generated and the User continue with this procedure.''' * Add the new tables to the WIKI page : http://wiki.mpe.mpg.de/Herschel/PACS/FM_ILT_Procedures/DetectorSelectionTables * Convert the .dxset file into CUS procedure (available from 05-Sep-2006 on) : {{{ from common import * dxset2Cus(,) e.g. : dxset2Cus("2116.dxset","Ekkis first") }}} It generate a PACSDetSel_ (in this example : PACSDetSel_2116 * Send the new .dxset file (generated by Menu -> File ->"save DetectorSelectionTable") to Ekkehard Wieprecht or Wim De Meester for integration into PCSS * Send the PACSDetSel_ file to Diego Cesarsky and Ekkehard Wieprecht == Loading Detector Selection Tables via CUS == There is a local CUS procedure to generate TCs to upload a detector selection table into PACS (either SPECTRO or PHOTO). Detector selection tables are stored in the CUS database as U-CAL files. When creating a new selection table, the first step then is to copy it into the CUS registry as a calibration file. U-CAL files representing detector selection tables are called PACSDetSel_xxx, where xxx represents the detector selection number. The current CUS directory for U-CAL files is: {{{ /home/cususer/pacs/cus/CALU }}} Existing DetSel tables are {{{ CALU/PACSDetSel_100 CALU/PACSDetSel_4002 CALU/PACSDetSel_4006 CALU/PACSDetSel_2001 CALU/PACSDetSel_4003 CALU/PACSDetSel_4007 CALU/PACSDetSel_2300 CALU/PACSDetSel_4004 CALU/PACSDetSel_4008 CALU/PACSDetSel_4001 CALU/PACSDetSel_4005 CALU/PACSDetSel_4009 }}} To import the U-CAL table PacsDetSel_4002, say, into the CUS registry, use the following CUS command line directive (we assume that you have already copied PACSDetSel_4002 to the U-CAL directory as shown here): {{{ pacs/cus> cus -f -uploadcal CALU/PACSDetSel_4002 }}} Once the file has been succesfuly copied to the CUS registry, you may use the CUS GUI to verify its contents. Click on the "Calibration Tables" menu, choose "View a Table" from the drop sub-menu and further choose the Table name. Now that the selection table is part of the CUS registry, you can telecommand the loading of that selection table. The script to read these U-CAL files is called PACS_Det_sel; its CUS usage is simply {{{ PACS_Det_Sel("PACSDetSel_4002") }}} This will send a series of TCs to upload into PACS the table 4002 for instance. Note that the CUS line command : {{{ cus -cmds PACS_Det_Sel PACSDetSel_4002 }}} can be used to list on your terminal window the TCs that will be uplinked to PACS.