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

map_transform_gwl handle multiple input temperature variables #12

Open
byersiiasa opened this issue Feb 29, 2024 · 0 comments
Open

map_transform_gwl handle multiple input temperature variables #12

byersiiasa opened this issue Feb 29, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@byersiiasa
Copy link
Member

Currently the function map_transform_gwl only handles 1 temperature variable.
Although more than 1 can be provided, this results in multiple gwl points, which breaks the function in the updated_data section at the line:

updated_data = updated_data.assign_coords(
            coords={"lon": updated_data.lon, "lat": updated_data.lat, "year": years}
        )

because the length of years is shorter than the number of gwls in the data.

Workaround is to loop the map_transform_gwl function for each variable. More sophisticated implementation to handle multiple temperature variables, e.g. percentiles of warming trajectories, would be desirable.

@byersiiasa byersiiasa added enhancement New feature or request help wanted Extra attention is needed labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant