xarray icon indicating copy to clipboard operation
xarray copied to clipboard

Dedicated documentation on Alignment?

Open TomNicholas opened this issue 1 year ago • 3 comments

What is your issue?

I'm writing more documentation for DataTree, and was looking for an in-depth explanation of what Alignment actually is so I can refer to it, but I can't really find one?

The concept of alignment is referred to in multiple places, e.g.

But there doesn't appear to be a dedicated section on Alignment anywhere in the narrative docs (or even on the xarray tutorial site). I can't find any explanation of what it means for two Datasets not to align, for example.

This seems like a very fundamental concept to not have dedicated documentation with examples. Maybe I've just missed it?

cc @max-sixty @dcherian @shoyer @flamingbear

TomNicholas avatar Sep 15 '24 16:09 TomNicholas

Yeah its not great. I wrote some tutorial material here: https://tutorial.xarray.dev/fundamentals/02.3_aligning_data_objects.html

dcherian avatar Sep 16 '24 16:09 dcherian

I wrote some tutorial material here:

I was looking for that one! The content on that really fills a much-needed gap (and is really good). I think a dedicated page that explains what Broadcasting and Alignment are is what we are missing from the main docs.

TomNicholas avatar Sep 16 '24 16:09 TomNicholas

In general I find https://tutorial.xarray.dev/ really well done, it would definitely deserve more exposure / discoverability / integration with the main docs!

benbovy avatar Sep 27 '24 12:09 benbovy