This module contains all functionality for performing a photometric calibration for a given frame. It does so by matching the ODI source catalog to a catalog of stars from the SDSS. The comparison between instrumental and reference magnitudes then yields the calibration zeropoint.
If requested, podi_photcalib also creates diagnostic plots that allow to easily judge the quality of the obtained calibration.
The module also contains all required functionality to access local SDSS star catalogs or, if no local copies are available, query the SDSS online.
-multi
Deprecated for now, do not use
-new
-querysdss
Test-routine that queries the SDSS and prints the returned catalog
Run as:
podi_photcalib -querysdss ra_min ra_max dec_min dec_max (-print)
If the -print option is given as well print the entire catalog to stdout, otherwise only print the number of returned stars.
-swarp
Compute the photometric zeropoint for a frame created with swarp.
Run as:
‘’podi_photcalib.py -swarp swarped_frame.fits swarp_input_frame.fits``
swarp_input_frame here is one of the frames that went into the swarped frame. This is necessary to obtain the FILTER and EXPTIME keywords that are required for the photometric calibration, but are typically not contained in the swarped frame any longer.
-aucap
Compute the photometric zeropoint for a frame created with the Automatic Calibration Pipeline (AuCaP).
Run as:
podi_photcalib.py -aucap file1.fits file2.fits file3.fits ...
In this mode, podi_photcalib can run on any number of input frames in sequence.
To save time during programming, two additional flags are supported in these modi. By default, if the source catalog for the specified input file already exists, it is simply re-used and not created. To force re-running SExtractor, add the -resex flag. Additionally, in the -aucap mode, if the source catalog exists, podi_photcalib also does not re-create the diagnostic plots. To change this behavior and re-create the plots, add the -replot flag.
Query the SDSS online and return a catalog of sources within the specified area
Parameters : |
|
---|---|
Returns: |
|
Load the source catalog from the custom pODI Stripe82 catalog.
Parameters : |
|
---|---|
Returns: |
|
Retrieve the SDSS catalog for the specified area, using the local FITS-based catalog of the SDSS.
Parameters : |
|
---|---|
Returns: | source-catalog – contains the following columns: ra, dec, mag_u, magerr_u, g, r, i, z |
Perform the photometric calibration, create the diagnostic plots and return the results.
Parameters : |
|
---|---|
Returns: |
|
Deprecated, do not use.
High-level interface to the SDSS catalog search. Depending on the settings in podi_sitesetup (see sdss_ref_type) this forwards the query to search either the local Stripe82 catalog, the online SDSS catalog or the local FITS catalog.
Parameters : |
|
---|---|
Returns: | source-catalog |