forked from Mikea1985/maphot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save useful TNOmag file. Fix bug introduced yesterday.
- Loading branch information
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,13 +33,13 @@ | |
import best | ||
from maphot_functions import (getArguments, getObservations, coordRateAngle, | ||
getSExCatalog, predicted2catalog, | ||
saveTNOMag, saveStarMag, | ||
saveTNOMag, saveStarMag, saveTNOMag2, | ||
getDataHeader, addPhotToCatalog, PS1_vs_SEx, | ||
PS1_to_CFHT, CFHT_to_PS1, inspectStars, | ||
chooseCentroid, removeTSF, | ||
extractGoodStarCatalogue) | ||
from __version__ import __version__ | ||
from pix2world import pix2world | ||
from pix2world import pix2MPC | ||
|
||
__author__ = ('Mike Alexandersen (@mikea1985, github: mikea1985, ' | ||
'[email protected])') | ||
|
@@ -332,6 +332,8 @@ | |
TNOCoords = WCS.all_pix2world(xUse, yUse, 1) | ||
#Save TNO magnitudes neatly. | ||
timeNow = datetime.now().strftime('%Y-%m-%d/%H:%M:%S') | ||
saveTNOMag2(inputFile, coordsfile, MJDm, TNOCoords, xUse, yUse, | ||
FILTER, fwhm, finalTNOphotPS1, timeNow, __version__, extno=extno) | ||
saveTNOMag(inputFile, coordsfile, MJD, MJDm, TNOCoords, xUse, yUse, | ||
MAGZERO, FILTER, fwhm, bestap, TNOPhot, | ||
magCalibration, dmagCalibration, finalTNOphotCFHT, zptGood, | ||
|
@@ -350,8 +352,7 @@ | |
inputName, outfile=outfile, repfact=repfact, remove=remove) | ||
|
||
#Run function to save photometry in MPC format | ||
pix2world(WCS, EXPTIME, MJD, finalTNOphotPS1[0], xUse, yUse, FILTER, | ||
extno) | ||
pix2MPC(WCS, EXPTIME, MJD, finalTNOphotPS1[0], xUse, yUse, FILTER, extno) | ||
|
||
print('Done with ' + inputFile + '!') | ||
outfile.close() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters