微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Tsfeat 运动轨迹时间分析库

程序名称:Tsfeat

授权协议: MIT

操作系统: Windows

开发语言: Python

Tsfeat 介绍

Tsfeat 是一个能够按照时间顺序分析运动轨迹工具。通常可以运用在气象数据中心的风速分析,股市中的股价的变化等领域。

示例代码

#We open the ligth curve in two different bands
lc_B = FATS.ReadLC_MACHO('lc_1.3444.614.B.mjd')  #58.6272.729 1.3444.614 1.4652.1527  
lc_R = FATS.ReadLC_MACHO('lc_1.3444.614.R.mjd')
#We import the data
[mag, time, error] = lc_B.ReadLC()
[mag2, time2, error2] = lc_R.ReadLC()
#We preprocess the data
preproccesed_data = FATS.Preprocess_LC(mag, time, error)
[mag, time, error] = preproccesed_data.Preprocess()
preproccesed_data = FATS.Preprocess_LC(mag2, time2, error2)
[mag2, time2, error2] = preproccesed_data.Preprocess()
#We synchronize the data
if len(mag) != len(mag2):
    [aligned_mag, aligned_mag2, aligned_time] = FATS.Align_LC(time, time2, mag, mag2, error, error2)
else:
    aligned_mag = mag
    aligned_mag2 = mag2
    aligned_time = time
    
lc = np.array([mag,time,error,mag2,aligned_mag, aligned_mag2, aligned_time])

Tsfeat 官网

https://github.com/shuge/helper_datetime

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