File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 9
9
from sunpy .coordinates import HeliographicStonyhurst , Helioprojective
10
10
11
11
from stixpy .coordinates .frames import STIXImaging
12
- from stixpy .coordinates .transforms import _get_aux_data , get_hpc_info
12
+ from stixpy .coordinates .transforms import _get_ephemeris_data , get_hpc_info
13
13
14
14
15
15
@pytest .mark .skip (reason = "Test data maybe incorrect" )
@@ -70,15 +70,15 @@ def test_stx_to_hpc_obstime_end():
70
70
@pytest .mark .remote_data
71
71
def test_get_aux_data ():
72
72
with pytest .raises (ValueError , match = "No STIX pointing data found for time range" ):
73
- _get_aux_data (Time ("2015-06-06" )) # Before the mission started
73
+ _get_ephemeris_data (Time ("2015-06-06" )) # Before the mission started
74
74
75
- aux_data = _get_aux_data (Time ("2022-08-28T16:02:00" ))
75
+ aux_data = _get_ephemeris_data (Time ("2022-08-28T16:02:00" ))
76
76
assert len (aux_data ) == 1341
77
77
78
- aux_data = _get_aux_data (Time ("2022-08-28T16:02:00" ), end_time = Time ("2022-08-28T16:04:00" ))
78
+ aux_data = _get_ephemeris_data (Time ("2022-08-28T16:02:00" ), end_time = Time ("2022-08-28T16:04:00" ))
79
79
assert len (aux_data ) == 1341
80
80
81
- aux_data = _get_aux_data (Time ("2022-08-28T23:58:00" ), end_time = Time ("2022-08-29T00:02:00" ))
81
+ aux_data = _get_ephemeris_data (Time ("2022-08-28T23:58:00" ), end_time = Time ("2022-08-29T00:02:00" ))
82
82
assert len (aux_data ) == 2691
83
83
84
84
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def get_hpc_info(times, end_time=None):
68
68
-------
69
69
70
70
"""
71
- aux = _get_aux_data (times .min (), times .max ())
71
+ aux = _get_ephemeris_data (times .min (), times .max ())
72
72
73
73
indices = np .argwhere ((aux ["time" ] >= times .min ()) & (aux ["time" ] <= times .max ()))
74
74
if end_time is not None :
@@ -153,7 +153,7 @@ def get_hpc_info(times, end_time=None):
153
153
154
154
155
155
@lru_cache
156
- def _get_aux_data (start_time , end_time = None ):
156
+ def _get_ephemeris_data (start_time , end_time = None ):
157
157
r"""
158
158
Search, download and read L2 pointing data.
159
159
@@ -173,9 +173,9 @@ def _get_aux_data(start_time, end_time=None):
173
173
query = Fido .search (
174
174
a .Time (start_time , end_time ),
175
175
a .Instrument .stix ,
176
- a .Level .l2 ,
177
- a .stix .DataType .aux ,
178
- a .stix .DataProduct .aux_ephemeris ,
176
+ a .Level .anc ,
177
+ a .stix .DataType .asp ,
178
+ a .stix .DataProduct .asp_ephemeris ,
179
179
)
180
180
if len (query ["stix" ]) == 0 :
181
181
raise ValueError (f"No STIX pointing data found for time range { start_time } to { end_time } ." )
You can’t perform that action at this time.
0 commit comments