This is a dedicated script for running gstar in a way that sets up LRS2 observations. We specify whether we want the B or R channel, and we specify which probe we wish to locate a guide star for (gc1 or gc2). Recall that this code runs the gstar tool, and you can use special local files for running gstar".
% lrs2g Usage: lrs2g 09:48:56.10 +13:44:39.00 111.6 gc1 R arg1 - RA (sexigecimal) arg2 - DEC (sexigecimal) arg3 - Azimuth of HET structure (degrees) arg4 - guide probe name (gc1,gc2) arg5 - LRS2 channel (R,B)Update (Apr2016): The bash script lc1 runs lrs2g and dac. It is useful.
This process may be in flux, but here are some notes we took during the March 2016 LRS2 commissioning run. In thsi example we identify a star in a cluster that we'll setup for observing with the LRS2 B channel. We identify a star to be placed in gc2 (for guiding). I include a few extra commands and notes (that surely will be changed in the near future as our methodology evolves.
Basic Command: lrs2g 06:15:16.80 +39:52:04.80 296.9 gc2 B The star we want in LRS2B is at: Ra,Dec = 06:15:16.392 +39:52:03.10 2000 Our final lrs2g command is then: lrs2g 06:15:16.392 +39:52:03.10 296.9 gc2 B After the gstar run completes, we see the info we need: Ra,Dec,Az(IHMP): 06:15:03.319 +39:52:47.69 296.9 Telecen_X, Telecen_Y, (Ra,Dec)_probe, Probe_name: -0.13319 -0.07093 06:15:24.800 +39:44:20.06 gc2
At this point we have obtained the RA,DEC on the sky where we want to place the IHMP, and we know the RA,DEC of the guide star we wish to place in the gc2 field. Here is the way we can implement these actions:
We must compute the RA,DEC in floating point format. RA is in HOURS, and DEC is in degrees: [astronomer@mcs gp000]$ psex.py -- 06:15:03.319 +39:52:47.69 06:15:03.319 +39:52:47.69 93.763829167 6.250921944 39.879913889 --------------------------------------------------- Note to self: totarg is deprecated. --------------------------------------------------- To send the target to tcs we now use: syscmd -T -v 'load_trajectory( id=666, ra=6.250921944, dec=39.879913889, equinox=2000.0, dir="WEST") ' We can use the script "ltraj" to build this command: % ltraj 06:15:03.319 +39:52:47.69 W 666 RA_ihmp DEC_ihmp trac number The advantage here is that ltraj runs psex.py for us. We could also specify az with: syscmd -T -v 'load_trajectory( id=666, ra=6.250921944, dec=39.879913889, equinox=2000.0, az=296.9, dir="WEST") '
Before the setup is really usable, the TO must place the IHMP position at the desired position above. When we load the trajectory above and execute the "GoNext", we'll get this done only approximately. The final correction (usually a 5"-10" move) will be done by the TO using a finding chart using a manual method or the script named dac:
Manual procedure: *** We make the dss_acam finding chart the TO - display acam_dss.fits in our ds9 window - find a bright star and circle it - dbl-click the circle, change fk5 to image in the pop-up gui - read X,Y of the star and place these in the Text box - Change to Black color and Font=20 - Print chart and give to TO A much easier script: % dac acam_dss.fits NGC1156 (where the name of the target in "NGC1156")
The htopx2 position will not be the same as our IHMP position predicted above by lrs2g. To load the IHMP ra,dec we want, use the ltraj script:
Usage: ltraj 07:38:11.913 +21:33:59.55 WEST 666 arg1 = ra (sexigecimal) arg2 = dec (sexigecimal) arg3 = track direction (E,W) arg4 = integer ID number [astronomer@mcs charts]$ ltraj 07:38:11.913 +21:33:59.55 WEST 667 syscmd -T -v 'load_trajectory( id=667, ra=7.636642500, dec=21.566541667, equinox=2000.0, dir="WEST" )'
Our final task is to place the guide probe (gc2 in this case) at the proper position. We can use the script named "rdsets" to build the command lines for this. Here we used the same RA,DEC values since gc1 was not operational and we were not going to use that portion of the command call anyway:
To send the probe to the star: For probe safety: % syscmd -T 'pfip_clear_positions()' % rdsets 06:15:24.800 +39:44:20 06:15:24.800 +39:44:20 rdsets 06:15:24.800 +39:44:20 06:15:24.800 +39:44:20 [astronomer@mcs gp000]$ rdsets 06:15:24.800 +39:44:20 06:15:24.800 +39:44:20 syscmd -T 'Guider1_set_position( ra=6.256888889, dec=39.738888889, equinox=2000.0, trajectory="current" )' syscmd -T 'Guider2_set_position( ra=6.256888889, dec=39.738888889, equinox=2000.0, trajectory="current" )' syscmd -T 'pfip_move_probes()' For centering probes (old way): [astronomer@mcs gp000]$ pmove gc2 -.140 -.073 syscmd -T -v 'Guider2_set_position( x_ang=-.140, y_ang=-.073) ' syscmd -T -v 'pfip_move_probes()'That last part, using the pmove command, will probably be deprecated soon. A much easier visaul centering method will be implemented in PAS. New Way: Only Justen knows! Also see the Guide Probes sections in TO section of the hetwiki --->> Making offsets on the cameras.
Finally, I include some extra notes from early Mar2016 just for the record.
--------- Other recent (Mar2016) info: IHMP acam fidu - 165 409 LRS2B acam fidu - 723 246 LRS2R acam fidu - 721 612 To move from lrs2b to lrs2r position syscmd -T 'offset_trajectory(dx_ang=-101, dy_ang=-3, adjust_probes="true")' this moves telescope -101 in x To move from lrs2r to lrs2b position syscmd -T 'offset_trajectory(dx_ang=101, dy_ang=3, adjust_probes="true")' this moves telescope 101 in x