Uploaded image for project: 'JASMIN CIS'
  1. JASMIN CIS
  2. JASCIS-215

GASSP: ValueError: Unable to parse date string u'seconds UTC'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: DummyVersion
    • Component/s: Plotting
    • Labels:
      None
    • Sprint:
      Sprint 8, Sprint 9

      Description

      This maybe a product issue.

      When:
      cis plot BC_M:level_1_2/HIPPO/SP2_HIPPO_M2_3_NOAA_20091104_V1.nc

      I get:
      Traceback (most recent call last):
      336 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/AProduct.py", line 163, in get_data
      337 data = product_cls().create_data_object(filenames, variable)
      338 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 394, in create_data_object
      339 return self.create_coords(filenames, variable)
      340 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 380, in create_coords
      341 coords = self._create_coordinates_list(data_variables, variable_selector)
      342 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 340, in _create_coordinates_list
      343 time_coord.convert_to_std_time(variable_selector.time_stamp_info)
      344 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/Coord.py", line 64, in conv ert_to_std_time
      345 self._data = convert_time_using_time_stamp_info_to_std_time(self.data, self.units, time_stamp_info)
      346 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/time_util.py", line 122, in convert _time_using_time_stamp_info_to_std_time
      347 return convert_time_since_to_std_time(time_array, units_in_since_form)
      348 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/time_util.py", line 97, in convert_ time_since_to_std_time
      349 units, utc_offset, dt = _dateparse(units_no_colon_in_since)
      350 File "/usr/lib/python2.7/site-packages/netcdftime.py", line 487, in _dateparse
      351 year,month,day,hour,minute,second,utc_offset = _parse_date(timestr[n:])
      352 File "/usr/lib/python2.7/site-packages/netcdftime.py", line 831, in _parse_date
      353 raise ValueError("Unable to parse date string %r" % datestring)
      354 ValueError: Unable to parse date string u'seconds UTC'
      355
      356 Traceback (most recent call last):
      357 File "/group_workspaces/jasmin/cis/cis_dev_venv/bin/cis", line 6, in <module>
      358 main()
      359 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 305, in main
      360 parse_and_run_arguments()
      361 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 284, in parse_and_run _arguments
      362 cmd(arguments)
      363 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 66, in plot_cmd
      364 data.append(read_data(datagroup['filenames'], datagroup['variables'], datagroup['product']))
      365 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/read.py", line 23, in read_ data
      366 return get_data(filenames, variable, product)
      367 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/AProduct.py", line 169, in get_data
      368 % (product_cls.__name__, type(e).__name__, e.message), e)
      369 jasmin_cis.data_io.products.AProduct.ProductPluginException: An error occurred retrieving data using the product NCAR_NetCDF _RAF. Check that this is the correct product plugin for your chosen data. Exception was ValueError: Unable to parse date str ing u'seconds UTC'.

        Attachments

          Activity

            People

            Assignee:
            schutgens@atm.ox.ac.uk Nick Schutgens
            Reporter:
            schutgens@atm.ox.ac.uk Nick Schutgens
            Participants:
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: