首页 > 其他分享 >脉冲星搜索软件 PRESTO 的大致流程-附代码

脉冲星搜索软件 PRESTO 的大致流程-附代码

时间:2023-02-21 10:47:50浏览次数:41  
标签:Lband +% 脉冲星 流程 PRESTO echo date sec duration

PRESTO is a large suite of pulsar search and analysis software developed primarily by Scott Ransom mostly from scratch, and released under the GPL (v2). It was primarily designed to efficiently search for binary millisecond pulsars from long observations of globular clusters (although it has since been used in several surveys with short integrations and to process a lot of X-ray data as well). It is written primarily in ANSI C, with many of the recent routines in Python. According to Steve Eikenberry, PRESTO stands for: PulsaR Exploration and Search TOolkit!

 

1,教程:

https://github.com/scottransom/presto

2,代码:

https://github.com/374365283/Pulsar_Search

source /root/presto.sh
export PRESTO=/usr/local/astrosoft/presto
export INPUT=GBT_Lband_PSR.fil
#readfile $INPUT 
time1=`date +%s`
rfifind -time 2.0 -o Lband $INPUT  
time2=`date +%s`
rfifind -time 1.0 -o Lband $INPUT 
time3=`date +%s`
rfifind -nocompute -time 1.0 -freqsig 6.0 -mask Lband_rfifind.mask -o Lband $INPUT  
time4=`date +%s`
prepdata -nobary -o Lband_topo_DM0.00 -dm 0.0 -mask Lband_rfifind.mask -numout 530000 $INPUT  
time5=`date +%s`
#exploredat Lband_topo_DM0.00.dat 
realfft Lband_topo_DM0.00.dat 
time6=`date +%s`
#explorefft Lband_topo_DM0.00.fft 
accelsearch -numharm 4 -zmax 0 Lband_topo_DM0.00.dat 
time7=`date +%s`
#less -S Lband_topo_DM0.00_ACCEL_0
#jed Lband.birds
cp Lband_rfifind.inf Lband.inf
time8=`date +%s`
makezaplist.py Lband.birds
time9=`date +%s`
#explorefft Lband_topo_DM0.00.fft
echo|prepfold -p 1.0 $INPUT
time10=`date +%s`
echo|DDplan.py -d 500.0 -n 96 -b 96 -t 0.000072 -f 1400.0 -s 32 -r 0.5
time11=`date +%s`
prepsubband -nsub 32 -lodm 0.0 -dmstep 2.0 -numdms 24 -numout 132500 -downsamp 4 -mask Lband_rfifind.mask -o Lband $INPUT 
time12=`date +%s`
cp $PRESTO/tests/dedisp.py .
time13=`date +%s`
python dedisp.py
time14=`date +%s`
mkdir subbands
mv *.sub* subbands/
rm -rf Lband*topo*
time15=`date +%s`
ls *.dat | xargs -n 1 realfft
time16=`date +%s`
ls *.fft | xargs -n 1 zapbirds -zap -zapfile Lband.zaplist -baryv -5.69726e-05
time17=`date +%s`
ls *dat | xargs -n 1 accelsearch -zmax 0
time18=`date +%s`
cp $PRESTO/examplescripts/ACCEL_sift.py .
time19=`date +%s`
python ACCEL_sift.py > cands.txt
time20=`date +%s`
echo|prepfold -accelcand 2 -accelfile Lband_DM62.00_ACCEL_0.cand Lband_DM62.00.dat
time21=`date +%s`
#ls subbands/
echo|prepfold -accelcand 2 -accelfile Lband_DM62.00_ACCEL_0.cand -dm 62 subbands/Lband_DM72.00.sub??
time22=`date +%s`
echo|prepfold -n 64 -nsub 96 -p 0.004621638 -dm 62.0 $INPUT
time23=`date +%s`
single_pulse_search.py *dat
time24=`date +%s`
duration=`echo "$time24-$time1" | bc -l`
echo "total time = $duration sec"
duration=`echo "$time2-$time1" | bc -l`
echo "rfifind1 = $duration sec"
duration=`echo "$time3-$time2" | bc -l`
echo "rfifind2 = $duration sec"
duration=`echo "$time4-$time3" | bc -l`
echo "rfifind3 = $duration sec"
duration=`echo "$time5-$time4" | bc -l`
echo "preparedata = $duration sec"
duration=`echo "$time6-$time5" | bc -l`
echo "realfft = $duration sec"
duration=`echo "$time7-$time6" | bc -l`
echo "accelsearch = $duration sec"
duration=`echo "$time9-$time8" | bc -l`
echo "makezaplist = $duration sec"
duration=`echo "$time10-$time9" | bc -l`
echo "prepfold = $duration sec"
duration=`echo "$time11-$time10" | bc -l`
echo "DDplan = $duration sec"
duration=`echo "$time12-$time11" | bc -l`
echo "prepsubband = $duration sec"
duration=`echo "$time14-$time13" | bc -l`
echo "dedisp = $duration sec"
duration=`echo "$time16-$time15" | bc -l`
echo "realfft = $duration sec"
duration=`echo "$time17-$time16" | bc -l`
echo "zapbirds = $duration sec"
duration=`echo "$time18-$time17" | bc -l`
echo "accelsearch = $duration sec"
duration=`echo "$time20-$time19" | bc -l`
echo "ACCEL_sift = $duration sec"
duration=`echo "$time21-$time20" | bc -l`
echo "prepfold = $duration sec"
duration=`echo "$time22-$time21" | bc -l`
echo "prepfold = $duration sec"
duration=`echo "$time23-$time22" | bc -l`
echo "prepfold = $duration sec"
duration=`echo "$time24-$time23" | bc -l`
echo "single_pulse_search = $duration sec"
View Code

 

