Mattia Almansi

Results 52 comments of Mattia Almansi

Oh nice, I'll give it a go after the next `xarray` release.

My PyPI username is malmans2

Good catch! I guess we could try to initialize the figure in [animate](https://github.com/hainegroup/oceanspy/blob/master/oceanspy/animate.py) if it isn't already. Maybe something like: ```python if not plt.get_fignums(): plt.figure() ```

Looks like a good idea! The only downside I can see is that directly indexing the OceanDataset makes a bit harder to understand what's happening under the hood. I.e., users...

Mooring variables can have just 1 sample (e.g., T and S), 2 samples (e.g., U with dimension (Xp1, Y) or V with dimension (X,Yp1)) or 4 samples (e.g., momVort3 with...

I just realized that we are using geopy now to compute the distance between moorings, while we could just use the dX and dY variables from the model to be...

If you want to get rid of X and Y, you can just do `verti_integrals=verti_integrals.squeeze()`

I think in your case you want to integrate in X, Y, Z (so basically consider the volume of each cell), then sum along mooring. Something like this: ```python verti_integrals...

I think they're all good suggestions! OceanSpy definitely needs maintenance/refactoring. I've another couple of suggestions: 1. Make use of [xoak](https://xoak.readthedocs.io/en/latest/) to perform nearest neighbor interpolations and extract stations/moorings/floats. However, it...

To make things faster OceanSpy internally runs the cutout function before interpolating. However, the interpolation fails if the cutout grid does not have at least 2 lons and lats points....