Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a few functionalities to stx_science_data_lightcurve #99

Merged
merged 8 commits into from
Aug 4, 2022
Merged

Added a few functionalities to stx_science_data_lightcurve #99

merged 8 commits into from
Aug 4, 2022

Conversation

afbattaglia
Copy link
Collaborator

Hi,

As discussed with @grazwegian, I have added the following functionalities to the stx_science_data_lightcurve procedure:

  • /time_shift keyword: the user can manually define the light travel time to apply. Default: the value obtained from the FITS header
  • /rate keyword: by default the units of the lightcurves are the Flux units. Now the user can get the time profiles in counts/s
  • now the procedure automatically recognize whether is a spec file or a cpd file. Therefore, the keyword /is_pixel_data has been deleted
  • I have also added the /shift_duration keyword since it was missing. Indeed for the 2021 full-resolution cpd files we should correct for it (at least for L1A). Right?

Best,
Andrea

@@ -23,16 +23,21 @@
;
; time_min : in, type="float", default="20."
; Minimum time size in seconds
;
; time_shift : in, type="string", default: taken from the FITS header
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually I would have time_shift as a float.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, apologize for the mistake :)

@@ -44,24 +49,44 @@
;
; :history:
; 30-Jun-2022 - ECMD (Graz), initial release
; 15-Jul-2022 - Andrea Francesco Battaglia (FHNW)
; Added a few functionalities:
; -> automatic recognition of SPEC and CPD files: /is_pixel_data is no more needed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
; -> automatic recognition of SPEC and CPD files: /is_pixel_data is no more needed
; -> automatic recognition of SPEC and CPD files: /is_pixel_data is no longer needed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight change of wording

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines 88 to 90
endif else begin
message, 'ERROR: the FILENAME field in the primary header should contain either cpd or spec'
endelse
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this won't work with the L1A files which have a different naming scheme? In the short term it would be good to be able to use them too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will create a new pull request allowing the alpha version files too.

@samaloney samaloney merged commit 095d229 into i4Ds:master Aug 4, 2022
grazwegian added a commit to grazwegian/STIX-GSW that referenced this pull request Aug 8, 2022
…dates

* commit 'bc3ecfceee3785d0b07261df4f82b1a1a4e468f0':
  Fix error in sci energy channel config file (i4Ds#96)
  Added automatic check for energy shift (i4Ds#101)
  Added a few functionalities to stx_science_data_lightcurve (i4Ds#99)

# Conflicts:
#	stix/idl/processing/spectrogram/stx_convert_pixel_data.pro
#	stix/idl/processing/spectrogram/stx_convert_spectrogram.pro
grazwegian added a commit to grazwegian/STIX-GSW that referenced this pull request Aug 8, 2022
* automatic-fitting:
  Pass through additional useful keywords to the spectrum and srm FITS files
  Fix error in sci energy channel config file (i4Ds#96)
  Added automatic check for energy shift (i4Ds#101)
  Added a few functionalities to stx_science_data_lightcurve (i4Ds#99)
  stx_read_elut - fixed issue when filename keyword is not used

# Conflicts:
#	stix/idl/processing/spectrogram/stx_convert_pixel_data.pro
#	stix/idl/processing/spectrogram/stx_convert_science_data2ospex.pro
#	stix/idl/processing/spectrogram/stx_convert_spectrogram.pro
#	stix/idl/processing/spectrogram/stx_fsw_sd_spectrogram2ospex.pro
#	stix/idl/processing/spectrogram/stx_write_ospex_fits.pro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants