Here are some early notes on routines developed to gather and access image calibration data.
Here I collect work to finalize an automated XY match routine for the purpose
of wcs calibration. Images for developing and testing this:
20191018T024545.3_acm_sci.fits Typical acm image.
Rsco2043.fits ccd-processed V PFC image of the N3379 field.
Rsco3226.fits ccd-processed R PFC image of the N7479 field.
Rsco5261.fits ccd-processed R PFC image of the N6946 field.
To address these initial images if I am running on sco2019:
/home/sco/AUTO_match_for_wcs/S/Rsco2043.fits
/home/sco/AUTO_match_for_wcs/S/Rsco3226.fits
/home/sco/AUTO_match_for_wcs/S/Rsco5261.fits
/home/sco/AUTO_match_for_wcs/S/20191018T024545.3_acm_sci.fits
To address these initial images if I am running on mcs (as sco):
/home/mcs/sco/AUTO_match_for_wcs/S/Rsco2043.fits
/home/mcs/sco/AUTO_match_for_wcs/S/Rsco3226.fits
/home/mcs/sco/AUTO_match_for_wcs/S/Rsco5261.fits
/home/mcs/sco/AUTO_match_for_wcs/S/20191018T024545.3_acm_sci.fits
***** GATHER IMAGE PROPERTIES
% cat list.0
/home/sco/AUTO_match_for_wcs/S/20191018T024545.3_acm_sci.fits
/home/sco/AUTO_match_for_wcs/S/Rsco2043.fits
/home/sco/AUTO_match_for_wcs/S/Rsco3226.fits
/home/sco/AUTO_match_for_wcs/S/Rsco5261.fits
% fitslists list.0
Makes the files:
For each line in the input list:
fitslists.IMGTYPE = image types
fitslists.PSDEF = default plate scales
fitslists.RAsexDECsex = RA,DEC of image in sexig format (uniform output format)
list.for_mode2 = input file to run dssbase_run_markII
***** GATHER CALIBRATION MATERIAL
I use the file fitslists.RAsexDECsex as input
Mode1 = use uniform properties and list of Rra,dec
% dssbase_run_markII fitslists.RAsexDECsex 2.5 19.0 20.5 none N
Mode2 = use a custom input file named list.for_mode2
% dssbase_run_markII list.for_mode2 none none none none list N
Contents of list.for_mode2
Ra, Dec, RadMin RadMinC R2maglim gmaglim
RadMin = DSS image "radius" in arcminute units
RadMinC = radius in arcminute units used for phtometry catalogs (USNO-B1.0, PS1)
R2maglim = faint limit of R2 magnitudes gathered from USNO_B1.0
gmaglim = faint limit of g magnitudes gathered from PS1
RESULTS: The calibration material is written to ./local_red/Store_DSS
% pwd
/home/sco/tmp/local_red/Store_DSS
% ls
dss_RA01c17c31p268DEC+53c20c40p56_297.fits
dss_RA01c17c31p268DEC+53c20c40p56_297_ps1.cdfp
dss_RA01c17c31p268DEC+53c20c40p56_297_usno_all.cdfp
dss_RA10c47c49p989DEC+12c34c55p92_1426.fits
dss_RA10c47c49p989DEC+12c34c55p92_1426_ps1.cdfp
dss_RA10c47c49p989DEC+12c34c55p92_1426_usno_all.cdfp
dss_RA10c47c49p989DEC+12c34c55p92_297.fits
dss_RA10c47c49p989DEC+12c34c55p92_297_ps1.cdfp
dss_RA10c47c49p989DEC+12c34c55p92_297_usno_all.cdfp
To look at an image:
% ds9_open 1000 800
opening ds9 now
Enter any key AFTER ds9 window opens.
% ds9_view dss_RA10c47c49p989DEC+12c34c55p92_297.fits zscale n 2
***** REVIEW AND SUMMARIZE DSSBASE MATERIAL
These test cases are run in: ..../AUTO_match_for_wcs/use_dssbase/Tests_0
% cat S/list.dss
./local_red/Store_DSS/dss_RA01c17c31p268DEC+53c20c40p56_297.fits
./local_red/Store_DSS/dss_RA10c47c49p989DEC+12c34c55p92_1426.fits
./local_red/Store_DSS/dss_RA10c47c49p989DEC+12c34c55p92_297.fits
TBD: Need some general routine to build the list.dss file
To process each dssbase set:
Usage: dssbase_review list.dss
arg1 - file listing the (fullpath) names of the dss fits images
Additional options:
-v = print verbose comments
--help = view a help document
======================================================================================
% dssbase_review list.dss
Image 1
basename=dss_RA01c17c31p268DEC+53c20c40p56_297 subdir=./local_red/Store_DSS
Image 2
basename=dss_RA10c47c49p989DEC+12c34c55p92_1426 subdir=./local_red/Store_DSS
Image 3
basename=dss_RA10c47c49p989DEC+12c34c55p92_297 subdir=./local_red/Store_DSS
======================================================================================
++++++++++
Extra stuff
To view the catalog sources for dss_RA19c22c47p570DEC+53c20c40p33_297:
cdfp2reg.sh dss_RA19c22c47p570DEC+53c20c40p33_297_usno_all.cdfp 5.0 red any any
**** But this does not appear to work well!
The detailed goal list as of Jan9,2020:
0) Review how dssbase_run_markII runs:
dssbase_run_markII 20191018T024545.3_acm_sci.radec 2.5 19.0 21.5 none N
1) Have fitslists make an input file for running dss_store_markII
2) Run dss_store_markII on my two test images in /home/sco/tmp/S listed in list.0
Document dss_store_markII to show examples of the two basic operational modes
to gather support data.
4) For each image in an input list, identify the appropriate cal material in
my dss_store database.
5) Make a tool to easily review the images+cal materia. A two panel ds9 plot
with objects overplotted on the DSS image would seem to be good.
Working on: dssbase_review
Jan30,2019
==========
0-3 are finished from the above list. Have 4,5 to go.
1) dssbase_list to provide basic summary list of StoreDSS contents
2) Install dssbase_list call into dssbase_review.
3) Have dssbase_review show each DSS image with the USNO,PS1 source overplotted.