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

GASSP: UnicodeEncodeError

    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 error and unrelated to CIS (although I suspect it is CIS).

      When plotting:
      cis plot SO4:level_1_2/AEGEAN-GAME/AMS_AG_B639_FAAM_MAN_20110903_V1.nc

      I get:
      Traceback (most recent call last):
        4 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
        5 data = product_cls().create_data_object(filenames, variable)
        6 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
        7 return self.create_coords(filenames, variable)
        8 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/products/NCAR_NetCDF_RAF.py ", line 385, in create_coords
        9 return UngriddedData(data_variables[variable], get_metadata(data_variables[variable]), coords)
       10 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/ungridded_data.py", line 27 9, in __init__
       11 if str(metadata.units) == 'per kilometer per steradian':
       12 UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 0: ordinal not in range(128)
       13
       14 Traceback (most recent call last):
       15 File "/group_workspaces/jasmin/cis/cis_dev_venv/bin/cis", line 6, in <module>
       16 main()
       17 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 305, in main
       18 parse_and_run_arguments()
       19 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 284, in parse_and_run _arguments
       20 cmd(arguments)
       21 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 66, in plot_cmd
       22 data.append(read_data(datagroup['filenames'], datagroup['variables'], datagroup['product']))
       23 File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/data_io/read.py", line 23, in read_ data
       24 return get_data(filenames, variable, product)
       25 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
       26 % (product_cls.__name__, type(e).__name__, e.message), e)
       27 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 UnicodeEncodeError: .

      This happens for several datasets (GASSP/level_1_2):
      AMMA/AMS_AMMA_B216_FAAM_MAN_20060720_V1.nc
      COPE/AMS_COPE_B791_FAAM_MAN_20130729_V1.nc
      EUCAARI/AMS_EUCAARI_B374_FAAM_MAN_20080514_V1.nc
      OP3/AMS_OP3_B387_FAAM_MAN_20080714_V1.nc
      RHaMBLe/AMS_RHaMBLe_MAN_2007_V1.nc
      RONOCO/AMS_RONOCO_B564_FAAM_MAN_20110111_V1.nc
      VOCALS/AMS_VOCALS_B409_FAAM_MAN_20081027_V1.nc

        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: