NOAA-PMEL / LAS

Live Access Server
https://ferret.pmel.noaa.gov/LAS/
The Unlicense
13 stars 5 forks source link

addxml gives date format which causes an error in las product server #771

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Reported by @kevin-obrien on 2 Mar 2010 19:09 UTC

Given this addXML command:

sh bin/addXML.sh -n http://thredds1.pfeg.noaa.gov/thredds/dodsC/satellite/AK/ssta/hday -a:t

a time axis is created that looks like:

  <time-t-id-09f95631d1 type="t" units="minute">
    <arange start="2005-06-30T16:42:00" size="11985" step="26" />
  </time-t-id-09f95631d1>

When loaded into LAS, this produces a formatting error from the productserver:

     [java] ---- Dataset Name: SST, NOAA POES AVHRR, LAC, 0.0125 degrees, Alaska, Day and Night
     [java]      -- Dataset  URL: http://thredds1.pfeg.noaa.gov/thredds/dodsC/satellite/AK/ssta/hday
     [java]         Variable: SST, NOAA POES AVHRR, LAC, 0.0125 degrees, Alaska, Day and Night
     [java] java.lang.IllegalArgumentException: Invalid format: "2005-06-30T16:42:00" is malformed at "T16:42:00"
     [java]     at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:673)

Migrated-From: http://dunkel.pmel.noaa.gov/trac/las/ticket/765

karlmsmith commented 6 years ago

Comment by @noaaroland on 2 Mar 2010 21:24 UTC Extraneous "T" removed from the format string for year values. r4947.