Skip to content

Commit

Permalink
Merge pull request #24 from mkelley/dev
Browse files Browse the repository at this point in the history
v2.3.0
  • Loading branch information
mkelley committed May 30, 2015
2 parents d0e169a + 8c4326b commit 1139c8c
Show file tree
Hide file tree
Showing 20 changed files with 2,432 additions and 228 deletions.
76 changes: 76 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,79 @@
2.3.0
-----

Critical fixes
^^^^^^^^^^^^^^

- `graphics.arrows` actually works now (again?).

- `image.analysis.azavg` bug fix for raps parameter as an integer.

New features
^^^^^^^^^^^^

- `catalogs`
- `brightest` to sort out bright sources from a catalog.
- `faintest` to sort out faint sources from a catalog.
- `find_offset` to determine the offset between two catalogs.
- `nearest_match` to find neighbors in two lists.
- `project_catalog` to project RA, Dec onto image plane.

- `image`
- `analysis.anphot`, `apphot`, `bgphot` allow multiple sources.
- `analysis.apphot_by_wcs` for aperture photometry by coordinates.
- `analysis.find` for rudimentary source finding.
- `core.imshift` allow whole pixel shifts.
- `core.rebin` handles scale factor 1 by special case.
- `process.align_by_centroid` and `align_by_wcs` for image
alignment.

- `observing`
- `Observer.finding_chart` for creating a finding chart with DS9.
- `plot_transit_time` for doing just that.

- `NEATM.fit` for least-squares fitting of a spectrum.

- New `photometry` module, with lots of Hale Bopp filter support in
`hb` submodule.

- `scripts/`
- `ephemeris` may now output coma flux estimates, and accepts kernel
file names from the command line.
- New `transit` script for generating plots of transit times.

- `util` functions
- `gaussfit` for Gaussian fitting.
- `glfit` for Gaussian + linear function fitting.
- `stat_avg` for array binning, considering measurement
uncertainties.
- `write_table` for quick writing of an astropy table with a simple
header.
- `xyz2lb` to convert Cartesian coordinates to angles.

Other improvements
^^^^^^^^^^^^^^^^^^

- `calib.filter_trans` modified to use np.loadtxt.

- `catalogs.spatial_match` and `triangles` overhauls.

- `comet.m2afrho` updated, but still experimental.

- `graphics.niceplot` keyword arguments to prevent changes to line
widths, marker sizes, and marker edge widths.

- `image`
- `analysis.gcentroid` uses float when passed a float.
- `process.fixpix` behind the scenes improvements and limit fixing
by area.
- `analysis.azavg` bug fix for raps parameter as an integer.

- `observing.Observer` includes date in string representation.

- `util`
- `getrot` fix for current astropy.io.fits behavior.
- `planckfit` fix for when leastsq refuses to fit the data.

2.2.4
-----

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mskpy

MSK's personal Python library, mostly for astronomy work.

Requires: numpy, scipy, astropy v0.3.
Requires: numpy, scipy, astropy v1.0.

Recommended: pyspice, matplotlib.

Expand Down
1 change: 1 addition & 0 deletions mskpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
modeling - For fitting models to data.
models - Surface and dust models.
observing - Tools for observing preparations.
photometry - Tools for photometry.
polarimetry - Classes and functions for polarimetry.
util - Grab bag of utility functions.
Expand Down
16 changes: 13 additions & 3 deletions mskpy/calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,15 @@ def filter_trans(name):
except KeyError:
raise KeyError("filter {} cannot be found.".format(name.lower()))

table = ascii.read(_filterdir + '/' + fil[0])
#table = ascii.read(_filterdir + '/' + fil[0], format='fixed_width_no_header')
#cols = fil[1]
#w = table.columns[cols[0]].data * u.um
#tr = table.columns[cols[1]].data

table = np.loadtxt(_filterdir + '/' + fil[0]).T
cols = fil[1]
w = table.columns[cols[0]].data * u.um
tr = table.columns[cols[1]].data
w = table[cols[0]] * u.um
tr = table[cols[1]]

return w, tr

Expand Down Expand Up @@ -323,3 +328,8 @@ def cohen_standard(star, unit=u.Unit('W/(m2 um)')):
fl = fl.to(unit, equivalencies=equiv)

return wave, fl

# update module docstring
from .util import autodoc
autodoc(globals())
del autodoc
Loading

0 comments on commit 1139c8c

Please sign in to comment.