You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: suncet_instrument_simulator/config_files/config_default.ini
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -84,17 +84,17 @@ exposure_time_long = 15
84
84
# [seconds] This isn't actually part of SHDR but is necessary because the model has its own timestep that we aren't fully accounting for
85
85
model_timestep = 10
86
86
# the stack is then used to remove particle hits by, e.g., taking the median
87
-
num_short_exposures_to_stack = 10
87
+
num_short_exposures_to_stack = 9
88
88
# the stack is then used to remove particle hits by, e.g., taking the median]
89
-
num_long_exposures_to_stack = 3
89
+
num_long_exposures_to_stack = 4
90
90
# this value is centered around the middle row; e.g., a value of 101 would be ±50 rows around the central row
91
91
num_inner_rows_for_short_exposure = 540
92
92
# [solar radii] what circle to use of short exposures for the composite image
93
93
inner_fov_circle_radius = 1.33
94
94
# [arcsec/s] 0.6372 is 1sigma rms jitter from MinXSS-1 and CSIM
95
95
jitter = 0.6372
96
-
# [integer] how many bit shift places to get particle filtering (which uses a 24-bit sum) to fit back down into 16-bit; each bit shift place is a divide by 2
97
-
num_shift_bits_24_to_16 = 2
96
+
# [integer] how many bit shift places to get the onboard temporary processing buffer (32-bit) to fit back down into storage buffer (16-bit); each bit shift place is a divide by 2
stack=stack.astype(np.int32) # Note: onboard firmware actually uses a 24-bit buffer for the following sum but numpy only has options of 16 or 32. This is fine in most cases for simulation because even 24 bit is really, really big.
583
-
584
-
# Remove max value along the stack axis and sum the remaining values
585
-
max_removed=np.sort(stack, axis=-1)[:, :, :-1] # Sort and remove last (max) value
586
-
summed_data=np.sum(max_removed, axis=-1) # Sum the remaining values
579
+
stack=stack.astype(np.int32)
587
580
588
-
# Shift the data to the right by the number of bits specified in the config to get big numbers to still fit in 16 bits
onboard_processed_images*= (xbin*ybin) # Conserve energy. DN come from electrons. resample doesn't account for the fact that the total number of electrons (DN) recorded across the detector is the same regardless of how you bin them in software
673
663
674
-
# Flight firmware uses 24 bits when doing summing to avoid rollover that would otherwise be possible at 16 bits
new_map.meta['cdelt1'] =self.config.plate_scale.value*xbin# Note 1: this is only needed because sunpy (v4.0.1) resample updates dimensions but NOT plate scale
680
666
new_map.meta['cdelt2'] =self.config.plate_scale.value*ybin# Note 2: there is also risk here because a) the user must be responsible in the config file to ensure the image_dimensions and plate_scale are compatible, and b) the units they input for plate_scale must be the same as those already in the map
0 commit comments