NCAS-CMS / cf-python

A CF-compliant Earth Science data analysis library
http://ncas-cms.github.io/cf-python
MIT License
120 stars 19 forks source link

New recipe to outline, or dedicated method for, attaching orography #729

Open sadielbartholomew opened 6 months ago

sadielbartholomew commented 6 months ago

A fairly common operation for users of cf, and one we know we will need for TWINE-VISION project purposes, is to read in a dataset defining orography and attach it to some other field to define the orography context for the information encapsulated by the field.

As clarified by @davidhassell today, this can be achieved with a three-step process involving reading in the separate orography, converting it from a read-in field to a domain ancillary, and finally attaching it to the other field. (One minor complication is that the X and Y coordinates need to be identified so they are assigned in the right order during the conversion to the domain ancillary, but that is about all that could go wrong.)

Given that users will often want to perform this, it would be nice to make it simpler for them than this, either by:

It's not yet clear to me which is best, so I will leave that as an open question/decision for future.