GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Custom index tutorial by e-marshall · Pull Request #295 · xarray-contrib/xarray-tutorial

Conversation

@e-marshall

@e-marshall e-marshall commented Aug 19, 2024

Copy link
Copy Markdown
Contributor

This PR would add a notebook demonstrating how to build a custom index to the tutorial. It is loosely based on the how to create a custom index page (which was very helpful in writing this) but is aimed to be a bit more explanatory.
it has the following structure:

  • a bit of background and introduce the motivation for using custom indexes
  • build a custom index for a simplified case of a 1d dataset where we'd like an index to handle a coordinate transform
    Steps to build index:
  • build skeleton index with just from_variables()
  • add create_variables(), sel() and transform
  • add equals(), join() and reindex_like() to support alignment

If folks think this would be a worthwhile addition to the tutorial, I'd love to keep working on this and to incorporate any feedback and suggestions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

scottyhq reacted with rocket emoji
All reactions
  • 🚀 1 reaction
e-marshall added 2 commits August 19, 2024 09:56
@e-marshall
custom index nb + img
09fc1fe
@e-marshall
Merge branch 'xarray-contrib:main' into custom_index
902b78d
@review-notebook-app

review-notebook-app Bot commented Aug 19, 2024

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@e-marshall e-marshall changed the title Custom index Custom index tutorial Aug 19, 2024
@pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hooks
131d715
for more information, see https://pre-commit.ci
@github-actions

github-actions Bot commented Aug 19, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🎊 PR Preview 131d715 has been successfully built and deployed to https://xarray-contrib-xarray-tutorial-preview-pr-295.surge.sh

🕐 Build time: 0.013s

🤖 By surge-preview

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@scottyhq

scottyhq commented Sep 10, 2024

Copy link
Copy Markdown
Contributor

If folks think this would be a worthwhile addition to the tutorial, I'd love to keep working on this and to incorporate any feedback and suggestions

Absolutely this would be a great addition @e-marshall!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@scottyhq

scottyhq commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

Just noting that a lot of development on Xarray indexing has happened over the last year in particular this new webpage of examples is coming together https://github.com/xarray-contrib/xarray-indexes !

Eventually we should review content to make sure not too much is duplicated across Xarray docs, Xarray tutorial, and external resources like the one above, but that they also link to eachother.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dcherian

dcherian commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

I think that one should be merged in with some kind of gallery that should also include the ecosystem book in this repo. I created a new one so we could iterate quickly

scottyhq reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@e-marshall @scottyhq @dcherian
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.