Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,4 @@ stixcore/data/test/idb/v2.26.38/idb.sqlite
.python-version
sunpy/_version.py
stixcore/_version.py
.claude/*
12 changes: 12 additions & 0 deletions stixcore/data/stixcore.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ soop_files_download = ./stixcore/data/soop
ecc_path = /opt/stix_det_cal/bin/
[Processing]
flarelist_sdc_min_count = 1000
# background-data-file lookup (find_background_file_for_time)
flarelist_bkg_window_past_days = 21
flarelist_bkg_window_future_days = 21
flarelist_bkg_min_duration_s = 500
# require the background file to share the flare's on-board ELUT configuration (ELUTManager lookup)
flarelist_bkg_require_same_elut = True
# optional stricter selection (default OFF - all three move common cases, not just edge cases):
# purpose preference: prefer purpose=="Background" unless a subject-only match is this many days closer
# (0.0 disables); exclude "elevated" backgrounds; drop requests whose comment references a flare id
flarelist_bkg_purpose_penalty_days = 0.0
flarelist_bkg_exclude_elevated = False
flarelist_bkg_exclude_flare_comment = True
4 changes: 2 additions & 2 deletions stixcore/data/test/publish/rid_lut.csv
Git LFS file not shown
14 changes: 14 additions & 0 deletions stixcore/ephemeris/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,20 @@ def get_sun_disc_size(self, *, date):

return rsun_arc

def get_earth_solo_time_shift(self, *, date):
"""gets Time(Sun to Earth) - Time(Sun to S/C)

Returns
-------
`astropy.units.Quantity`
Time difference between Sun to Earth and Sun to S/C in seconds
"""
et = spiceypy.scs2e(SOLAR_ORBITER_ID, str(date))
solo_sun_hg, sun_solo_lt = spiceypy.spkezr("SOLO", et, "SUN_EARTH_CEQU", "None", "Sun")
sun_earth_hee, sun_earth_lt = spiceypy.spkezr("Earth", et, "SOLO_HEE", "None", "Sun")

return (sun_earth_lt - sun_solo_lt) * u.s

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is in the fits headers not - also is this from sun center or surface?


def get_position(self, *, date, frame):
"""
Get the position of SolarOrbiter at the given date in the given coordinate frame.
Expand Down
Loading
Loading