-
Notifications
You must be signed in to change notification settings - Fork 1
/
paths.py
72 lines (59 loc) · 2.03 KB
/
paths.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
'''
Contains all paths used by different modules, making it easy to make changes.
File structure:
files/
analysis/
results/
data/
ephemerides/
background/
templates/
antennapatterns/
vectors/
remote/
source/
ephemerides/
plots/
'''
import os
leafList = (
'analysis/results/',
'analysis/sigma/',
'data/ephemerides/',
'background/',
'templates/antennapatterns',
'templates/vectors',
'plots/'
)
def makestructure():
print 'Creating file structure:'
# create files/
for dir in leafList:
try:
os.makedirs('files/' + dir)
print dir
except OSError:
print 'Error: files/%(dir)s already exists' % locals()
# Antenna patterns
psrlist = 'files/templates/psrlist.txt' # list of pulsars
ap = 'files/templates/antennapatterns/' # antenna patterns
# Data
rhB = 'files/background/' # background heterodynes
originalData = '../../matthew/analyses/S6_all/results' # 'files/remote/source'
importedData = 'files/data/finehet_' # original data in DataFrame
# Detector
vectors = 'files/templates/vectors/' # detector and wave vectors
# Source
textfromATNF = 'files/templates/psrcat.txt' # download from ATNF
psrcat = 'files/templates/pulsar_catalogue' # pulsar data in DF
psrextra = 'config/psrextra.txt' # polarization and inclination angles
psrlist = 'files/templates/psrlist.txt' # names of PSR names to analyze
# Analysis
sigma = 'files/analysis/sigma/' # day-long standard deviation
results = 'files/analysis/results/' # background h_rec and significance
tmat = 'files/analysis/tmat' # basis transformation matrix
# Ephemerides
eph = 'files/remote/ephemerides/' #'usr/share/lalpulsar/'
eph_local = 'files/data/ephemerides/' # imported ephemerides in HDF5 format
# Plots
plots = 'files/plots/'