We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd55941 + 5cf7011 commit 8c56ac2Copy full SHA for 8c56ac2
mica/archive/aca_l0.py
@@ -225,6 +225,14 @@ def get_aca_images(
225
ok = slot_data_raw["QUALITY"] == 0
226
slot_data = Table(slot_data_raw[ok])
227
228
+ # Unmask everything that can be unmasked
229
+ # Remove mask from columns where no values are masked. IMGRAW is excepted because
230
+ # the mask reflects the presence of 4x4 or 6x6 images, not entirely missing data
231
+ # per row.
232
+ for col in slot_data.itercols():
233
+ if not np.any(col.mask) and col.name != "IMGRAW":
234
+ slot_data[col.name] = col.data.data
235
+
236
# Add slot number if there are any rows (if statement not needed after
237
# https://github.com/astropy/astropy/pull/17102).
238
# if len(slot_data) > 0:
0 commit comments