save raw flux in fits file and display
fix rebase display on main fix rebase display on main
This commit is contained in:
@@ -274,7 +274,7 @@ def main(target=None, proposal_id=None, infiles=None, output_dir="./data", crop=
|
|||||||
flux_data=np.array([flux_data, flux_error, flux_mask]),
|
flux_data=np.array([flux_data, flux_error, flux_mask]),
|
||||||
flux_head=flux_head,
|
flux_head=flux_head,
|
||||||
)
|
)
|
||||||
outfiles.append("/".join([data_folder, Stokes_hdul["I_STOKES"].header["FILENAME"] + ".fits"]))
|
outfiles.append("/".join([data_folder, Stokes_hdul[0].header["FILENAME"] + ".fits"]))
|
||||||
|
|
||||||
# Step 5:
|
# Step 5:
|
||||||
# crop to desired region of interest (roi)
|
# crop to desired region of interest (roi)
|
||||||
|
|||||||
@@ -2951,7 +2951,7 @@ class pol_map(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def wcs(self):
|
def wcs(self):
|
||||||
return WCS(self.Stokes["I_STOKES"].header).celestial.deepcopy()
|
return WCS(self.Stokes[0].header).celestial.deepcopy()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def Flux(self):
|
def Flux(self):
|
||||||
@@ -3098,7 +3098,7 @@ class pol_map(object):
|
|||||||
back_length=0.0,
|
back_length=0.0,
|
||||||
head_length=10.0,
|
head_length=10.0,
|
||||||
head_width=10.0,
|
head_width=10.0,
|
||||||
angle=-self.Stokes["I_STOKES"].header["orientat"],
|
angle=-self.Stokes[0].header["orientat"],
|
||||||
color="white",
|
color="white",
|
||||||
text_props={"ec": None, "fc": "w", "alpha": 1, "lw": 0.4},
|
text_props={"ec": None, "fc": "w", "alpha": 1, "lw": 0.4},
|
||||||
arrow_props={"ec": None, "fc": "w", "alpha": 1, "lw": 1},
|
arrow_props={"ec": None, "fc": "w", "alpha": 1, "lw": 1},
|
||||||
|
|||||||
Reference in New Issue
Block a user