-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284 from drvdputt/units-standard
Standardize units (extended)
- Loading branch information
Showing
4 changed files
with
94 additions
and
32 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
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,17 @@ | ||
import astropy.units as u | ||
from astropy.units import CompositeUnit | ||
|
||
|
||
# Working/default unitParameter default units: flux density/intensity/power | ||
# These are PAHFITs default science packs parameter and output units | ||
temperature = u.K | ||
wavelength = u.um | ||
flux_density = u.mJy | ||
flux_power = CompositeUnit(1e-22, (u.W, u.m), (1, -2)) | ||
solid_angle = u.sr | ||
intensity = u.MJy / u.sr | ||
intensity_power = CompositeUnit(1e-10, (u.W, u.m, u.sr), (1, -2, -1)) | ||
|
||
# Note: integrated power units of 1e-22 W/m^2 (from flux) corresponds | ||
# to the unit 1e-10 W/m^2/sr (from intensity) if it occurs uniformly | ||
# over a solid angle 0.21" on a side (about a small JWST IFU pixel) |