[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #CGQ-298390]: Adding the cache="false" with extra NcML



problem is that the cache=false only works on dataRoot, but the extra ncml only 
works on datasetScan.
I will have to rethink this.



> >>
> >> Unidata THREDDS Support wrote:
> >> > can you send me a url to the original file?
> >> >
> >> >
> >> >> Guys,
> >> >>
> >> >> We tried adding the cache="false" tag to a daily forecast file that
> >> >> gets replaced each day, but also needs some NcML
> >> >> to make it CF compliant.   We haven't usually used the "datasetRoot
> >> >> construct" and we tried to modify the catalog
> >> >> that was working to add the datasetRoot
> >> >>
> >> >> Originally we had:
> >> >>
> >> >> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";
> >> >> location="/usr4/GoMOOS/cdfs/operational/latest.cdf">
> >> >>
> >> >> which worked okay, but we tried to modify it to:
> >> >>
> >> >> <?xml version="1.0" encoding="UTF-8"?>
> >> >> <catalog
> >> >> xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
> >> >> xmlns:xlink="http://www.w3.org/1999/xlink"; name="OPeNDAP Data
> >> >> Server" version="1.0.1">
> >> >> <service name="allServices" base="" serviceType="compound">
> >> >> <service name="dapService" serviceType="OpenDAP"
> >> >> base="/thredds/dodsC/" />
> >> >> <service name="httpService" serviceType="HTTPServer"
> >> >> base="/thredds/fileServer/" />
> >> >> </service>
> >> >>
> >> >> <datasetRoot path="cdfs" location="/usr4/GoMOOS/cdfs" cache="false"/>
> >> >>
> >> >> <dataset name="Latest Gulf of Maine forecast"
> >> >> ID="cdfs/operational/latest" urlPath="cdfs/operational/latest.cdf">
> >> >> <serviceName>allServices</serviceName>
> >> >> <netcdf
> >> >> xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
> >> >> <variable name="elev">
> >> >> <attribute name="coordinates" type="String" value="x y"/>
> >> >> <attribute name="_FillValue" type="short" value="16608"/>
> >> >> </variable>
> >> >> <variable name="ua">
> >> >> <attribute name="coordinates" type="String" value="x y"/>
> >> >> <attribute name="standard_name" type="String"
> >> >> value="barotropic_eastward_sea_water_velocity"/>
> >> >> </variable>
> >> >> <variable name="va">
> >> >> <attribute name="coordinates" type="String" value="x y"/>
> >> >> <attribute name="standard_name" type="String"
> >> >> value="barotropic_northward_sea_water_velocity"/>
> >> >> </variable>
> >> >> <variable name="heat_flux">
> >> >> <attribute name="coordinates" type="String" value="x y"/>
> >> >> </variable>
> >> >> <variable name="depth">
> >> >> <attribute name="coordinates" type="String" value="x y"/>
> >> >> </variable>
> >> >> <variable name="temp">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> <attribute name="_FillValue" type="short" value="-25184"/>
> >> >> </variable>
> >> >> <variable name="am">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> </variable>
> >> >> <variable name="vv">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> </variable>
> >> >> <variable name="u">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> <attribute name="standard_name" type="String"
> >> >> value="eastward_sea_water_velocity"/>
> >> >> </variable>
> >> >> <variable name="v">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> <attribute name="standard_name" type="String"
> >> >> value="northward_sea_water_velocity"/>
> >> >> </variable>
> >> >> <variable name="w">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> </variable>
> >> >> <variable name="time">
> >> >> <attribute name="units" type="String" value="days
> >> >> since 2006-11-02 00:00 UTC"/>
> >> >> </variable>
> >> >> <variable name="salt">
> >> >> <attribute name="coordinates" type="String" value="x y zpos"/>
> >> >> <attribute name="_FillValue" type="short" value="-26128"/>
> >> >> <attribute name="units" type="String" value="0.001"/>
> >> >> </variable>
> >> >> <variable name="zpos">
> >> >> <attribute name="standard_name" type="String"
> >> >> value="ocean_sigma_coordinate"/>
> >> >> <attribute name="formula_terms" type="String"
> >> >> value="sigma: zpos eta: elev depth: depth"/>
> >> >> <attribute name="positive" type="String" value="up"/>
> >> >> <attribute name="units" type="String" value="1"/>
> >> >> <attribute name="axis" type="String" value="Z"/>
> >> >> <values> 0 -0.008333339 -0.01666667 -0.03333335
> >> >> -0.06666667 -0.1333333
> >> >> -0.2 -0.2666667 -0.3333333 -0.4 -0.4666667
> >> >> -0.5333334 -0.6 -0.6666667
> >> >> -0.7333333 -0.8 -0.8666667 -0.9333333 -0.9666666
> >> >> -0.9833333 -0.9916667 -1 </values>
> >> >> </variable>
> >> >> <attribute name="Conventions" type="String" value="CF-1.0"/>
> >> >> </netcdf>
> >> >> </dataset>
> >> >> </catalog>
> >> >>
> >> >>
> >> >> and we got back the error:
> >> >> Error {
> >> >> code = 500;
> >> >> message = "New variable (elev) must have datatype attribute";
> >> >> };
> >> >>
> >> >> So somehow it thinks "elev" is a new variable, not an existing one to
> >> >> be modified.  Help?!
> >> >>
> >> >> Thanks,
> >> >> Rich
> >> >> --
> >> >> Dr. Richard P. Signell   (508) 457-2229
> >> >> USGS, 384 Woods Hole Rd.
> >> >> Woods Hole, MA 02543-1598
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> > Ticket Details
> >> > ===================
> >> > Ticket ID: CGQ-298390
> >> > Department: Support THREDDS
> >> > Priority: Normal
> >> > Status: Open
> >> >
> >> >
> >>
> >>
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: CGQ-298390
> > Department: Support THREDDS
> > Priority: Normal
> > Status: Open
> >
> >
> 
> 


Ticket Details
===================
Ticket ID: CGQ-298390
Department: Support THREDDS
Priority: Normal
Status: Open