Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lightcurver/plotting/image_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def plot_image(image, wcs=None, save_path=None, colorbar=False, **imshow_kwargs)
else:
ax = plt.subplot()
norm = ImageNormalize(image,
interval=ZScaleInterval(contrast=0.1),
interval=ZScaleInterval(contrast=0.4),
stretch=AsinhStretch()
)
ax.imshow(image, cmap='gray', origin='lower', norm=norm, **imshow_kwargs)
Expand Down
2 changes: 2 additions & 0 deletions lightcurver/processes/cutout_making.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def extract_stamp(data, header, exptime, sky_coord, cutout_size, background_rms_
noisemap_electrons = ((exptime * background_rms_electron_per_second)**2 + np.abs(data_cutout_electrons))**0.5
# remove zeros if there are any ...
noisemap_electrons[noisemap_electrons < 1e-7] = 1e-7
data_cutout.data = data_cutout.data.astype(np.float32)
noisemap_electrons = noisemap_electrons.astype(np.float32)

return data_cutout.data, noisemap_electrons / exptime, wcs_header_string, np.array(original_center_position)

Expand Down
2 changes: 1 addition & 1 deletion lightcurver/processes/roi_file_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def fetch_and_adjust_zeropoints(combined_footprint_hash):
global_zp = zeropoints_data['adjusted_zeropoint'].median()

message = "The scatter in zeropoints before normalizing is lower than after normalizing? Not normal, investigate."
assert zp_scatter_normalized < zp_scatter_not_normalized, message
#assert zp_scatter_normalized < zp_scatter_not_normalized, message

return global_zp, zp_scatter_normalized

Expand Down