-
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.
Merge pull request #138 from punch-mission/add-angles
Add support for arbitrary polarization angles specification and npol system
- Loading branch information
Showing
13 changed files
with
464 additions
and
419 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "solpolpy" | ||
version = "0.1.3" | ||
version = "0.2.0" | ||
authors = [ | ||
{ name="J. Marcus Hughes", email="[email protected]"}, | ||
{ name="Matthew J. West", email="[email protected]"}, | ||
|
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import importlib | ||
|
||
from solpolpy.core import resolve | ||
from solpolpy.instruments import load_data | ||
from solpolpy.plotting import get_colormap_str, plot_collection | ||
|
||
__version__ = importlib.metadata.version("solpolpy") | ||
__all__ = [resolve, load_data, get_colormap_str, plot_collection] |
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
"""Constants used in code""" | ||
VALID_KINDS = {"MZP": [["Bm", "Bz", "Bp", "alpha"], ["Bm", "Bz", "Bp"]], | ||
"BpB": [["B", "pB", "alpha"], ["B", "pB"]], | ||
"BtBr": [["Bt", "Br", "alpha"], ["Bt", "Br"]], | ||
"Stokes": [["Bi", "Bq", "Bu"]], | ||
"Bp3": [["B", "pB", "pBp", "alpha"], ["B", "pB", "pBp"]], | ||
"Bthp": [["B", "theta", "p"]], | ||
"npol": [["angle_1", "angle_2", "angle_3"]], | ||
"fourpol": [["angle_1", "angle_2", "angle_3", "angle_4"]]} | ||
import astropy.units as u | ||
|
||
VALID_KINDS = {"mzp": [["Bm", "Bz", "Bp", "alpha"], ["Bm", "Bz", "Bp"]], | ||
"bpb": [["B", "pB", "alpha"], ["B", "pB"]], | ||
"btbr": [["Bt", "Br", "alpha"], ["Bt", "Br"]], | ||
"stokes": [["Bi", "Bq", "Bu"], ["Bi", "Bq", "Bu", "alpha"]], | ||
"bp3": [["B", "pB", "pBp", "alpha"], ["B", "pB", "pBp"]], | ||
"bthp": [["B", "theta", "p"]], | ||
"fourpol": [["B0", "B90", "B45", "B135"]], # fourpol comes before npol to force it instead of npol | ||
"npol": [["B*"]], # star indicates angle in degrees, as many as desired are supported | ||
} | ||
|
||
# offset angles come from https://www.sciencedirect.com/science/article/pii/S0019103515003620?via%3Dihub | ||
STEREOA_OFFSET_ANGLE = 45.8 * u.degree | ||
STEREOB_OFFSET_ANGLE = -18 * u.degree |
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
Oops, something went wrong.