Mattia Almansi

Results 26 issues of Mattia Almansi

Closes #1037 This PR adds a check that does not allow to use attribute keys other than strings. TODO: * [x] Add unit tests and/or doctests in docstrings * [...

#### Minimal, reproducible code sample, a copy-pastable example if possible ```python import zarr z1 = zarr.open('data/example.zarr', mode='w', shape=(10, 10), dtype='i4') z1.attrs.put({1: "bar"}) # OK z1.attrs.put({"foo": "bar"}) # OK z1.attrs.put({1: "bar",...

help wanted

This is kind of inspired by the way we handle weights. The weights must be `DataArrays` for `xarray`, but `cf_xarray` allows strings so we can do `cf.weighted('volume')`. How about introducing...

enhancement

I ran into this while trying to set up a dataset with a collection of vertical profiles (i.e., a transect). I think we should consider adding a new axis named...

opinion wanted

It looks like when I pull out a DataArray from a Dataset using `cf_xarray` the coordinates are dropped (while `xarray` keeps them). Here is an example: ```python import xarray as...

documentation
faq

@renskegelderloos The survey aligned velocities don't exactly match the original velocities for curvilinear grids. It might be that there's a small error due to the extra operation with sin and...

invalid

Hi Mattia, I am extracting data along sections and it seems to be working for most sections but it fails when I try to take a section along a line...

bug

Matplotlib changed the default shading and `flat` will be deprecated soon. This issue explains quite well the problems that we can encounter: https://github.com/SciTools/cartopy/issues/1638 At some point we will have to...

dependencies

@MaceKuailv great job! You should add your name here: https://github.com/hainegroup/oceanspy/blob/main/docs/data/people.yml

@asiddi24 @ThomasHaine These are the test functions I'm using to check [heat](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.compute.heat_budget.html#oceanspy.compute.heat_budget) and [salt](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.compute.salt_budget.html) budgets: https://github.com/malmans2/oceanspy/blob/959a2488519008f50804325a0a69925304217fdf/oceanspy/tests/test_compute_functions.py#L451-L502 It looks like the salt budget is a little less accurate than the heat...

Documentation