Skip to content

Commit

Permalink
updated comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
MSKirk committed Jan 17, 2025
1 parent 02d7b0d commit 793618f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suncet_processing_pipeline/make_level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def __cosmic_ray_removal(self, input_map):
corrected_values = cosmic_ray_corrected_data[row_indices, col_indices]
index_1d_ravel = np.ravel_multi_index((row_indices, col_indices), input_map.data.shape)

# Set cosmic ray output file (1d location, removed spike value, interpolated spike value)
self.cosmic_rays = np.column_stack((index_1d_ravel, removed_values, corrected_values))
else:
cosmic_ray_corrected_data = input_map.data.copy()
Expand All @@ -205,6 +206,7 @@ def __coarse_rotate(self, data, telemetry):
# Determining the number of 90 deg rotations to keep solar north approximately on the top of the matrix
k = np.round(angle_deg / 90)

# Update metadata dictionary
self.metadata.coord_sys_rotation = k * 90.
self.metadata.wcs_rot_pc11, self.metadata.wcs_rot_pc12, self.metadata.wcs_rot_pc21, self.metadata.wcs_rot_pc22 = \
(utilities.CROTA_2_WCSrotation_matrix(k * 90.))
Expand Down

0 comments on commit 793618f

Please sign in to comment.