Add distance along cross section to interpolate_to_slice
#2462
Labels
Area: Cross-sections
Pertains to making cross-sections through data
good first issue
Straightforward issues suitable for new and inexperienced contributors to the project
Type: Feature
New functionality
What should we add?
Currently, MetPy's
metpy.interpolate.cross_section
andmetpy.interpolate.interpolate_to_slice
return DataArrays/Datasets with an added "index" dimension coordinate that simply contains therange
of the slice's length. For many applications (particularly plotting), the distance along the slice is much more useful, and often something I've seen people need to hack onto the DataArray/Dataset after the fact. I'm thinking we could easily add this by replacingwith something like
This is just a mock-up, I think the real version should:
distance_coord_name
as a optional kwarg (just in case a user already has something else called "distance" in their data)Reference
No response
The text was updated successfully, but these errors were encountered: