Make GOES event location variable names more explicit: lon/lat
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start in sunpy/instr/goes at get_goes_event_list and inspect how the event_coord1 and event_coord2 values are exposed. Search the repository for callers, tests, and references to goes_location to identify the affected interface. Done means the returned names distinguish longitude from latitude and the relevant uses and tests reflect the change.
Written by the indexing model from the issue text.
Description
I've just done a bunch of digging around and determined that when using get_goes_event_list, the first array coordinate is longitude and the second is latitude. This is the same as what's returned when using IDL solarsoft rd_gev (which you can drill down several levels to find gbo_struct [code], where a comment defines these two location values). This is the opposite of what you see in the GOES event lists on the NOAA web interfaces (e.g., here) where location is reported as latitude, longitude.
I noticed this when looking at several years of flare event data and checking the minmax on the two locations. The first location ranges from [-90, +90] and the second (in the timeframe I was looking) from [-32, +56]. I had serious doubts that the GOES event list had anything reported from the poles.
So my suggested change is to make variable names more explicit so people in the future don't make mistakes, or have uncertainty if they're new to solar physics, or have to go through the exercise I just did. In sunpy/instr/goes there is a function called get_goes_event_list. In there, it defines location just as it is in IDL solarsoft:
'goes_location': (r['event_coord1'], r['event_coord2'])
I suggest this be changed to goes_longitude and goes_latitude
I'm happy to make this change (or a similar one based on feedback) in a PR but I'm not sure what other code it may break.
- Dominant language
- Python
- Stars
- 15
- Forks
- 20
- Avg merge
- 9h 48m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sunpy/sunkit-instruments
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sunpy/sunkit-instruments#209 ·
-
Feature Request
Difficulty 5/5 Over a week Newbie friendliness 35/100
sunpy/sunkit-instruments#217 ·
-
Feature Request
Difficulty 5/5 Over a week Newbie friendliness 25/100
sunpy/sunkit-instruments#154 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
sunpy/sunkit-instruments#132 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
sunpy/sunkit-instruments#129 · 3 comments ·
All issues in sunpy/sunkit-instruments
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100