-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Be able to stop CONCISE from adding a new dimension to coordinate variables #131
Comments
The way CONCISE works is that it performs merging amongst multiple granules by introducing the It is known that xarray doesn't always play nice with all CONCISE-merged datasets, but I always viewed that more as a limitation of xarray than CONCISE itself. For an example of xarray limitations, we had full support for NetCDF groups before xarray had their support for them Is there a way to work around xarray on SAMBAH? I'd prefer to see a downchain solution over needing to change how CONCISE works since its been around for a fairly long time for users |
@danielfromearth Oh wait, is this an issue with the SAMBAH chain itself or just an issue with a regression test because xarray can't open the dataset? |
We're currently determining whether to consider these outputs an unacceptable output from the chain, or whether to consider it an output to work around. The original data structure depends on two coordinate variables (as defined by CF/COARDS here) called When the data is processed by CONCISE, it ends up creating a netCDF with |
The only way I can see CONCISE passing through the 1D variable untouched is if CONCISE can verify that every granule its merging contains the same data in that variable otherwise there would be a loss of data during merging. But then I would question whether or not the existing user base is okay with changing CONCISE's behavior at this point while it's in maintenance mode My opinion is leaning more towards that CONCISE should remain fairly consistent in its behavior so far and its more of a downstream tooling issue to support its output |
@joshgarde, thanks for the comments on this! After digging into this further with @ank1m, it looks like there might already be a resolution to this difficulty in |
Getting a new error in the regression test notebook for the SAMBAH service chain.... An error when trying to open an output dataset using
xarray
— I think this is likely because of how CONCISE is producing the result (i.e., stacking layers):MissingDimensionsError: 'xtrack' has more than 1-dimension and the same name as one of its dimensions ('subset_index', 'xtrack'). xarray disallows such variables because they conflict with the coordinates used to label dimensions.
Perhaps we can add a way to tell CONCISE that a variable or variables—in this case,
xtrack
— is a coordinate variable that should not have a newsubset_index
dimension added to it. In other words, keep the 1D coordinate variable as a 1D variable in CONCISE's output.The text was updated successfully, but these errors were encountered: