Ticket #875 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Some time points not extractable from IPCC observation granules

Reported by: spascoe Owned by: domlowe
Priority: critical Milestone: PROD Final
Component: CSML Version:
Keywords: Cc:


The attached tarball contains one field from the ipcc 30-year observation climatology with a script to csmlscan it and do 2 subset operations.

The second operation fails with the following traceback:

Traceback (most recent call last):
  File "./bug.py", line 34, in ?
  File "./bug.py", line 31, in bug
  File "/research/saturn2/spascoe/svn/csml_trunk/csml/API/ops_GridSeriesFeature.py", line 215, in subsetToGridSeries
    nc.genWriteVar(self.name.CONTENT,ords, times, caltype, axislist, units, fulldata, fillvalue)
  File "/research/saturn2/spascoe/svn/csml_trunk/csml/csmllibs/netCDFWriter.py", line 133, in genWriteVar
    self.addVariable(fulldata,varid, axisorder, fillvalue, units=unitlist[-1] ) #to do, units attribute for CF compliance
  File "/research/saturn2/spascoe/svn/csml_trunk/csml/csmllibs/netCDFWriter.py", line 77, in addVariable
  File "/usr/lib/python2.4/site-packages/cdat_lite-4.1.2_0.2.4-py2.4-linux-i686.egg/cdms/tvariable.py", line 146, in setAxis
    axislen = self.shape[n]
IndexError: tuple index out of range


csml_bug.tar.gz Download (1.6 MB) - added by spascoe 14 years ago.

Change History

Changed 14 years ago by spascoe

comment:1 Changed 14 years ago by domlowe

  • Status changed from new to closed
  • Resolution set to fixed

Bug in time sorting code, fixed in changeset:2894

Note: See TracTickets for help on using tickets.