Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Oct 6, 2017
1 parent 185f1db commit dfcd0f1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions doc/problems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,20 @@ pp_calibrate (Photometric Calibration)
This problem might be solved by installing the latest version of astropy
(currently 2.0.2).

**The pipeline crashes in ``pp_calibrate`` with the following error
message: `IndexError: too many indices for array`.**
Well, this is embarassing... I am familiar with this problem, but I
haven't found a way to solve it, yet. The problem is that Source
Extractor runs in ``pp_photometry`` to produce an array of aperture
photometry results for the curve-of-growth analysis. After that,
Source Extractor is supposed to run then once again using the
optimum aperture radius. Sometimes, this second Source Extractor
runs seems to fail, causing ``pp_calibrate`` to fail. A manual
workaround is to run ``pp_photometry`` again using the ``-aprad``
option and the optimum aperture derived from the last run. Running
``pp_calibrate`` again will then succeed.


pp_distill (Target Photometry Extraction)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion pp_calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def create_photometrycatalog(ra_deg, dec_deg, rad_deg, filtername,
('APASS' in catalogname and
filtername not in {'B', 'V', 'g', 'r', 'i'}) or
('2MASS' in catalogname and
filtername not in {'J', 'H', 'K'}) or
filtername not in {'J', 'H', 'K', 'Ks'}) or
('PANSTARRS' in catalogname and
filtername not in {'g', 'r', 'i', 'z', 'y'}) ):

Expand Down
2 changes: 1 addition & 1 deletion pp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def prepare(filenames, obsparam, header_update, keep_wcs=False,
telescope = 'GENERIC'

obsparam = _pp_conf.telescope_parameters[telescope]

header_update = {}
if man_target is not None:
header_update[obsparam['object']] = man_target
Expand Down

0 comments on commit dfcd0f1

Please sign in to comment.