ds9_list_load
Updated: Oct19,2019

View a big list of images with ds9. Mark selected images and create two lists of images: one for marked images, and one for unmarked images. If the input list (list.name) has a corresponding Text file (list.name.Text) then the conetnets of eac Text line will be drawn into the image using a color and fontsize specufied interactively by the user at run time.


% ds9_list_load list.1 

% ds9_list_load --help 
ds9_list_load:
Display a set of images listed in a file. Mark selected images with a circle marker. 

I have added a useful feature that allows us to overplot text information for the image displayed by ds9_list_load. The text lines are read automatically from a file whose name is linked to the basic input file. If the input file is named list.BIAS," then the file of text lines is named "list.BIAS_Text". Below I show a full demo run and the resultant image.



% cat list.BIAS
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064427.7_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064547.8_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064556.9_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064605.7_acm_sci.fits

% cat list.BIAS.Text 
 r` 6.74399 1410.2 0.01  
 r` 6.76838 1389.4 0.01  
 r` 6.77188 1389.6 0.01  
Boot Head Jones                 # I can use any line of text

% ds9_list_load list.BIAS

# I interactively specify the font color and size, text X,Y placement, and x,y size of ds9 window 
# I used  font color=yellow,  fontsize = 20,  X,Y=400,400    window x,y = 900,900 

At the end of this run, I would find two new files: 
  ds9_list_load.mark    == images with a circle region marked 
  ds9_list_load.nomark  == images with no circle region marked 



A sample set of tiled images assembled with ds9_load_list. The command line and support files were:

% ds9_list_load list.BIAS
% cat list.BIAS
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064427.7_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064547.8_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064556.9_acm_sci.fits
/home/sco/HET_work/acm_nights/20180114/acm/20180114T064605.7_acm_sci.fits
% cat list.BIAS.Text
 r` 6.74399 1410.2 0.01  
 r` 6.76838 1389.4 0.01  
 r` 6.77188 1389.6 0.01  
Boot Head Jones  


I usually use ds9_list_load to generate the files ds9_list_load.mark and ds9_list_load.nomark. Using these lists it is easy to write scripts that clean images lists or operate only on selected images.




Back