标签:Lband,+%,脉冲星,流程,PRESTO,echo,date,sec,duration
From: https://www.cnblogs.com/dejiang/p/17140065.html

相关文章

  • 推荐系统[一]:超详细知识介绍,一份完整的入门指南,解答推荐系统相关算法流程、衡量指标和
    1.推荐算法的初步理解如果说互联网的目标就是连接一切,那么推荐系统的作用就是建立更加有效率的连接,推荐系统可以更有效率的连接用户与内容和服务,节约了大量的时间和成本......
  • RocketMQ - 生产者消息发送流程
    RocketMQ客户端的消息发送通常分为以下3层业务层:通常指直接调用RocketMQClient发送API的业务代码。消息处理层:指RocketMQClient获取业务发送的消息对象后,一系列的参数......
  • day15-SpringMVC执行流程
    SpringMVC执行流程1.SpringMVC执行流程分析图例子(1)创建HaloHandlerpackagecom.li.web.debug;importorg.springframework.stereotype.Controller;importorg.s......
  • 客户端跟redis的一次通信流程
    1.在redis启动初始化的时候,redis会将连接应答处理器跟AE_READABLE事件关联起来,接着如果一个客户端跟redis发起连接,此时会产生一个AE_READABLE事件,然后由连接应答处理......
  • activiti 6 遍历流程任务
    XMLInputFactoryxif=XMLInputFactory.newInstance();List<ProcessDefinition>list=repositoryService.createProcessDefinitionQuery().latestVersi......
  • app上架需要准备什么以及上架流程
     上架前需要准备的材料:众所周知,应用市场主要分为两类,一类是AppStore,另一类是安卓市场。而安卓市场又分为:第三方市场(如:应用宝、360手机助手、豌豆荚),和手机厂商市......
  • 流程控制
    引子流程控制即控制流程,具体指控制程序的执行流程,而程序的执行流程分为三种结构:顺序结构(之前我们写的代码都是顺序结构)、分支结构(用到if判断)、循环结构(用到while与for)一......
  • 完整商业软件的开发流程
    完整商业软件的开发流程1、产品立项,确定要做的内容、效果和收益2、开始产品原型,确定初步逻辑和技术——>需求评审,定开发节点、UI节点3、根据原型出设计图,确定实现细节......
  • Java流程控制
    Java流程控制Scanner对象next():一定要读取到有效字符后才可以结束输入对输入有效字符之前遇到的空白,next()方法会自动将其去掉只有输入有效字符后才能将其后面的......
  • SpringBoot脚手架项目002-004.Spring IOC_权限管理系统_Spring:什么是IOC、Spring Bea
    SpringBoot脚手架项目002__权限管理系统文章目录​​SpringBoot脚手架项目002__权限管理系统​​​​前言​​​​依赖注入的例子​​​​最终我们是怎么来去克服这种问题的......