Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi Michael: The forecast model aggregation is still experimental, so im not surprised you see these problems. Thanks you for the patch, I will incorporate it ASAP. Godin, Michael wrote:
There appears to be an omission in the code for handling "forecastModelRun" aggregations when the files being aggregated are explicit files (specified with a "netcdf" element) as opposed to the contents of scanned directories (specified with a "scan" element). Esentially, the function checkOK is not being called for the explicit files.A minor modification to the Aggregation#finish method appears to resolve the issue:starting at line 338 or 339: //nestedDatasets.addAll(explicitDatasets); for (int i = 0; i < explicitDatasets.size(); i++) { Dataset dataset = (Dataset) explicitDatasets.get(i); if (dataset.checkOK(cancelTask)) nestedDatasets.add(dataset); }A workaround is to use <scan> elements instead of <netcdf> elements for explicit file, specifying the parent path in the "location" attribute and the file name in the "suffix" attribute, but this is a little hokey.Regards, Mike
netcdf-java
archives: