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

GASSP: ValueError: invalid literal for float()

    XMLWordPrintable

    Details

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

      Description

      This maybe a product issue but I suspect it is a CIS issue.

      When plotting:
      cis plot BC:level_1_2/Chilbolton/SP2_Chilbolton_MAN_2011_V1.nc

      I get:
      Traceback (most recent call last):
       90 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
       91 data = product_cls().create_data_object(filenames, variable)
       92 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
       93 return self.create_coords(filenames, variable)
       94 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
       95 coords = self._create_coordinates_list(data_variables, variable_selector)
       96 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 362, in _create_coordinates_list
       97 "altitude")
       98 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 423, in _create_fixed_value_coord
       99 coordinate_value = float(value)
      100 ValueError: invalid literal for float(): 80 m asl
      101
      102 Traceback (most recent call last):
      103 File "/group_workspaces/jasmin/cis/cis_dev_venv/bin/cis", line 6, in <module>
      104 main()
      105 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 305, in main
      106 parse_and_run_arguments()
      107 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 284, in parse_and_run _arguments
      108 cmd(arguments)
      109 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 66, in plot_cmd
      110 data.append(read_data(datagroup['filenames'], datagroup['variables'], datagroup['product']))
      111 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/read.py", line 23, in read_ data
      112 return get_data(filenames, variable, product)
      113 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
      114 % (product_cls.__name__, type(e).__name__, e.message), e)
      115 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: invalid literal for floa t(): 80 m asl.

      This happens for other datasets as well (GASSP/level_1_2):
      CLACE6/CPC_CLACE6_MAN_2007_V1.nc
      COPS/DMPS_COPS_MAN_2007_V1.nc
      HolmeMoss/AMS_HM_MAN_2006_V1.nc - FAIL
      HolmeMoss/SP2_HM_MAN_2006_V1.nc - FAIL
      Weybourne/AMS_Weybourne_MAN_2011_V1.nc

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: