philippemiron / xlcs

Collection of methods to calculate Lagrangian Coherent Structures
MIT License
3 stars 1 forks source link

DataStructure #2

Open philippemiron opened 1 year ago

philippemiron commented 1 year ago

The code is working fine now, but it could be made simpler.

Could have a class xlcs that contains:

I 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...

philippemiron commented 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..