-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to Rename Dimensions with NcML (Works in 4.6) #490
Comments
Hi, I believe the variables may also need to be updated to understand their shape now depends on
|
I had tried that in the past but tried again with addition of the 'shape' entries for each variable. It fails immediately with:
The failing catalog entry is now:
Out of curiosity, I changed the join 'dimName' back to MT and it still produced the same 'Dimension time does not exist' error (but not right away) so I removed all the lines with The exact catalog entry in the first post works in 4.6 with all the changed dimension and variable names appearing as expected. In 5.5-SNAPSHOT the dataset will load without the dimension renames. The variable renames work in 5.5-SNAPSHOT, albeit with the unchanged dimension names (MT, Y, X, and Depth). |
I think the aggregation actually needs to be told the original (in the file) dimension, so |
I tried that. I know it's a little hard to follow since, aside from 'MT' to 'time', all the dimension and variable renames are just a change in case (e.g. 'Depth' -> 'depth'). The case you suggesting is the case that resulted in the 'Dimension time does not exist' error that didn't happen right away (right before I removed all the |
Hi @tdrwenski, the latest snapshot fixed my issue. Thank you! I did end up needing all those Catalog entry:
|
So this isn't actually fixed, it just displays the data form correctly. If you try to retrieve any actual data there are errors in the browser (
and the logs:
It will however output
and this in the logs:
|
Can you try doing the rename and the reshape in the same xml element? for me this seems to work correctly:
instead of
I believe in the latter case the second "date" is overwriting the first and the "orgName" is not getting saved. |
Yes, that works! Thanks for the quick reply and easy fix. |
I'm running 2 identical catalogs, one on TDS 5.5-SNAPSHOT (downloaded 03/09/2024) and the other on THREDDS 4.6.20. I have a few datasets where I am renaming most of the variables and dimensions. This works fine in THREDDS 4.6.20, but renaming the dimensions in 5.5-SNAPSHOT results in the following error:
If I remove the NcML that renames the dimensions, the aggregation works (with incorrect dimension names). Below is the catalog entry I'm using:
The text was updated successfully, but these errors were encountered: