A script for retrieving shuffle information from the directories specified by the environmental variable SHUFDIRS.
On scohome: % echo $SHUFDIRS /home/sco/Target_Setup % genread_shuffle_info --help % genread_shuffle_info Usage: genread_shuffle_info 18-1 272 E 056 Y Y arg1 - catalog (18-1,spc,tell,f14) arg2 - index number of target (in htop) arg3 - observe east (E) or west (W) of meridian arg4 - ifu (056,066,etc...) arg5 - run in verbose mode (Y/N) arg6 - run in debug mode (Y/N) T o examples on scohome: % genread_shuffle_info 18-1 272 E 056 Y Y % genread_shuffle_info glob 6 E 000 Y Y
In Apr2018 I had to fix problems due to shuffle name conventions in the codes genread_shuffle_info and shufcoms.sh
Names were different styles: % pwd /home/sco/Target_Setup/18-1/272/E % ls images sn17iws_fp.png % ls ACAMimages sn17iws_056_E.jpg # AFter Feb2018: % pwd /home/sco/Target_Setup/glob/6/E % pwd /home/sco/Target_Setup/glob/6/E % ls images/ ngc5272_000_E.jpg ngc5272_035_E.jpg ngc5272_084_E.jpg % ls ACAMimages/ ngc5272_000_E.jpg ngc5272_035_E.jpg ngc5272_084_E.jpg NOTE: The HETcommands/*.cfg file has what I need.I basically added a new OTW code that would take the name of the HETcommands/*.cfg and strip out just the target name (the original target name from htop). Hence, the basic things I need to install or this script are:
genread_shuffle_info (bash) shuf_targname: (otw, to get name string) shufcoms (otw, to get ra,dec,az) Here is a sample: % genread_shuffle_info glob 6 E 000 N N 6 ngc5272_000_E 13:42:11.34 +28:22:44.3 83.351 The quantities listed are: index, final target name, RA_ihmp, DEC_ihmp, AZ Here are the output files: % ls genread_shuffle_info.Explain hetcommands.6_000_E S/ shuffle.fchart1 shuf_targname.out genread_shuffle_info.out its.output shufcoms.out shuffle.fchart2 % cat genread_shuffle_info.out 6 ngc5272_000_E 13:42:11.34 +28:22:44.3 83.351 % cat shuffle.fchart1 /home/sco/Target_Setup/glob/6/E/images/ngc5272_000_E.jpg % cat shuffle.fchart2 /home/sco/Target_Setup/glob/6/E/ACAMimages/ngc5272_000_E.jpgSome of these output files are used by the lrs2stars routine.