Closed TomAugspurger closed 3 years ago
Sorry forgot to include a binder URL: https://binder.pangeo.io/v2/gh/TomAugspurger/pangeo-astro-examples/gateway
Hey thanks @TomAugspurger! Thats great!
Unfortunatly I won't be able to help on the usage questions...
Thanks very much for reviving this @TomAugspurger! I'm happy to help with this.
At the moment, I'm having issues getting the notebook to start. Binder seems to be able to create the image and pops me into a Jupyterlab session, but there's something strange going on with the actual notebook kernel. Executing any cell just hangs indefinitely.
Either way, I'll try to respond to the above points for now with hopefully more concrete answers once I can successfully run the notebook. I think nearly all of these issues are due to the fact that this notebook was developed quite some time ago with a different major release version of sunpy
and thus there are some rough edges now that we've released v2.0.1
__repr_html__
does some fancy stuff to give you a JS widget of the map in a couple different views. That this is slow for out-of-core data is not too surprising. I'll investigate this more.m.submap(blc,top_right=trc)
. Doing the submap operations in parallel sounds great!I will try to play around with this soon and offer some more concrete fixes. Thanks again!
Thanks! It's strange that you're having issues executing cells. I just got a new session and things seem fine.
Sometimes when this happens restarting the notebook kernel and then re-selecting the Python 3 kernel can fix it.
On Tue, Sep 1, 2020 at 10:39 AM Will Barnes notifications@github.com wrote:
Thanks very much for reviving this @TomAugspurger https://github.com/TomAugspurger! I'm happy to help with this.
At the moment, I'm having issues getting the notebook to start. Binder seems to be able to create the image and pops me into a Jupyterlab session, but there's something strange going on with the actual notebook kernel. Executing any cell just hangs indefinitely.
Either way, I'll try to respond to the above points for now with hopefully more concrete answers once I can successfully run the notebook. I think nearly all of these issues are due to the fact that this notebook was developed quite some time ago with a different major release version of sunpy and thus there are some rough edges now that we've released v2.0.1
- __repr_html__ https://github.com/sunpy/sunpy/blob/b39723b60145f35ba57923301a7acc4bf0d7333c/sunpy/map/mapbase.py#L260 does some fancy stuff to give you a JS widget of the map in a couple different views. That this is slow for out-of-core data is not too surprising. I'll investigate this more.
- Since v2.0, we've slightly changed the logic of cropping with coordinates. These off-by-one differences are not too surprising. I think this can just be solved by cropping in pixel coordinates rather than world coordinates.
- Another post-2.0 fix. This just means the submap call should be m.submap(blc,top_right=trc). Doing the submap operations in parallel sounds great!
I will try to play around with this soon and offer some more concrete fixes. Thanks again!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pangeo-data/pangeo-astro-examples/pull/4#issuecomment-684945722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKAOITZTOD2HDFF3S4FVV3SDUIRTANCNFSM4QQVNVXQ .
I updated this PR to just include the necessary updates for dask-gateway.
There are a few warnings and I had to pin astropy and sunpy to older versions. It'd be nice to get this into pangeo-gallery, but at least it's running again.
Ah I apparently don't have write access here. @rabernat or at @jhamman could you do the honors?
Thanks so much Tom!
Thanks very much for updating this!
I've updated the notebooks / binder env to work with our new setup.
@guillaumeeb or @wtbarnes are you able to help with some usage things?
_repr_html_()
ofsunpy.map.sources.sdo.AIAMap
invokes an expensive computation. Just a plainrepr
doesn't. At a guess, the handling of NaN / inf values is to blame but I haven't checked(by itself that doesn't trigger computation, but something like
if count_nan > 0
will.AIACube.__init__
. There's an assertion that the shapes of all the submaps match. I haven't looked at why, but they differLooking at
cubes[0]
the shapes after the submap areAs a side-note this
submap
operation seems to take a while for all the.maps
. I wonder if it could be done in parallel on this cluster?