-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathread_k_file.py
executable file
·43 lines (34 loc) · 1.85 KB
/
read_k_file.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
import numpy as np
import Misc.Fnml as Fnml
def k_file(filename):
nml = Fnml.read_Fnml(filename)
nml['LPNAME'] =['PSF1A', 'PSF2A', 'PSF3A', 'PSF4A', 'PSF5A',
'PSF6NA', 'PSF7NA','PSF8A', 'PSF9A', 'PSF1B',
'PSF2B', 'PSF3B', 'PSF4B', 'PSF5B', 'PSF6NB',
'PSF7NB', 'PSF8B', 'PSF9B', 'PSI11M','PSI12A',
'PSI23A', 'PSI34A','PSI45A','PSI58A','PSI9A',
'PSF7FA', 'PSI7A', 'PSF6FA','PSI6A', 'PSI12B',
'PSI23B', 'PSI34B','PSI45B','PSI58B','PSI9B',
'PSF7FB', 'PSI7B', 'PSF6FB','PSI6B', 'PSI89FB',
'PSI89NB','PSI1L', 'PSI2L', 'PSI3L']
nml['MPNAM2'] =['MPI11M067','MPI1A067', 'MPI2A067', 'MPI3A067', 'MPI4A067 ',
'MPI5A067', 'MPI8A067', 'MPI9A067', 'MPI79A067', 'MPI7FA067 ',
'MPI7NA067','MPI67A067','MPI6FA067','MPI6NA067', 'MPI66M067 ',
'MPI1B067', 'MPI2B067', 'MPI3B067', 'MPI4B067', 'MPI5B067 ',
'MPI8B067', 'MPI89B067','MPI9B067', 'MPI79B067', 'MPI7FB067 ',
'MPI7NB067','MPI67B067','MPI6FB067','MPI6NB067',
'MPI8A322', 'MPI89A322','MPI9A322', 'MPI79FA322','MPI79NA322',
'MPI7FA322','MPI7NA322','MPI67A322','MPI6FA322', 'MPI6NA322 ',
'MPI66M322','MPI6NB322','MPI6FB322','MPI67B322', 'MPI7NB322 ',
'MPI7FB322','MPI79B322','MPI9B322', 'MPI89B322', 'MPI8B322 ',
'MPI5B322', 'MPI4B322', 'MPI3B322', 'MPI2B322', 'MPI1B322 ',
'MPI11M322','MPI1A322', 'MPI2A322', 'MPI3A322', 'MPI4A322 ',
'MPI5A322', 'MPI1U157', 'MPI2U157', 'MPI3U157', 'MPI4U157',
'DSL1U180', 'DSL2U180', 'DSL3U180', 'DSL4U157',
'MPI5U157', 'MPI6U157', 'MPI7U157', 'DSL5U157', 'DSL6U157',
'MPI1L180', 'MPI2L180', 'MPI3L180']
# 'DSL1U180', 'DSL2U180', 'DSL3U180', 'DSL4U157',
# 'DSL5U157', 'DSL6U157'
nml['DSL_areas'] = [0.148739625718, 0.146993802189, 0.189430809952, 0.0385235076433,
0.203298492472, 0.218204272396]
return nml