You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
I'd expect the subset_point() operation to output a xarray.Dataset instance exactly like subset_spatial() does. All metadata and all coordinate variables shall be preserved so that we can also visualize the single spatial cells without making any difference in the code.
Actual behavior
subset_point() returns a dict. This is currently only useful in the API (i.e. Jupyter Notebook). It is useless in the CLI and Cate Deskop GUI, so we can neither plot it nor show it on the globe.
If the dict is really required by some use case, I suggest introducing an optional input output_dict=False.
Specifications
Cate 1 and 2-dev1
The text was updated successfully, but these errors were encountered:
The interface is different though. tseries_point takes an actual PointLike, while subset_spatial takes a PolygonLike. I'll see if subset_spatial can be converted to taking GeometryLike instead and what that entails. I'll also check how the outputs of the two operations differ. E.g., if tseries_point drops lat and lon coordinates or not, as subset_spatial should not do this.
In any case, subset_spatial should work with any valid Polygon, so it entails also working with a Polygon that would select a single point.
Expected behavior
I'd expect the
subset_point()
operation to output axarray.Dataset
instance exactly likesubset_spatial()
does. All metadata and all coordinate variables shall be preserved so that we can also visualize the single spatial cells without making any difference in the code.Actual behavior
subset_point()
returns adict
. This is currently only useful in the API (i.e. Jupyter Notebook). It is useless in the CLI and Cate Deskop GUI, so we can neither plot it nor show it on the globe.If the
dict
is really required by some use case, I suggest introducing an optional inputoutput_dict=False
.Specifications
Cate 1 and 2-dev1
The text was updated successfully, but these errors were encountered: