ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Classes | Functions
module_timeserie Namespace Reference

Classes

class  TimeserieError
 
class  Timeserie
 Class representing 1D time series. More...
 

Functions

def copy
 Copy a Timeserie element. More...
 
def datetime2data
 In a Timeserie object, find in time axis the nearest date from given date. More...
 
def nearest_sup
 Look for the nearest and newer date in a timeserie for an given day. More...
 
def nearest_inf
 Look for the nearest and older date in a timeserie for an given day. More...
 
def concatenate
 Add ts1 and ts2 and return ts_concat. More...
 
def sort
 Sort a time serie with time attribute and return another. More...
 

Function Documentation

def module_timeserie.concatenate (   ts1,
  ts2 
)

Add ts1 and ts2 and return ts_concat.

def module_timeserie.copy (   x)

Copy a Timeserie element.

def module_timeserie.datetime2data (   timeserie,
  date_in,
  h_accuracy = 6 
)

In a Timeserie object, find in time axis the nearest date from given date.

Optional: h_accurary. Find date in [date_in-h_accurary,date_in+h_accuracy]. +-6 hours by default. Return the corresponding tuple with its date: (datetime.datetime,data).

def module_timeserie.nearest_inf (   timeserie,
  date_in 
)

Look for the nearest and older date in a timeserie for an given day.

Return the corresponding tuple with its date: (datetime.datetime,data).

def module_timeserie.nearest_sup (   timeserie,
  date_in 
)

Look for the nearest and newer date in a timeserie for an given day.

Return the corresponding tuple with its date: (datetime.datetime,data).

def module_timeserie.sort (   ts)

Sort a time serie with time attribute and return another.