Re: [thredds] time units with FMRC collections

  • To: thredds community <thredds@xxxxxxxxxxxxxxxx>
  • Subject: Re: [thredds] time units with FMRC collections
  • From: tom cook <tmcook@xxxxxxxx>
  • Date: Fri, 2 Feb 2018 16:28:53 -0800
  • Ironport-phdr: 9a23:rDAnkBTqZwBqG4pdwpz1SIq/Stpsv+yvbD5Q0YIujvd0So/mwa6yZRCN2/xhgRfzUJnB7Loc0qyK6/mmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfa5+IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRDDYOyb4UBAekPM/tGoYbhvFYOsQeyCBOwCO/z1jNFhHn71rA63eQ7FgHG2RQtH84JsHTRsd76KKASUee2zKLVyjjDc/ZW1iv66IjPcRAsuuyMUq5rccXM00UgCR7KjkiJpIHjIjib2OMNs22B4OphU+Kik3MnpB1rrTi13MsjlJTGhp8Tx1vZ9it52J44KcC2RUJle9KoDpVduiWAO4dqWM8vQHxktD4kxrEavZO3ZisHxZQ9yxLBdfCKfZKE7g/hWeuVJzpzmWhrd6ilhxmo9Eit0uj8Vs6p31lUtidFidzMtmwV1xzU98iHVuNx/ke/1jaL0ADe8vtLLlwolabCMJEh37AwlpQNvkTZGS/2hVn2gLaNeUk64OSo9vjoYq77qZOGKYB7lxz+Prwvmsy5H+s4LhADU3WV9OiizrHv40P0TbFQgvEqiKXUs43WKdwepqGjAg9V1ogj6wy4DzejyNkYgXwHI05CeBKAjIjkIEzOL+zjDfiimVijjipkx+3eMr37HprNNmTDkKvmfbtl905cyBAzws5C6J1JEbEMO+/zWknwtNPFFBA5Lxa7z/z6CNphzIweQ3iDDbGEP6PP4he04bczI/OBaIMO8D36Lv044f/ynDdthV8HcKWlxrMKbnG0F+hvZViSaGCqj9scRzQkpA07GfDtjRWJVjlQLyKuWqk74TITFYm9AcHOSp370+/J5zuyApADPjMOMVuLC3q9MtzcA/o=
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



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