Ticket #360 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

[DS] CSML API needs modification so it knows automatically what time axis is or allows you to tell it.

Reported by: domlowe Owned by: domlowe
Priority: required Milestone: PreBeta
Component: CSML Version:
Keywords: Cc:

Description

CSML API needs modification so it knows automatically what time axis is or allows you to tell it. This functionality is also needed for the Scanner to avoid the need for explicit declaration of time axis.

Ag's stub solution for CSML api (based on revision 1185) To go in ops_GridSeriesFeature (although real solution may not).

Line 21:

time[identifyTimeAxis()] = self.domain.domainReference.timePositions

Line 51:

def identifyTimeAxis(ft=None):

""" Returns the time axis from the cdms axis list. """ return "time"

Line 80:

for time in dr[identifyTimeAxis()].split():

Line 90:

listPosition=domainref[identifyTimeAxis()].split().index(time)

Line 104:

caltype, calunits = ops_AbstractFileExtract.calendar(self.rangeSet.aggregatedArray.component[0].fileName.split()[0], identifyTimeAxis()) #TODO should accept any time dim!!

Change History

comment:1 Changed 13 years ago by domlowe

  • Status changed from new to assigned

comment:2 Changed 13 years ago by domlowe

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

I've removed any dependency on a particular time axis from the API. drt? is just a dictionary containing the times read from the CSML file, but t does not refer to the original data.

Note: See TracTickets for help on using tickets.