Hi,
We're hoping to generate a number of different ERDDAP datasets by pulling data that is already made available via a
hyrax server.
We're using, as suggested by the erddap docs, the <
cacheFromUrl> feature to maintain a copy locally of the files served by ERDDAP.
From log:
*** constructing EDDTableFromFiles amundsen521
dir/file table doesn't exist: /erddapData/dataset/21/amundsen521/dirTable.nc
dir/file table doesn't exist: /erddapData/dataset/21/amundsen521/fileTable.nc
creating new dirTable and fileTable (dirTable=null?true fileTable=null?true badFileMap=null?false)
doQuickRestart=false
* amundsen521 EDDTableFromNcFiles.makeCopyFileTasks pathRegex=.* fileNameRegex=.*
from http://mistwatch.uwaterloo.ca/opendap/hyrax/data/Amundsen_Science_and_CIOOS/521/CCIN521_20110705_CASES_0402_CTD_Franklin_04_07_2011/
to /datasets/amundsen/521/
EDDTableFromNcFiles.makeCopyFileTasks: lastFinishedTask=-1 < datasetLastAssignedTask(amundsen521)=null? pendingTasks=false
EDDTableFromNcFiles.makeCopyFileTasks: no matching source files.
*** An error occurred while trying to load amundsen521:
java.lang.RuntimeException: datasets.xml error on or before line #27657: 0 files found in /datasets/amundsen/521/However, pointing directly to a subdirectory instead where files are actually present (
example) will successfully download a copy of those files locally.
I believe, we sucessfully managed to get ERDDAP to retrieve files from HYRAX subdirectories before. This was however with an older version of ERDDAP (we're now using 2.23) and a different hyrax instance. I'm wondering if this could be related.
This is the header of an example xml file (see also attached file for full dataset xml):
<dataset type="EDDTableFromNcFiles" datasetID="amundsen521" active="true">
<reloadEveryNMinutes>10080</reloadEveryNMinutes>
<updateEveryNMillis>10000</updateEveryNMillis>
<fileDir>/datasets/amundsen/521/</fileDir>
<fileNameRegex>.*</fileNameRegex>
<recursive>true</recursive>
<pathRegex>.*</pathRegex>
<metadataFrom>last</metadataFrom>
<standardizeWhat>0</standardizeWhat>
<sortedColumnSourceName></sortedColumnSourceName>
<sortFilesBySourceNames></sortFilesBySourceNames>
<fileTableInMemory>true</fileTableInMemory>
<cacheFromUrl>http://mistwatch.uwaterloo.ca/opendap/hyrax/data/Amundsen_Science_and_CIOOS/521/</cacheFromUrl>
<accessibleViaFiles>true</accessibleViaFiles>
<!-- sourceAttributes>...
Is there something I'm doing wrong?
Thanks for all the help,
Jessy Barrette
Hakai Institute - CIOOS