[thredds] HTTPServer/fileServer for dataset

Hi,


Is it not possible to serve a regular netCDF file with the HTTPServer service? 
I can get it to work with a datasetScan, but not dataset where i specify a 
netCDF file.


In the following example, OPeNDAP works for both datasets, while HTTPServer 
works for only the datasetScan. The first dataset returns HTTP 404 when I try 
to download the file. Tested on 4.3.23 and 4.5.4.


Example catalog.xml:



<?xml version="1.0" encoding="UTF-8"?>
<catalog name="THREDDS test catalogue"
        xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
        xmlns:xlink="http://www.w3.org/1999/xlink";>
 
 <service name="testservices" serviceType="Compound" base="">
 <service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/"/>
 <service name="http" serviceType="HTTPServer" base="/thredds/fileServer/"/>
 </service>
 
 <dataset name="TestDataset" ID="test" urlPath="arcticData/framStrait/testpath">
 <metadata inherited="true">
 <serviceName>testservices</serviceName>
 <dataType>Station</dataType>
 </metadata>
 <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
location="file:///opt/tomcat/content/thredds/testdata/testfile.nc"/>
 </dataset>
 
 <datasetScan name="Test all files in a directory" ID="testDatasetScan"
      path="testAll" location="/opt/tomcat/content/thredds/testdata/">
 <metadata inherited="true">
 <serviceName>testservices</serviceName>
 <dataType>Station</dataType>
 </metadata>
 <filter>
 <include wildcard="testfile.nc"/>
 </filter>
 </datasetScan>
</catalog>


Regards,
Aleksander Vines

Attachment: smime.p7s
Description: Electronic Signature S/MIME

  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: