parcels icon indicating copy to clipboard operation
parcels copied to clipboard

Testing and support for 2D fields in X-Z and Y-Z, and 1D fields in X, Y, or Z

Open VeckoTheGecko opened this issue 8 months ago • 3 comments

#2048 introduced an API that allows the grid to naturally extend towards structured grids of different dimensionality (2D where there isn't a X or isn't a Y direction, or 1D grids).

Having testing for these grids would be really beneficial so that we can:

  • a) ensure native support for this - and so that our assertions on initialisation are compatible
  • b) document how these grids can be constructed

VeckoTheGecko avatar Jun 30 '25 09:06 VeckoTheGecko

Good idea! I'd be happy to work on this in the coming days. Where should I put these test cases?

erikvansebille avatar Jun 30 '25 09:06 erikvansebille

Awesome 🤩

Where should I put these test cases?

Below test_invalid_lon_lat in tests/v4/test_xgrid.py

VeckoTheGecko avatar Jun 30 '25 09:06 VeckoTheGecko

cc @jimena-medinarubio - was running into difficulties getting 2D advection to work in XY space. Currently just setting to work with 2 depth slices at the surface

VeckoTheGecko avatar Sep 09 '25 09:09 VeckoTheGecko