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

Expand the vectorisation lesson to "xarray thinking" #56

Open
DamienIrving opened this issue Mar 9, 2022 · 1 comment
Open

Expand the vectorisation lesson to "xarray thinking" #56

DamienIrving opened this issue Mar 9, 2022 · 1 comment

Comments

@DamienIrving
Copy link
Collaborator

At the moment the vectorisation lesson is very short and simply introduces the idea of not looping over arrays in Python.

It would be good to extend that lesson to talk more broadly about how to think about array operations using xarray. The following tutorial from @dcherian talks about working in index versus label space, and how to use methods like reduce and map to apply functions to arrays: https://github.com/ProjectPythiaTutorials/thinking-with-xarray_2022_03_09

In terms of the data analysis example in these PyAOS lessons, the concepts introduced in an extended xarray thinking lesson could be used to plot the seasonal climatology (i.e. four panels in one plot), custom seasons (e.g. 'NDJFMA', 'MJJASO'), apply spatial smoothing, etc.

@DamienIrving
Copy link
Collaborator Author

Here's the lesson recording: https://www.youtube.com/watch?v=TSw3GF_d2y8

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

1 participant