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

cis aggregate removes dimensions

    XMLWordPrintable

    Details

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

      Description

      Aggregation can lead to the loss of one or more dimensions. Consider the case of aggregating a single AERONET file (/group_workspaces/jasmin/cis/data/aeronet/AOT/LEV20/ALL_POINTS/920801_121229_Yakutsk.lev20):

      cis aggregate AOT_440:yakutsk.lev20 t=[2007-01-01T00,2008-01-01T00,PT6H]

      This leads to the removal of any longitude & latitude information making further processing (e.g. collocating a model to the aggregated observations) impossible. See ale JASCIS-175.

      Related:
      cis aggregate AOT_440:yakutsk.lev20 t=[2007-01-01T00,2008-01-01T00,PT6H],x=[0,360,360],y=[-90,90,180]

      leads to an error message:
      2015-02-06 14:42:38,345 - WARNING - Creating guessed bounds as none exist in file
      Traceback (most recent call last):
        File "/usr/bin/cis", line 6, in <module>
          main()
        File "/usr/lib/python2.7/site-packages/jasmin_cis/cis.py", line 223, in main
          commands[command](arguments)
        File "/usr/lib/python2.7/site-packages/jasmin_cis/cis.py", line 185, in aggregate_cmd
          aggregate.aggregate(variable, filenames, product, kernel)
        File "/usr/lib/python2.7/site-packages/jasmin_cis/aggregation/aggregate.py", line 41, in aggregate
          data = aggregator.aggregate_ungridded(kernel)
        File "/usr/lib/python2.7/site-packages/jasmin_cis/aggregation/aggregator.py", line 209, in aggregate_ungridded
          aggregated_cube = colocator.colocate(aggregation_cube, self.data, constraint, kernel)
        File "/usr/lib/python2.7/site-packages/jasmin_cis/col_implementations.py", line 813, in colocate
          coord.guess_bounds()
        File "/usr/lib/python2.7/site-packages/iris/coords.py", line 1046, in guess_bounds
          self.bounds = self._guess_bounds(bound_position)
        File "/usr/lib/python2.7/site-packages/iris/coords.py", line 997, in _guess_bounds
          raise ValueError('Cannot guess bounds for a coordinate of length '
      ValueError: Cannot guess bounds for a coordinate of length 1.

        Attachments

          Issue Links

            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: