-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
90 additions
and
45 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
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python -m fcmaker -l -f local_2_fcm.muse_wfm-noao.txt --do-png --systemtex --do-pdf | ||
python -m fcmaker -l -f local_2_fcm.muse_wfm-ao.txt --do-png --systemtex --do-pdf | ||
python -m fcmaker -l -f local_2_fcm.muse_nfm-Gaia.txt --do-png --systemtex --do-pdf | ||
python -m fcmaker -l -f local_2_fcm.muse_nfm-DSS.txt --do-png --systemtex --do-pdf | ||
python -m fcmaker -l -f local_2_fcm.muse_nfm-HST.txt --do-png --systemtex --do-pdf |
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
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 |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
|
||
''' | ||
fcmaker: a Python module to automatically create finding charts for ESO OBs in p2.\n | ||
Copyright (C) 2017-2018, F.P.A. Vogt | ||
Copyright (C) 2017-2019, F.P.A. Vogt | ||
--- oOo --- | ||
This file contains general functions for the fcmaker routines. | ||
Created October 2017, F.P.A. Vogt - [email protected] | ||
|
@@ -330,7 +330,7 @@ def make_fc_local(f, | |
raise Exception('Ouch! unknown file: %s' % (fn)) | ||
|
||
# Load the parameter file | ||
inpars = yaml.load(f) | ||
inpars = yaml.load(f, Loader=yaml.SafeLoader) | ||
|
||
# Set the observing date (and time) | ||
set_obsdate(obsdate) | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
''' | ||
fcmaker: a Python module to automatically create finding charts for ESO OBs in p2.\n | ||
Copyright (C) 2017-2018, F.P.A. Vogt | ||
Copyright (C) 2017-2019, F.P.A. Vogt | ||
--- oOo --- | ||
This file contains tools related to the ESPRESSO instrument. | ||
Created September 2018, F.P.A. Vogt - [email protected] | ||
|
@@ -445,7 +445,7 @@ def plot_field(ax1, ax2, fc_params, field): | |
#markersize=10, | ||
label='PM* (track:$-$%.1f yr)' % (fcm_m.pm_track_time.to(u.yr).value)) | ||
|
||
ax2._ax1.legend(handles=[acq_legend, target_legend, calsource_legend, ucac2_legend, PM_legend], | ||
ax2.ax.legend(handles=[acq_legend, target_legend, calsource_legend, ucac2_legend, PM_legend], | ||
bbox_to_anchor=(0., 1.02, 1., .102), loc=3, | ||
ncol=6, mode="expand", borderaxespad=0., fontsize=10, borderpad=0.7, | ||
handletextpad=0.2, handlelength=2.0) | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
''' | ||
fcmaker: a Python module to automatically create finding charts for ESO OBs in p2.\n | ||
Copyright (C) 2017-2018, F.P.A. Vogt | ||
Copyright (C) 2017-2019, F.P.A. Vogt | ||
--- oOo --- | ||
This file contains tools related to the HAWKI instrument. | ||
Created October 2017, F.P.A. Vogt - [email protected] | ||
|
@@ -698,7 +698,7 @@ def plot_field(ax1, ax2, fc_params, field): | |
#markersize=10, | ||
label='PM* (track:$-$%.1f yr)' % (fcm_m.pm_track_time.to(u.yr).value)) | ||
|
||
ax2._ax1.legend(handles=[acq_legend,O_legend,S_legend, ucac2_legend, PM_legend], | ||
ax2.ax.legend(handles=[acq_legend,O_legend,S_legend, ucac2_legend, PM_legend], | ||
bbox_to_anchor=(0., 1.02, 1., .102), loc=3, | ||
ncol=5, mode="expand", borderaxespad=0., fontsize=10, borderpad=0.7, | ||
handletextpad=0.2, handlelength=2.0) | ||
|
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 |
---|---|---|
|
@@ -8,15 +8,15 @@ | |
|
||
''' | ||
fcmaker: a Python module to automatically create finding charts for ESO OBs in p2.\n | ||
Copyright (C) 2017-2018, F.P.A. Vogt | ||
Copyright (C) 2017-2019, F.P.A. Vogt | ||
--- oOo --- | ||
This file contains some generic metadata used throughout the fcmaker module, including | ||
the version number, etc ... | ||
Created October 2017, F.P.A. Vogt - [email protected] | ||
''' | ||
|
||
# Define the version of fcmaker | ||
__version__ = '103.1.1' | ||
__version__ = '104.0.0' | ||
|
||
# Where are we located ? | ||
fcm_dir = os.path.dirname(__file__) | ||
|
@@ -42,7 +42,7 @@ | |
set_North = True | ||
|
||
# Default date (and time) at which the observations will take place. | ||
obsdate = dup.parse("2018 07 01 00:00:00 UTC") | ||
obsdate = dup.parse("2019 12 01 00:00:00 UTC") | ||
|
||
# VLT Guide star nominal magnitude range (in UCAC2 UCmag system) | ||
gs_mag = [11.,14.] | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
''' | ||
fcmaker: a Python module to automatically create finding charts for ESO OBs in p2.\n | ||
Copyright (C) 2017, F.P.A. Vogt | ||
Copyright (C) 2017-2019, F.P.A. Vogt | ||
--- oOo --- | ||
This file contains tools related to the MUSE instrument. | ||
Created October 2017, F.P.A. Vogt - [email protected] | ||
|
@@ -799,7 +799,7 @@ def plot_field(ax1, ax2, fc_params, field): | |
#markersize=10, | ||
label='PM* (track:$-$%.1f yr)' % (fcm_m.pm_track_time.to(u.yr).value)) | ||
|
||
ax2._ax1.legend(handles=[acq_legend, target_legend,O_legend,S_legend,ucac2_legend, PM_legend], | ||
ax2.ax.legend(handles=[acq_legend, target_legend,O_legend,S_legend,ucac2_legend, PM_legend], | ||
bbox_to_anchor=(0., 1.02, 1., .102), loc=3, | ||
ncol=6, mode="expand", borderaxespad=0., fontsize=10, borderpad=0.7, | ||
handletextpad=0.2, handlelength=2.0) | ||
|
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
from astropy.coordinates.sky_coordinate import SkyCoord | ||
from astropy import units as u | ||
from astropy.time import Time | ||
from astroquery.skyview import SkyView | ||
|
||
import matplotlib as mpl | ||
|
||
|
@@ -19,6 +20,17 @@ | |
This file contains general tools for the fcmaker routines. | ||
Created October 2017, F.P.A. Vogt - [email protected] | ||
''' | ||
# ---------------------------------------------------------------------------------------- | ||
# Gets me all the surveys that I support from SkyView | ||
def all_surveys(): | ||
|
||
surv = SkyView.survey_dict['IR:2MASS class='] | ||
surv += SkyView.survey_dict['IR:UKIDSS class='] | ||
surv += SkyView.survey_dict['Optical:DSS class='] | ||
surv += SkyView.survey_dict['Optical:SDSS'] | ||
surv += SkyView.survey_dict['OtherOptical'] | ||
|
||
return surv | ||
|
||
# ---------------------------------------------------------------------------------------- | ||
# Design a crosshair custom marker that is sadly missing from maplotlib | ||
|
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
setup( | ||
name='fcmaker', | ||
version='103.1.1', | ||
version='104.0.0', | ||
author='F.P.A. Vogt', | ||
author_email='[email protected]', | ||
packages=['fcmaker',], | ||
|
@@ -13,17 +13,17 @@ | |
long_description=open('README').read(), | ||
python_requires='>=3', | ||
install_requires=[ | ||
"numpy >= 1.14.3", | ||
"scipy >= 1.1.0", | ||
"matplotlib >= 3.0.0", | ||
"astropy >=3.0", | ||
"aplpy >=1.1.1", | ||
"astroquery >= 0.3.4", | ||
"p2api >= 0.92", | ||
"PyYAML >=3.12", | ||
"pytz >= 2018", | ||
"astroplan", | ||
"pillow >=5.2.0", | ||
"numpy >= 1.16.2", | ||
"scipy >= 1.2.1", | ||
"matplotlib >= 3.0.3", | ||
"astropy >=3.1.2", | ||
"aplpy >=2.0.3", | ||
"astroquery >= 0.3.9", | ||
"p2api >= 0.94", | ||
"PyYAML >=5.1", | ||
"pytz >= 2018.9", | ||
"astroplan >=0.4", | ||
"pillow >=5.4.1", | ||
#"montage-wrapper >= 0.9.9", | ||
], | ||
|
||
|
@@ -32,7 +32,7 @@ | |
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
'Development Status :: 3 - Alpha', | ||
'Development Status :: 4 - Beta', | ||
|
||
# Indicate who your project is intended for | ||
'Intended Audience :: Science/Research', | ||
|
@@ -43,7 +43,7 @@ | |
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
|
||
include_package_data=True, # So that non .py files make it onto pypi, and then back ! | ||
|