TrackCollection#

class core.track_collection.TrackCollection(TRACES=[])[source]#

Bases: object

TODO

Methods:

__init__([TRACES])

TRACES: list of Track

addTrack(track)

TODO

size()

TODO

length()

TODO

duration()

TODO

getTracks()

TODO

getTrack(i)

TODO

getTrackWithTid(tid)

copy()

TODO

setTimeZone(zone)

TODO

convertToTimeZone(zone)

TODO

frequency([mode])

TODO

createSpatialIndex([resolution, verbose])

TODO

exportSpatialIndex(filename)

TODO

importSpatialIndex(filename)

TODO

getSRID()

Return the SRID of collection

toECEFCoords([base])

TODO

toENUCoords([base])

TODO

toGeoCoords([base])

TODO

toENUCoordsIfNeeded()

TODO

smooth([constraint])

TODO

summary()

Print summary (complete wkt below)

toWKT()

Transforms collection into WKT string, one linestring per track

addAnalyticalFeature(algorithm[, name])

TODO

getAnalyticalFeature(af_name[, withNan])

getTimestamps_str([withNan])

Return the timestamps in a list format.

operate(operator[, arg1, arg2, arg3])

TODO

plot([symbols, markersize, margin, append])

TODO

filterOnBBox(bbox)

TODO

bbox()

TODO

resample(delta[, algo, mode])

Resampling tracks with linear interpolation

_collectionnify()

TODO

simplify(tolerance[, mode])

TODO

removeTrack(track)

TODO

removeEmptyTrack()

Remove tracks without observation

segmentation(afs_input, af_output, ...[, ...])

TODO

split_segmentation(af_output)

Découpe les traces suivant la segmentation définie par le paramètre af_output ET Remplace la trace par les traces splittées s'il y a une segmentation.

noise([sigma, kernel, force, cycle])

TODO

getLenth()

randNTracks(N)

Return a sample of n tracks from the collection.

__init__(TRACES=[])[source]#

TRACES: list of Track

addTrack(track)[source]#

TODO

size()[source]#

TODO

length()[source]#

TODO

duration()[source]#

TODO

getTracks()[source]#

TODO

getTrack(i)[source]#

TODO

getTrackWithTid(tid)[source]#
copy()[source]#

TODO

setTimeZone(zone)[source]#

TODO

convertToTimeZone(zone)[source]#

TODO

frequency(mode='temporal')[source]#

TODO

createSpatialIndex(resolution=None, verbose=True)[source]#

TODO

exportSpatialIndex(filename)[source]#

TODO

importSpatialIndex(filename)[source]#

TODO

getSRID()[source]#

Return the SRID of collection

Return type:

int

Returns:

SRID of current collection

toECEFCoords(base=None)[source]#

TODO

toENUCoords(base=None)[source]#

TODO

toGeoCoords(base=None)[source]#

TODO

toENUCoordsIfNeeded()[source]#

TODO

smooth(constraint=1000.0)[source]#

TODO

summary()[source]#

Print summary (complete wkt below)

toWKT()[source]#

Transforms collection into WKT string, one linestring per track

Return type:

str

addAnalyticalFeature(algorithm, name=None)[source]#

TODO

getAnalyticalFeature(af_name, withNan=True)[source]#
getTimestamps_str(withNan=True)[source]#

Return the timestamps in a list format.

operate(operator, arg1=None, arg2=None, arg3=None)[source]#

TODO

plot(symbols=None, markersize=[4], margin=0.05, append=False)[source]#

TODO

filterOnBBox(bbox)[source]#

TODO

bbox()[source]#

TODO

resample(delta, algo=1, mode=1)[source]#

Resampling tracks with linear interpolation

Parameters:
  • delta – interpolation interval (time in sec if temporal mode is selected, space in meters if spatial).

  • mode (Literal[1, 2]) –

    Mode of interpolation. Available modes are:

    • MODE_SPATIAL (mode=1)

    • MODE_TEMPORAL (mode=2)

Params algorithm:

of interpolation. Available algorithm are :

  • ALGO_LINEAR (algo=1)

  • ALGO_THIN_SPLINES (algo=2)

  • ALGO_B_SPLINES (algo=3)

  • ALGO_GAUSSIAN_PROCESS (algo=4)

NB: In temporal mode, argument may be:

  • an integer or float: interval in seconds

  • a list of timestamps where interpolation should be computed

  • a reference track

_collectionnify()[source]#

TODO

simplify(tolerance, mode=1)[source]#

TODO

removeTrack(track)[source]#

TODO

removeEmptyTrack()[source]#

Remove tracks without observation

segmentation(afs_input, af_output, thresholds_max, mode_comparaison=1)[source]#

TODO

split_segmentation(af_output)[source]#

Découpe les traces suivant la segmentation définie par le paramètre af_output ET Remplace la trace par les traces splittées s’il y a une segmentation.

noise(sigma=5, kernel=None, force=False, cycle=False)[source]#

TODO

getLenth()[source]#
randNTracks(N)[source]#

Return a sample of n tracks from the collection.

Parameters#

N : int

Returns#

TrackCollection with n Tracks.