Created
June 17, 2014 14:48
-
-
Save ChrisBeaumont/81d6c2b64f403a207e1b to your computer and use it in GitHub Desktop.
make_catalog test
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
from astrodendro import Dendrogram, ppv_catalog | |
from astropy.io import fits | |
from astropy import units as u | |
data = fits.getdata('DHT21_Taurus_mom.fits') | |
dg = Dendrogram.compute(data, verbose=True, | |
min_value=0.01, | |
min_delta = 0.005, | |
min_npix = 20) | |
# this is arbitrary, except for vaxis | |
# shouldn't affect speed | |
metadata = dict(vaxis=2, | |
velocity_scale=.125 * u.km / u.s, | |
spatial_scale=.1 * u.pc, | |
beam_major = 0.1 * u.deg, | |
beam_minor = 0.1 * u.deg, | |
data_unit = 1 * u.Jy) | |
cat = ppv_catalog(dg, metadata, verbose=True) | |
cat.write('taurus.csv', format='ascii') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment