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

Used named indexes to select bands #8

Open
snowman2 opened this issue Oct 30, 2021 · 2 comments
Open

Used named indexes to select bands #8

snowman2 opened this issue Oct 30, 2021 · 2 comments

Comments

@snowman2
Copy link

I was going through: https://www.earthdatascience.org/courses/use-data-open-source-python/multispectral-remote-sensing/intro-naip/

Doing:

xds.isel(band=0)

Instead of:

xds[0]

Can help make the code more clear.

@lwasser
Copy link

lwasser commented Nov 9, 2021

@nkorinek this is definitely a good improvement as it's more explicit about calling various "slices" of data from the xarray object.

@nkorinek
Copy link
Member

nkorinek commented Nov 9, 2021

Can definitely implement this easily!

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

3 participants