xarray-common-syntax

    0

    0

    Nick Howes

    slice an xarray cube with x,y,Date dimension and convert to a matplotlib figure

    spacetemp = cube.isel(x=10, y=200, Date=slice(None,n_time))

    figure = spacetemp.

    import xarray as xr
    
    
    # slice an xarray cube with x,y,Date dimension and convert to an array
    spacetemp = cube\
      .isel(x=10, y=200, Date=slice(None,n_time))\
      .to_array()
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.