-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetting2.py
59 lines (48 loc) · 1.54 KB
/
setting2.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
# -*- coding: utf-8 -*-
#YYYYMMDD_HHMMSS_usrp%d_xxxxkHz.dat
# 芬兰数据
import numpy as np
refname = 'finland_cleanStatic_' # Simulated
datname = '2023_'
descriptor = 'test1_'
fs = 26e6
fi = 6.39e6
datatype = np.dtype([('i', np.int8)])
cudarecv_handoff = 'handoff_params_usrp6' # Simulated
ip_list = [6] # Simulated
start_time = 0
# this will run from start_time to (start_time+proc_time)
proc_time = 40
max_lead_time = 0
weekno = 2258 # If running simulated data
acq_only = False
# prn_list = [10, 11, 13, 15, 17, 19, 20, 24, 28, 30] # Simulated
prn_list = [13, 15, 17, 24, 28] # Simulated
# prn_list = [15] # Simulated
datpath = 'D:/academic/DPEdata/'
predir = './pre-simulator/finland_cleanStatic/'
postdir = './post-simulator/finland_cleanStatic/'
### No need to change: house keeping ###
descriptor = descriptor + '_%dUSRP' %len(ip_list)
import os
dir_req = [datpath,predir,postdir]#,'netcsv','html']
for d in dir_req:
if not os.path.exists(d):
os.makedirs(d)
### More housekeeping...
if start_time < 4:
init_time = start_time
elif start_time < (max_lead_time + 4):
init_time = 4
else:
init_time = start_time - max_lead_time
run_time = proc_time + (start_time - init_time)
prefix = datname + '_skip%d_start%d/'%(init_time,start_time)+'6605_7200/'
prepath = predir + prefix
postfix = descriptor + 'proc%ds_6605_7200/'%run_time
postpath = postdir + postfix
try:
os.makedirs(postpath)
except:
if os.listdir(postpath):
print('Warning:',postpath,'not an empty directory.')