Skip to content

Function to calculate trajectory DSG field path length #946

@sadielbartholomew

Description

@sadielbartholomew

It would be nice, and should be fairly simple, to implement functionality to calculate the path length of a trajectory DSG field.

Some concrete examples would be: for a DSG field representing a flight trajectory or a storm track - the path length would be the distance travelled on the Earth/sphere by the flight or storm, at least according to the sampling of the trajectory encoded by the data, which could be useful for calculations.

We already have functionality to find distances on the sphere given the sphere's radius, usually taken as the Earth's radius, so that means most of the work required is already done.

I think either a new function cf.path_length or a new method on a field f.path_length (erroring immediately if the field isn't appropriate i.e. not a 2D DSG) would be a good way to enable this, where the name could be this or something similar, as a suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions