-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
increase min sunpy #63
base: main
Are you sure you want to change the base?
Conversation
3b12579
to
d4d8d35
Compare
1ba30c9
to
d28706f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to add this to sunpy instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nabobalis
I think we need to be deprecating stuff, I made the first version 1.0.0 for a reason, I think stability is important here.
I will let @jgieseler and @STBadman chime in on things like load_adapt
and fix_hmi_meta
specifically, but I would like a review from at least one of them before we merge.
6af00f1
to
bfacbe8
Compare
1025051
to
e174672
Compare
@@ -42,7 +42,6 @@ def __init__(self, br, nr, rss): | |||
sunkit_magex.pfss.utils.is_full_sun_synoptic_map(br, error=True) | |||
|
|||
self._map_in = copy.deepcopy(br) | |||
self.dtime = self.map.date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we need this but it should be reference_date
if we do.
I need to patch sunpy 6.0.0 first and then this should pass. |
It is finally passing again with the fix from upstream. |
Sorry for the delay, I'm buried in project work atm. 😬 I haven't ever used But I'm a bit confused regarding |
Oh in that case, I was very wrong and we should fix that in the map source. The reason I said that was it was in the notes:
But clearly I didn't check. |
Yes, I saw that comment as well and was confused. That's why I was wondering if I do the loading in a wrong way. |
Oh I am confused, sunpy doesn't change the meta anymore. If you access the attributes of the map, those should be correct now. I think .units? |
Hm, I don't know. But I just checked and run some old code that uses Missing metadata for solar radius: assuming the standard radius of the photosphere. [sunpy.map.mapbase]
2024-09-17 18:19:50 - sunpy - INFO: Missing metadata for solar radius: assuming the standard radius of the photosphere.
WARNING: SunpyMetadataWarning: Missing metadata for observer: assuming Earth-based observer.
For frame 'heliographic_stonyhurst' the following metadata is missing: hgln_obs,hglt_obs,dsun_obs
For frame 'heliographic_carrington' the following metadata is missing: crlt_obs,dsun_obs,crln_obs
[sunpy.map.mapbase]
2024-09-17 18:19:50 - sunpy - WARNING: SunpyMetadataWarning: Missing metadata for observer: assuming Earth-based observer.
For frame 'heliographic_stonyhurst' the following metadata is missing: hgln_obs,hglt_obs,dsun_obs
For frame 'heliographic_carrington' the following metadata is missing: crlt_obs,dsun_obs,crln_obs |
Ah I see, yeah but we should not be fixing these metadata ourselves but letting sunpy emit them. These are legit issues with the FITS files and having some special helper function for it is not something we should be doing in sunkit-magex. |
This supersedes #48
This turned into a large PR. I could split it out but i'm lazy.