pydarn.proc.signal.sigproc

pydarn.proc.signal.sigproc.commonDtv(siglist)[source]

Takes a list of vt sig/sigStruct objects and interpolates them all to a common datetime.datetime grid. The most restrictive range of validtimes and the highest time resolution is used. :params siglist: list of vt sig/sigStruct objects

pydarn.proc.signal.sigproc.detrend(vtsig)[source]

Linearly detrend a vtsig object.

Parameters:vtsig – vtsig object
pydarn.proc.signal.sigproc.dtvToSeconds(dtv, start=None)[source]

Convert a datetime.datetime iterable to a numpy array of seconds from start. :param start: datatime.datetime. If None, then start = dtv[0]. :param dtv: datetime.datetime iterable to convert. :returns sec: numpy.array of seconds from dtv[0].

pydarn.proc.signal.sigproc.interpolate(vtsig, start=None, stop=None, samplePeriod=None, newSigName='interpolated')[source]

Interpolates signal onto a regular grid. :param vtsig: VT sig/sigStruct object to be interpolated :param start: datetime.datetime to start the new grid.

If not set, vtsig.getValidTimes()[0] is used.
Parameters:
  • stop – datetime.datetime to end the new grid. If not set, vtsig.getValidTimes()[1] is used.
  • samplePeriod – Time resolution of the new grid in seconds. If not set, 0.1*vtsig.samplePeriod() is used.
  • newSigName – String name of the attribute of the newly created signal.
pydarn.proc.signal.sigproc

alias of pydarn.proc.signal.sigproc

Previous topic

pydarn.proc.signal.signal

Next topic

pydarn.sdio

This Page