wxee icon indicating copy to clipboard operation
wxee copied to clipboard

More example notebooks

Open aazuspan opened this issue 3 years ago • 2 comments

To do

  • [ ] Climatological means of net primary productivity
  • [ ] Sentinel-2 / Landsat example
  • [ ] Integration with geemap
  • [ ] Temporal smoothing (#31)

Complete

Any suggestions or contributions from wxee users are welcome! :)

aazuspan avatar Sep 04 '21 07:09 aazuspan

Hi, thanks for developing the wxee package. I was trying to repeat this example and couldn't do it in Google Colab. But looking a little more I was able to do it, maybe it will be useful for users who use wxee in Google Colab.

# Install
! pip install wxee hvplot
#! pip install holoviews
import ee
import wxee
import hvplot.xarray

ee.Authenticate()
ee.Initialize()
gridmet = ee.ImageCollection("IDAHO_EPSCOR/GRIDMET").filterDate('2021-06-15', '2021-07-05')
x = gridmet.wx.to_xarray(scale=20_000, crs="EPSG:5070")
# Show plot
import holoviews as hv
hv.extension('bokeh')

x.tmmx.hvplot(
    groupby='time',
    width=750,height=400,
    widget_type='scrubber',widget_location='bottom',
    cmap='RdBu_r'
)

ErikSeras avatar Sep 16 '21 12:09 ErikSeras

Hi @ErikSeras! I was hesitating to add that to the examples since it requires installing hvplot and is more related to xarray than wxee, but I probably should in case anyone else wants to re-create it. I'll just have to decide whether to add it to an existing notebook or make a new one dedicated to visualizing datasets... Thanks for the feedback! :)

aazuspan avatar Sep 17 '21 00:09 aazuspan