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

Missing coordinates in select_data() output for use with psyplot #31

Open
clairemerker opened this issue Nov 8, 2022 · 2 comments
Open
Assignees

Comments

@clairemerker
Copy link
Collaborator

Coordinates clon_bnds and clat_bnds get lost in the xarray.DataArray stored in the dictionary output of select_data(). Those coordinates are needed if the xarray.DataArray should be converted to an xarray.Dataset and then used with psyplot.
-> find a way to keep those coordinates.

@clairemerker clairemerker self-assigned this Nov 8, 2022
@clairemerker
Copy link
Collaborator Author

One solution would be to add the coordinates manually to the data array... Not very elegant...
da = da.assign_coords(clon_bnds=(["ncells", "vertices"],ds.clon_bnds.values))

@victoria-cherkas
Copy link
Collaborator

Should we try to add this into #19 ?

leuty pushed a commit to leuty/iconarray that referenced this issue May 16, 2023
Add histograms:
- Additional function for histograms in plot.py
- Additional entry point for histograms in cli.py
- Separated masking from aggregation as we want the data unaggregated for the binning into histograms
- Tests for histogram plot and results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants