Attachment 'call_eROSITA_LS.py'
Download 1 ##in bash shell on ds machines: source /utils/anaconda-setup.sh
2
3 import eROSITA_LS
4
5 ## eSASS LC file, mandatory input parameter (output from SRCTOOL)
6
7 lcfil="sine_am0.497_pe5.9_040_LightCurve_source_1.fits"
8
9 ##optional period search input parameters (default: pe_min=0.4,pe_max=11.0,nper=1e5)
10 pe_min=0.6
11 pe_max=12.
12 nper=2e5
13
14 #evaluation of confidence levels, optional (default: "yes")
15 with_cl="yes"
16
17 #nb of simulations for CL measurements when with_cl="yes", optional (default: 100)
18 nbsim=100
19
20 bestper,std,zzz=eROSITA_LS.eLS(lcfil,pe_min=pe_min,pe_max=pe_max,nper=nper,with_cl=with_cl,nbsim=nbsim)
21
22 print 'Best period (s):', bestper
23 print 'std of gaussian (s):', std
24 print 'Confidence levels:',zzz
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.