Ejemplo n.º 1
0
    def add_data(self, data, start):
        """Add data to the dataset."""

        tcode, retcode = hspf.wdbsgipy(self.wdm, self.number, 17, 1)
        tstep, retcode = hspf.wdbsgipy(self.wdm, self.number, 33, 1)

        #Convert Python date to WDM format

        llsdat = [start.year, start.month, start.day, start.hour, start.minute,
                  start.second]

        self.data = data

        return hspf.wdtputpy(self.wdm, self.number, tstep, llsdat, 1, 
                                0, tcode, data) 
Ejemplo n.º 2
0
    def add_data(self, data, start):
        """Add data to the dataset."""

        tcode, retcode = hspf.wdbsgipy(self.wdm, self.number, 17, 1)
        tstep, retcode = hspf.wdbsgipy(self.wdm, self.number, 33, 1)

        #Convert Python date to WDM format

        llsdat = [
            start.year, start.month, start.day, start.hour, start.minute,
            start.second
        ]

        self.data = data

        return hspf.wdtputpy(self.wdm, self.number, tstep, llsdat, 1, 0, tcode,
                             data)