USF-IMARS / erddap-config

Content dir for docker-erddap incl setup.xml & dataset.xml
0 stars 1 forks source link

vsnpp_oc_7d_gom failing : outer axis overlap #48

Open 7yl4r opened 1 year ago

7yl4r commented 1 year ago

error from DasDds.sh:

*** An error occurred while trying to load vsnpp_oc_7d_gom:
java.lang.RuntimeException: datasets.xml error on or before line #280: Outer axis overlap between files.
max=1429.0 for /mnt/sdb/vsnpp_oc_7d_gom/VSNPP_2012003_2012007_7D_GOM_OC.nc
is greater than
min=0.0 for /mnt/sdb/vsnpp_oc_7d_gom/VSNPP_2012008_2012014_7D_GOM_OC.nc
 at gov.noaa.pfel.erddap.dataset.EDD.fromXml(EDD.java:471)
 at gov.noaa.pfel.erddap.dataset.EDD.oneFromDatasetsXml(EDD.java:551)
 at gov.noaa.pfel.erddap.dataset.EDD.testDasDds(EDD.java:11153)
 at gov.noaa.pfel.erddap.DasDds.doIt(DasDds.java:131)
 at gov.noaa.pfel.erddap.DasDds.main(DasDds.java:157)
Caused by: java.lang.RuntimeException: Outer axis overlap between files.
max=1429.0 for /mnt/sdb/vsnpp_oc_7d_gom/VSNPP_2012003_2012007_7D_GOM_OC.nc
is greater than
min=0.0 for /mnt/sdb/vsnpp_oc_7d_gom/VSNPP_2012008_2012014_7D_GOM_OC.nc
7yl4r commented 1 year ago

similar issue is seen on:

ralsei38 commented 1 year ago

Hello, I encounter the same error unfortunately, if you have any ideas I'd be grateful to learn how to overcome this issue. max=20803.0 for ... is greater than min=20468.0

I might be speaking nonesense as I did not dig into the code, but could the issue be related to this condition from the EDDGridFromFiles.java ?

for (int f = 1; f < nFiles; f++) { //1 since looking backward
    //min max overlap?
    if (ftMax.get(f - 1) > ftMin.get(f)) 
        throw new RuntimeException("Outer axis overlap between files.\n" +
            "max=" + ftMax.get(f-1) + " for " + dirList.get(ftDirIndex.get(f-1)) + ftFileList.get(f-1) + "\n" +
            "is greater than\n" +
            "min=" + ftMin.get(f)   + " for " + dirList.get(ftDirIndex.get(f  )) + ftFileList.get(f  ) + "\n");
}

if max > min throw an error ??!

This part of the code is around 8 years old so there is few chances but it looks a bit odd from my point of view :laughing:

Have a good day !

7yl4r commented 1 year ago

I do think that is the section of the code throwing the error, however, the cause of the error is usually due to something wrong in the datasets.xml file. The min+max are typically set there and then compared to the actual values in the chunk of code you have linked.