Changes between Version 1 and Version 2 of HetProcedures/RA/hpf_old


Ignore:
Timestamp:
Jan 3, 2024 6:40:36 PM (5 months ago)
Author:
stevenj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HetProcedures/RA/hpf_old

    v1 v2  
    55   * [#cal Details on calibration control information ]
    66   * [#obs Low-level observing commands]
     7   * [#files File system information]
     8   * [#tell Telluric standard star exposure times]
     9   * [#weird Navigating weird behavior in Screen sessions]
     10   * [#Qfix Old method to update Q* FITS header keywords]
     11   * [#rare Rare errors and what to do]
     12   * [#restart Restarting the HPF client (rarely used)]
     13
    714
    815[[br]]
     
    6572
    6673You can set the type to Eng so that they are not science exposures and sent to the TACC by doing a {{{ tims detect pyhxrg:SetObstype:Eng }}}
     74
     75The command (as hpf@hpf) to execute any basic observation is {{{hpfseconds targetname exposuretime  #exposures [obs#]}}}.  If the target name has a space we should use double quotes around the name, e.g. "please do not use spaces in target names"   The exposure time is in seconds.   You can include a optional observing number, but if the software has not been restarted and you do not include this observing number it will use the next observing number.    If you restart the software the count starts again at 1 and the next target will be included in directory 0001 even if there is data in that directory, however, due to the time stamp no data will be overwritten. 
     76
     77Examples:
     78
     79{{{hpfseconds GJ_3470 315 5}}} - 5 exposures of 315 seconds each.
     80
     81{{{hpfseconds GJ_3470 315 5 100}}} - 5 exposures of 315 seconds each to be saved in directory 0100.
     82
     83
     84
     85
     86
     87[[br]]
     88
     89== File system information == #files
     90
     91Data is stored in {{{/HPFData/LinuxGigE/YYYYMMDD/hpf}}} from other machines, e.g. mcs,  or {{{/home/hpf/HPFData/LinuxGigE/YYYYMMDD/hpf}}} on the hpf machine, and copied to {{{/hetdata/data/YYYYMMMDD/hpf/}}} as well. Scripts for changing the instrument settings are located in {{{/home/hpf/Scripts/InstConfig}}}
     92
     93[[br]]
     94
     95=== Telluric standard stars === #tell
     96
     97
     98For telluric standards you should not observe anything brighter than V=4.5 (our lists have been culled to remove these and emission line objects).  If you find that any telluric is in a visual binary with a brighter star please please feel free to remove that from the list and let astronomer@het.as.utexas.edu know so that we can edit the online list.
     99
     100For exposure times please use:
     101
     102  * 315 sec exposure (30 reads) for anything fainter than V = 5.8
     103  * 105 sec exposure (10 reads) for anything between 4.5 and 5.8 in V
     104
     105Be sure to edit the night report to change the Data Type to "telluric"
     106
     107**NB** Telluric standards must be taken with LFC closed
     108
     109
     110[[br]]
     111
     112
     113=== Navigating weird behavior in the screens === #weird
     114
     115
     116Once before (Dec 2022) we saw some weird behavior where HPF appeared not to accept commands (PR 6136). The issue was that the HPF Detector Client screen was stuck in "Copy Mode", probably from an errant CTRL-A ESC command. Simply pressing ESC again fixed the issue. If this happens again in the future, it would be helpful to check the screen/terminal titles of each Screen session. This is not possible in the "rasession" style interface, but if you connect to each Screen separately we can check the titles to see if Copy Mode is enabled.
     117
     118Consider the following steps, too:
     119
     1200) Remember that screen can be blocking if it gets into its 'copy mode' (ctrl-a ESC), and probably several other ways to prompt this state too. If it is blocking you loose the ability to communicate with the process running inside of it.
     121
     1221) Pause any scripts that are running - you don't want to get things running and then have a script send a bunch of queued up commands in quick succession before you've been able to check functionality.
     123
     1242) Try to connect to the screen session:
     125{{{
     126screen -x hpf
     127}}}
     128
     1293) If this loads like normal and you see the detector client running, then the problem is not the screen session. Proceed with troubleshooting re. detector crash/non-responsiveness
     130
     1314) If you do not get a normal detector client, but instead just see a cursor and the process looks hung, try giving it *one* ctrl-c. This may unstick the screen session by killing whatever process in it had hung. Then the detector client software should show up like normal.
     132
     133[[br]]
     134
     135
     136
     137
     138==== Arrow-ing up to see what happened ====
     139
     140If you missed something that has scrolled off the top of the screen and you want to see what it was you can do a <ctrl>-a followed by an <esc> to get into "copy" mode.    Then use the arrows to move the cursor up to get to the message of interest.   To leaves copy mode hit two <esc> in a row.  To see the full set of screens commands please see our [wiki:HetProcedures/RA/Screens Screens Summary Page].
     141
     142
     143
     144== Old method to update Q* FITS header keywords == #Qfix
     145
     146Now replaced by {{{hpf_data_fix}}}, but retained here for completeness:
     147
     148{{{
     1491. ssh hpf@hpf
     1502. cd /home/hpf/HPFData/LinuxGigE/20201014/hpf/0010/fits/
     1513. /mnt/het/hetdex/bin/headfits -m -k QIDX -t int -v 6709 *.fits
     1524. /mnt/het/hetdex/bin/headfits -m -k QPROG -v UT20-1-999 *.fits
     1535. /mnt/het/hetdex/bin/headfits -m -k QRA -v '01:02:03.40' *.fits
     1546. /mnt/het/hetdex/bin/headfits -m -k QDEC -v '+45:34:23.1' *.fits
     1557. /mnt/het/hetdex/bin/headfits -m -k QEQUINOX -t float -v 2000 *.fits
     1568. /mnt/het/hetdex/bin/headfits -m -k QPMRA -t float -v 308.227 *.fits
     1579. /mnt/het/hetdex/bin/headfits -m -k QPMDEC -t float -v -608.695 *.fits
     15810. /mnt/het/hetdex/bin/headfits -m -k QEPOCH -t float -v 2015.5 *.fits
     159
     160
     161We must fix all exposures and all values: QIDX, QPROG, QRA, QDEC, QEQUNIOX, QPMRA, QPMDEC, QEPOCH
     162
     163
     164You can extract these values from the queue database with this command if you want, replacing the IDX number for the target you want:
     165
     166[stevenj@zeus ~]$ mysql -hnossy htopx -e "select idx,plan,ra,declination,equinox,pmra,pmdec,pmepoch from plandb_latest_cur where idx=4000"
     167
     168}}}
     169
     170
     171== rare errors == #rare
     172{{{
     173If see 'Error' in hpf session of client is not operation normally
     174you can try to restart client
     175
     176If you get the '''QSocketNotifier:''' in the detector client window you can try restarting it but if the error message comes back again then the instrument is down and you should call Chad.
     177}}}
     178
     179{{{
     180If part A script hang on message:
     181
     182"WARNING: Setting LFC flux to High .." or "Not yet set to high mode"
     183
     184means absence of communication to LFC computer.
     185It possible to abort script with Ctrl-C and email/call Connor for help.
     186
     187Until problem fixed it is best to assume that LFC is down and use Etalon
     188}}}
     189
     190
     191=== restarting the the HPF client === #restart
     192'''Note that the HPF client is restarted automatically every day 16:45 UT just after the LN2 refill.  The act of restarting the HPF makes a small change to the instrument temperature which impacts RV stability.'''
     193
     194{{{ restart_detectorclient }}} is called daily as part of the crontab at 16:45 UT to restart the HPF client daily.  It can
     195also be called on demand (but we ''very rarely do this'').
     196
     197There are two executable scripts:
     198
     1991) {{{start_hpfdetectorInfloop.sh}}} - this is running in the 'hpf' screen
     200session, and takes care of automatically restarting the client after it
     201is shutdown
     202
     2032) {{{restart_detectorclient}}} - can be called from any hpf terminal (but
     204preferably the 'scripts' session.  This will trigger a shutdown
     205sequence.  After the shutdown, {{{start_hpfdetectorInfloop.sh}}} will
     206automatically take care of bringing things back up.
     207
     208Check that the observation number is correct with {{{ pyhxrg:GetObsnum }}}
     209
     210if it is not then use the following command to set it: {{{tims Detect pyhxrg:SetObsnum:nn}}}     where nn is the number from previous !GetObsnum command
     211
     212[[br]]
     213