I often want to overplot USNO-B1.0 catalog sources on a ds9 view of an image. This requires that the image has WCS installed in the image FITS header.
The routine usno_look_wcs_run is a wrapper script that runs the usno_look_wcs routine. I use this arrangement becasue the user will often want to change the magnitude type and limit used to draw sources from the USNO-B1.0 catalog.
% usno_look_wcs_run /home/sco/ACM_work_Oct2019/red_20191018/Test1/local_red/WCS/20191018T024545.3_acm_sci.fits N Usage: usno_look_wcs_run ./local_red/WCS/Rsco2039.fits N arg1 - Name of FITS image (can be full path) arg2 - run in debug mode (Y/N) *** A very useful feature **** Make "extra.quantity" file cantaining "Red" and the USNO Red magnitudes will be appended to the target names. Read more about this in the cdfp2reg.sh documnent.In the examples above, note that we can use various means of specifying the fullpath name of the image we want to view in ds9.
We want the marker information.
% ds9_region_saver N % ds9regget.sh Saved_Coordinates.physical.reg circle any 408.36 8.34 29.55 circle blue {1}........................... 639.09 146.92 29.55 circle blue {2}........................... 697.74 54.22 29.55 circle blue {3}........................... 12.68 286.36 29.55 circle blue {4}........................... % search_ds9reg_by_name Usage: search_ds9reg_by_name 1 filename arg1 - name (text string) of the region of interest arg2 - name of regions file (must be image units) % search_ds9reg_by_name 22 Saved_Coordinates.physical.reg 660.88 464.90 29.55 circle blue 22
% usno_look_wcs_run /home/sco/ACM_work_Oct2019/red_20191018/Test1/local_red/WCS/20191018T024545.3_acm_sci.fits N Using curve_runner I found for an i acm image: logR = 2.2514 - 0.0792 mag Here I use mag = USNO Red magnitudes and R is the star radius in units of pixels on the acm image. what I need to modify is: % cdfp2reg.sh 20191018T024545.3_acm_sci-usno.cdfp 8.0 red none none Number of targets = 35 File type = RD *** Use regions file = 20191018T024545.3_acm_sci-usno.cdfp.regWhen this works.