vir_ifu_pat

This code generates files that characterise VIRUS IFUSLOT positions. The code can be run to generate tables using units of MICRONS or ARCSECONDS. If a second (optional) argument is used, then the position of a single user-specified IFU (the second argument!) is written to standard out. The second argument can be left absent when you run the vir_ifu_pat.sh script. Here are the usual usage messages.

 
% vir_ifu_pat.sh  
Usage: vir_ifu_pat.sh microns 015
arg1 - IHMP xy units  (arcseconds,microns)
arg2 - IFUSLOT of interest (can be absent)

% vir_ifu_pat.sh arcseconds 

% vir_ifu_pat.sh microns 

% vir_ifu_pat.sh arcseconds 115 
  -550.00     -50.00
Note that this routine only deals with the IFUSLOT positions in the IHMP. I dabbled with adding other positions (the IHMP center, BIB, HRS, etc...) but decided to leave this for another dedicated routine. The vir_ifu_pat.f code deals only with a possible set of 120 IFUSLOT positions (of which 78 will be used for VIRUS and LRS2 IFUs). The files that are created are:

IFU.active_list
  list of the active IFU units in VIRUS

vir_ifu_pat.ifu_linesegs
  line segments for active IFUs

vir_ifu_pat.ifu_names 
  XY center and name for each active IFU

VIRUS_IFU.table
  list that summarizes IFU properties 
I could show examples of the files made with these commands, but the easier thing to do is to just run the commands and look at the files! It only takes a second to run, and the files generally have pretty descriptive headers that will clue you in to what thaey are for.

As of Jan2016, I only use calls to vir_ifu_pat.sh in just a few scripts, but these are very important for a lot of things!

% mob
% grep -n 'vir_ifu_pat.sh' *
gcpic:103: printf "Ready too call vir_ifu_pat.sh\n"
gcpic:105:vir_ifu_pat.sh microns
gcpic:108: printf "Back in gcpic after vir_ifu_pat.sh run\n"
ifuslot:2:# Give X,Y for an IFUSLOT position (use vir_ifu_pat.sh) 
ifuslot:12:vir_ifu_pat.sh arcseconds $1



Back to SCO CODES page