-
-
Notifications
You must be signed in to change notification settings - Fork 4
increase min sunpy #63
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
Conversation
3b12579
to
d4d8d35
Compare
1ba30c9
to
d28706f
Compare
hmi_map.meta.update(_earth_obs_coord_meta(hmi_map.meta['date-obs'])) | ||
|
||
|
||
def load_adapt(adapt_path): |
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.
We dont have the same loader in sunpy but we can now load them directly. But only the first one.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
Added.
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 personally use load_adapt
almost every day i do research with sunkit-magex and send people examples which use it. It's very useful to be able to in one line get all the realizations loaded into a Map and then decide what to do next (choose one, average them all etc.), so i'd advocate that this function would be useful to have somewhere. I get that handling specific magnetograms doesn't make sense to be the job of sunkit-magex
- could it be possible to house it in sunpy.map ? Is the direct use of astropy.io.fits
problematic?
In any case, I'm good with this being deprecated for now and having this discussion elsewhere. Is it bad practise to have a long message here. if not, I suggest :
message = "Use sunpy.map.Map to load the first realization (see <link to examples/utils/reproject_car_to_cea.py>) or see https://docs.sunpy.org/en/latest/generated/gallery/saving_and_loading_data/load_adapt_fits_into_map.html on how to load all realizations"
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.
Maybe the example can be updated to have the load_funciton or maybe it could be in sunpy but for me it does not belong in magex.
6af00f1
to
bfacbe8
Compare
2d7c5db
to
1f03469
Compare
This comment was marked as outdated.
This comment was marked as outdated.
5eb8e40
to
9552abf
Compare
"scipy>=1.10.1", | ||
"streamtracer>=2.2.0", | ||
"sunpy[map]>=6.0.1,!=6.0.0", | ||
"matplotlib>=3.5.0", # Needed to solve the correct env for oldestdeps |
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 didn't know how else to handle it
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.
Almost everything looks good except the deprecation of FortranTracer looks to be broken - it's inheriting a child Class and as I understand it, this needs to be passed to .super()
Otherwise, I'm ok with load_adapt and fix_hmi_meta being deprecated and discussion of any gaps in capability moving to sunpy.
Thanks for all this work!
@@ -11,9 +11,8 @@ To enable this simply `install numba`_ and use `sunkit_magex.pfss` as normal. | |||
Streamline tracing | |||
================== | |||
|
|||
`sunkit_magex.pfss` has two streamline tracers: a pure python `sunkit_magex.pfss.tracing.PythonTracer` and a complied tracer `sunkit_magex.pfss.tracing.FortranTracer`. | |||
The compiled version is significantly faster, using the `streamtracer`_ package. | |||
`sunkit_magex.pfss` uses a complied tracer `sunkit_magex.pfss.tracing.PerformanceTracer` using the `streamtracer`_ package. |
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 think since we're not removing the pythontracer and there isn't a default behavior implemented anywhere yet we should still mention it here, like it was originally but just change FortranTracer to PerformanceTracer in the old line 14,
hmi_map.meta.update(_earth_obs_coord_meta(hmi_map.meta['date-obs'])) | ||
|
||
|
||
def load_adapt(adapt_path): |
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 personally use load_adapt
almost every day i do research with sunkit-magex and send people examples which use it. It's very useful to be able to in one line get all the realizations loaded into a Map and then decide what to do next (choose one, average them all etc.), so i'd advocate that this function would be useful to have somewhere. I get that handling specific magnetograms doesn't make sense to be the job of sunkit-magex
- could it be possible to house it in sunpy.map ? Is the direct use of astropy.io.fits
problematic?
In any case, I'm good with this being deprecated for now and having this discussion elsewhere. Is it bad practise to have a long message here. if not, I suggest :
message = "Use sunpy.map.Map to load the first realization (see <link to examples/utils/reproject_car_to_cea.py>) or see https://docs.sunpy.org/en/latest/generated/gallery/saving_and_loading_data/load_adapt_fits_into_map.html on how to load all realizations"
7a178f9
to
bd4b028
Compare
I think have addressed all of your points/questions @STBadman. |
pyproject.toml
Outdated
"sunpy[map]>=5.1", | ||
"scipy>=1.10.1", | ||
"streamtracer>=2.2.0", | ||
"git+https://github.com/nabobalis/sunpy.git@database", |
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.
This is me testing a commit to see if I can fix the database.
4eab7bf
to
8347d80
Compare
Which HMI files were causing these warnings? |
It might be 2021-04-17 13:04 (mrzqs210417t1304c2243_256.fits). At least I modified that file close to when writing my message here (and the April 17 event is quite often my default setting). |
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.
Thank you @nabobalis - I think it's in good shape!
Thanks everyone |
Thank you @nabobalis ! |
This supersedes #48
This turned into a large PR. I could split it out but i'm lazy.