NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
HI, So I had some sloppy code in my catalogs (I had two featureCollections with the same name DOH!), which was cleaned up and subsequently cleaned up the "hours since 1970-2-2" date I was getting. However, I'm still not getting what I want for the time units. Right now, the pertinent lines from my catalog looks like this: <featureCollection name="HFRADAR US West Coast 6km Resolution Hourly RTV test" featureType="FMRC" harvest="true" path="TEST/USWC/6km/hourly/RTV"> <metadata inherited="true"> <documentation type="Summary">HFRADAR US West Coast 6km Resolution Hourly Combined Total Vectors (RTV)</documentation> <serviceName>allServices</serviceName> </metadata> <collection spec="/exports/RTV/USWC/**/2018#MMddHHmm#_hfr_uswc_6km_rtv_uwls_SIO.nc$"/> <update startup="true" rescan="0 30 * * * ? *" trigger="allow"/> <fmrcConfig regularize="false" datasetTypes="Best"/> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> <variable name="time"> <attribute name="units" value="seconds since 1970-01-01 00:00:00.000 UTC"/> </variable> </netcdf> </featureCollection> </dataset> Now my time unit reads: "units: hours since 1970-01-01 00:00:00.000 UTC" getting closer! But I'm hoping to get seconds since 1970-1-1 THANKS! Tom On Fri, Feb 2, 2018 at 3:03 PM, tom cook <tmcook@xxxxxxxx> wrote: > HI > Hopefully one of you can stop me from smashing more items in my office > by helping me with this question. :) > > When using FMRC to aggregate data, the time unit value is given as > hours from the start of the data set. For example, my FMRC collection > starts on Jan 1 0:00 UTC and the units are listed as > "units: hours since 2018-01-01 00:00:00.000 UTC" > I've been attempting to use NCML to change this with the following > lines in my catalog INSIDE my featureCollection block: > > <protoDataset> > <netcdf > xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> > <variable name="time"> > <attribute name="units" value="seconds since 1970-1-1 > 00:00:00 UTC"/> > </variable> > </netcdf> > </protoDataset> > > I've tried many values for the time units, but nothing changes with my > time values. > If I put it outside the <protoDataset> tags, I see changes to the > values, but the units become something weird which I can't figure out > how to control. For instance if I remove the <protoDataset> tags from > the code above, my time unit becomes "hours since 1970-2-2 20:00:00" > > I've read through the documentation and examples online, but I'm not > making any headway. > > Can anyone set me straight? > > Thanks! > Tom
thredds
archives: