forked from i4Ds/STIX-GSW
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'default' into experimental
* default: Bugfix release stx_read_fits : uncommented call to mrdfits to prevent compilation issue when getting version number preparing a new release Fixed bug in selection of energy indices of pixel data matrix (i4Ds#185) stx_subc_transmission: Improved accuracy of message displayed if simple_transm keyword is set. # Conflicts: # stix/idl/io/stx_read_fits.pro # stix/idl/processing/spectrogram/stx_fsw_sd_spectrogram2ospex.pro
- Loading branch information
Showing
5 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.4.0 | ||
v0.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,39 +44,46 @@ | |
; | ||
; | ||
; HISTORY: September 2022, Massa P., created | ||
; October 2023, Massa P., fixed bug in the selection of the energy bin indices | ||
; | ||
; CONTACT: | ||
; [email protected] | ||
;- | ||
|
||
pro stx_plot_selected_time_range, tim_axis, energy_ind, time_ind, counts, live_time_bins, subc_index, sumcase, energy_range, $ | ||
time_range, counts_bkg=counts_bkg, live_time_bkg=live_time_bkg | ||
time_range, counts_bkg=counts_bkg, live_time_bkg=live_time_bkg, energy_ind_bkg=energy_ind_bkg | ||
|
||
; re-initialise UTBASE to handle UTC times properly when calling utplot | ||
common utcommon | ||
utbase = 0 | ||
|
||
;;********** Exclude first and last energy bin | ||
; re-initialise UTBASE to handle UTC times properly when calling utplot | ||
common utcommon | ||
utbase = 0 | ||
|
||
lightcurve = counts[1:30,*,*,*] | ||
|
||
if keyword_set(counts_bkg) then bkg_level = counts_bkg[1:30,*,*] | ||
|
||
;;********** Sum in energy | ||
;;********** Create lightcurve | ||
|
||
if n_elements(energy_ind) eq 1 then begin | ||
|
||
lightcurve = reform(lightcurve[energy_ind,*,*,*]) | ||
if keyword_set(counts_bkg) then bkg_level = reform(bkg_level[energy_ind,*,*]) | ||
|
||
|
||
endif else begin | ||
|
||
lightcurve = total(lightcurve[energy_ind,*,*,*],1) | ||
if keyword_set(counts_bkg) then bkg_level = total(bkg_level[energy_ind,*,*],1) | ||
lightcurve = reform(counts[energy_ind,*,*,*]) | ||
|
||
endif else begin | ||
|
||
lightcurve = total(counts[energy_ind,*,*,*],1) | ||
|
||
endelse | ||
|
||
if keyword_set(counts_bkg) then begin | ||
|
||
if n_elements(energy_ind_bkg) eq 1 then begin | ||
|
||
bkg_level = reform(counts_bkg[energy_ind_bkg,*,*]) | ||
|
||
endif else begin | ||
|
||
bkg_level = total(counts_bkg[energy_ind_bkg,*,*],1) | ||
|
||
endelse | ||
|
||
endif | ||
|
||
;;********** Sum counts of selected imaging detectors | ||
|
||
;; Compute incident area | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters