blob: 8a803526488ec877fc8f95f66d40c7acffb5a5b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python
import numpy as np
import h5py
import sys
fh = h5py.File(sys.argv[1], 'r')
gains = fh['/data/data'].value
fh.close()
satns = np.ones_like(gains) * 13000
satns[gains > 4] = 60000
fh = h5py.File('saturation_map.h5', 'w')
fh.create_dataset('/data/data', data=satns)
fh.close()
|