Add linear path through projection coordinates to cross_section
as alternative option to geodesic
#2463
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.interpolate.cross_section
only operates by interpolating to a geodesic between specified start and end points. This becomes problematic when:I'd like to see something like a new
path_type
kwarg oncross_section
. It would default to "geodesic", which has current behavior, but we would add a new "linear" option, which would constructpoints
something like the following:Note this also makes
steps
an optional argument rather than defaulting to 100 (which we could probably still implement as default for the "geodesic" option for backwards compatibility). Also, I wrote this sketch assuming start and end are(x, y)
pairs...which I like for projection coordinates over(y, x)
, but really don't like for lon and lat (since that is flipped from(lat, lon)
used withgeodesic
). Not sure the best solution there.Reference
No response
The text was updated successfully, but these errors were encountered: