ProjectPythia / cookbook-gallery

Root site for the ProjectPythiaCookbooks GitHub Pages
https://cookbooks.projectpythia.org
MIT License
0 stars 13 forks source link

Update cookbook_gallery.txt #166

Closed jukent closed 1 year ago

jukent commented 1 year ago

Closes #165 Adds interactive-sentinel-2-cookbook

https://github.com/ProjectPythia/interactive-sentinel-2-cookbook https://projectpythia.org/interactive-sentinel-2-cookbook/README.html

github-actions[bot] commented 1 year ago

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below. 🔍 Git commit SHA: cd82d468eb5104144413833ba133922c1d456713 ✅ Deployment Preview URL: https://ProjectPythia.github.io/cookbook-gallery/_preview/166

clyne commented 1 year ago

@r-ford when I execute this cookbook, both through binder and locally, there are a couple of cells that generate warnings:

The call to da = da.compute() spits out:

/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/rasterio/warp.py:344: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix will be returned.
  _reproject(
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/rasterio/warp.py:344: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix will be returned.
  _reproject(
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))
/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/dask/core.py:129: RuntimeWarning: invalid value encountered in divide
  return func(*(_execute_task(a, cache) for a in args))

Also, the definition of the function plot_band generates:

/Users/clyne/mambaforge/envs/is2-cookbook-dev/lib/python3.11/site-packages/holoviews/plotting/bokeh/plot.py:987: UserWarning: found multiple competing values for 'toolbar.active_drag' property; using the latest value
  layout_plot = gridplot(

Are you seeing these messages? Should our CI be catching these? Can they be fixed?

clyne commented 1 year ago

@r-ford, please forgive my weak GitHub kung fu, but what is the best practice for providing comments regarding the code, since the code is on a separate repo from this PR? Thanks!!

r-ford commented 1 year ago

@clyne

I'm not sure if there is a better way, but I just opened an issue and PR on the cookbook repo.

I'm not familiar with the warnings, but maybe @pritamd47 knows. I can take a closer look later today.