TUDelftGeodesy / stmtools

Xarray extension for Space-Time Matrix
https://tudelftgeodesy.github.io/stmtools/
Apache License 2.0
6 stars 0 forks source link

27 subset assume space time #36

Closed rogerkuou closed 11 months ago

rogerkuou commented 1 year ago

Fix #27 by adding a regulate function. This is based on the principle that the "time" dimension should always exists for a Space-Time Matrix.

Suppose stmat is an STM instance with missing time dimension, now one can call .regulate_dims to expand time dimension for it. After calling, the subset function should be allowed:

# First regulate 
stmat_regulated = stmat.regulate_dims()

# Then subset
stmat_subset =  stmat_regulated.subest(...)