-
Notifications
You must be signed in to change notification settings - Fork 179
Odd new variable appearing in this joinExisting aggregation #451
Comments
Yikes, this is even stranger. There are two different dimensions, both called gives
|
If I try renaming the dimension
then the DDS looks better, but still I have that strange
|
And it looks like renaming the dimension causes failure. Godiva2 gives |
@cwardgar , should I send e-mail to thredds support referencing this ticket? Not sure of the protocol anymore... |
No. Check your files. I just dumped them all via opendap and one actually HAS a variable called 't'. (I'll get filename in a second.) |
Might have spoken too soon... (stupid ncml files also get opened by opendap...) |
@rsignell-usgs - I think github works best for potential bugs like this. Can you try renaming the dimension inside the aggregation? That worked for me using a few of the files from the server. |
According to the ncml agg docs: https://www.unidata.ucar.edu/software/thredds/v4.6/netcdf-java/ncml/Aggregation.html "Variables of the same name (in different files) are connected along their existing, outer dimension, called the aggregation dimension. A coordinate variable must exist for the dimension." So, in the example you have above renaming the dimension, the coordinate variable
|
Now here is a fun one...if I tell the joinExisting to use
then things work as well. Since the dimension |
In short, I think this is a bug. Here is what I think might be going on: even though the variable @JohnLCaron - any of this ringing a bell, or brining back memories of NcML aggregation nightmares? |
get rid of doesnt need to have same name, :coordinates = "Longitude Latitude datetime"; works fine |
not sure what this "variable t that didn't exist before" is yet. |
if so, try
not
|
@lesserwhirls , awesome! I didn't know I could rename the dimension inside the aggregation tag! And I agree that creating a time coordinate variable with the same name as the dimension is a bug, since one already exists (it just isn't named the same as the dimension). |
Here's the resulting very nice aggregation, using @lesserwhirls #451 (comment) solution above: |
@lesserwhirls should we leave this open until the bug is fixed or do you want to introduce another issue that actually more closely addresses the issue? |
I think we should just leave this open, and I will try to summarize things. However, it looks like @JohnLCaron had something slightly different in mind (rather than renaming the dimension), but I'm not sure if there is a difference between renaming the dimension or renaming the variable. So @JohnLCaron, here is what I understand the situation is: Each netCDF file has a dimension I'm thinking that the NcML agg does not pick up on the fact that the (dimension |
@lesserwhirls this is exactly how I understand the situation as well. 😸 |
agree On Fri, Feb 26, 2016 at 9:35 AM, Rich Signell [email protected]
|
We have a bunch of netcdf granules here:
http:https://geoport-dev.whoi.edu/thredds/catalog/usgs/data2/rsignell/gdrive/nsf-alpha/Data/WHOI-HFRadar-Data-Sets/catalog.html
that we are aggregating with a very simple NcML that joins along the time dimension
t
:The resulting aggregation dataset here:
http:https://geoport-dev.whoi.edu/thredds/dodsC/usgs/data2/rsignell/gdrive/nsf-alpha/Data/WHOI-HFRadar-Data-Sets/00_dir_HFR_agg.ncml.html
seems to work fine, but we noticed that the aggregation has acquired an odd new variable
t
that didn't exist before.This new variable
t
has some rather strange values:http:https://geoport-dev.whoi.edu/thredds/dodsC/usgs/data2/rsignell/gdrive/nsf-alpha/Data/WHOI-HFRadar-Data-Sets/00_dir_HFR_agg.ncml.ascii?t[0:1:47]
Is this because the time coordinate variable
datetime
has a different name than the time dimensiont
?Is this expected behavior?
The text was updated successfully, but these errors were encountered: