Skip to content
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

✨ XarrayCanvasIterDataPipe for creating blank datashader canvas #34

Merged
merged 5 commits into from
Aug 12, 2022

Commits on Aug 12, 2022

  1. ➕ Add datashader and spatialpandas

    Quickly and accurately render even the largest data, and pandas extension arrays for spatial/geometric operations!
    
    Unfortunately, had to pin the maximum Python version to 3.11 because scipy (the version with Python 3.10 wheels) sets a hard upper pin for Python <3.12.
    weiji14 committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    d88fd83 View commit details
    Browse the repository at this point in the history
  2. ✨ XarrayCanvasIterDataPipe for creating blank datashader canvas

    An iterable-style DataPipe for creating a blank canvas from raster images! The datashader.Canvas is created based on the input xarray object's spatial extent and coordinates, with the metadata obtained using rioxarray. Included a doctest for getting a datashader.Canvas from an xarray.DataArray. Added a new section in the API docs and intersphinx mappings for datashader.
    weiji14 committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    12be496 View commit details
    Browse the repository at this point in the history
  3. 💚 Install datashader and spatialpandas in CI

    Include the 'spatial' extras dependencies in the Continuous Integration tests, and install datashader for Readthedocs. Also mentioned installing the 'spatial' extras in CONTRIBUTING.md.
    weiji14 committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    f0880fa View commit details
    Browse the repository at this point in the history
  4. ✅ Unit test to create datashader.Canvas from xr.Dataset

    Ensure that xarray.Dataset objects can be turned into a datashader.Canvas too! Clarified that the `.rio.x_dim` and `.rio.y_dim` attributes are required, and made some minor stylistic changes to the docstring and code in datashader.py.
    weiji14 committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    ef1277d View commit details
    Browse the repository at this point in the history
  5. 🚨 Remove type hint for __iter__ in XarrayCanvas class

    Fixes `AttributeError: 'NoneType' object has no attribute 'Canvas'` when the optional datashader dependency is not installed.
    weiji14 committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    9df6d14 View commit details
    Browse the repository at this point in the history