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

Allow passing in Red, Green, Blue grids into grdimage #370

Closed
wants to merge 2 commits into from

Commits on Nov 9, 2019

  1. Allow passing in Red, Green, Blue grids into grdimage

    Using the sequence_space converter to allow for multiple grid inputs into `grdimage`. Useful when users want to make an RGB image plot e.g. from Landsat images (Bands 4,3,2).
    weiji14 committed Nov 9, 2019
    Configuration menu
    Copy the full SHA
    424e497 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2019

  1. Enable passing in a list of RGB xarray.DataArray grids into grdimage

    Extends `grdimage` to accept a list of individual red, green and blue xarray.DataArrays for plotting. Had to revert using the 'sequence_space' decorator as it would not work nicely for multiple grids... Implementation uses the contextlib.ExitStack method to create multiple virtual grid files and enter multiple contexts (similar to 3448972). Also added one test case with dummy data, but could do with more to capture edge cases.
    weiji14 committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    201664b View commit details
    Browse the repository at this point in the history