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

Stats and Eval fail if ungridded data has been flattened

    XMLWordPrintable

    Details

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

      Description

      When I colocate onto ungridded data, the shape of the ungridded data is lost. This is acceptable since the shape of ungridded data is physically meaningless (unlike for gridded). However this causes problems with stats and eval:

      First of all I colocated subset ECHAM onto MODIS:

      cis subset mmrbc:/group_workspaces/jasmin/cis/data/ECHAM/2008_3D_3hr/ECHAM6.1-HAM2.2_GLOFIR1_2008_mmrbc.pl.nc t=[2008-03-29T18:00:00,2008-03-30T05:00:00],z=[10000] -o echam_subs

      cis col mmrbc:echam_subs.nc /group_workspaces/jasmin/cis/data/MODIS/MYD04_L2/2007/001/MYD04_L2.A2007001.1430.005.2007147180116.hdf:colocator=lin -o model_onto_modis.nc

      Then the following two commands both fail:

      cis eval mmrbc=model:cis-model_onto_modis.nc Cloud_Fraction_Land=modis:/group_workspaces/jasmin/cis/data/MODIS/MYD04_L2/2007/001/MYD04_L2.A2007001.1430.005.2007147180116.hdf "model - modis" -o black_carbon:model_modis_difference

      "An error occurred evaluating your expression - check that it's correct and that the variables are compatible shapes. Error is: operands could not be broadcast together with shapes (27405) (203,135)"

      cis stats mmrbc:cis-model_onto_modis.nc Cloud_Fraction_Land:/group_workspaces/jasmin/cis/data/MODIS/MYD04_L2/2007/001/MYD04_L2.A2007001.1430.005.2007147180116.hdf

      "ValueError: operands could not be broadcast together with shapes (203,135) (27405)"

        Attachments

          Activity

            People

            Assignee:
            sandeep.kaur@tessella.com sandeep.kaur@tessella.com
            Reporter:
            matthew.kendall@tessella.com Matthew Kendall
            Participants:
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: