Open philippemiron opened 1 year ago
Create independent functions for ftle, lavd, and elliptic vortices.
Each of those functions should take a parameter dictionary and the velocity field store in a xr.Dataset
. In one line, we should be able to obtain the scalar across the domain and/or the extracted contours. Fill parameter with default value if not present.
FTLE
LAVD:
Elliptic LCS
This seems like a good structure and the function that are call can be general enough to be reused between the 3 use cases..
The code is working fine now, but it could be made simpler.
xgcm.grid
objects (velocity fields, and trajectory grids)?Could have a class
xlcs
that contains:flowmap()
operation without having to pass the grid objectI think that creating a class might be overkill and would make it harder to use the method independently. Have to think about this more carefully...