-
Notifications
You must be signed in to change notification settings - Fork 3
/
mpl2nc.1
117 lines (95 loc) · 2.56 KB
/
mpl2nc.1
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
.TH mpl2nc 1 08/21/2023
.SH NAME
mpl2nc \- convert Sigma Space Micro Pulse Lidar (MPL) data files and afterpulse, overlap and dead time correction files to NetCDF
.SH SYNOPSIS
.B mpl2nc
.RI "[-a " afterpulse ]
.RI "[-d " dead_time ]
[-h]
.RI "[-o " overlap ]
[-q]
[-v]
.RI [ input ]
.I output
.SH DESCRIPTION
.B mpl2nc
is a program for converting binary MPL files to NetCDF.
The converted variables closely follow those in the binary files.
Raw lidar backscatter is stored in the
.B channel_1
(cross-polarized) and
.B channel_2
(co-polarized) variables.
Normalized relative backscatter (NRB) is calculated from the raw backscatter (experimental).
If afterpulse, overlap and dead time correction files are supplied, the corrections are applied when calculating NRB.
.IR input
is an input
.I .mpl
file or a directory containing
.I .mpl
files.
.IR output
is an output
.I .nc
file or a directory where the resulting
.I .nc
files are written.
If
.I input
is not specified, only the correction files are converted and written to the
.I output
.I .nc
file.
.SH OPTIONS
.TP
.RI "-a " afterpulse
Afterpulse correction file
.RI ( .bin ).
.TP
.RI "-d " dead_time
Dead time correction file
.RI ( .bin ).
.IP -h
Show help message and exit.
.TP
.RI "-o " overlap
Overlap correction file
.RI ( .bin ).
.IP -q
Run quietly (suppress output).
.IP -v
Show version number and exit.
.SH EXAMPLES
.B mpl2nc 201803040300.mpl 201803040300.nc
Convert
.I 201803040300.mpl
to
.IR 201803040300.nc .
.B mpl2nc in out
Convert MPL files in the directory
.I in
to NetCDF files in the directory
.IR out .
.B mpl2nc -a MMPL5054_Afterpulse_201903220500.bin -o MMPL5054_Overlap_201903270700.bin -d MMPL5054_SPCM34184_Deadtime7.bin 201803040300.mpl 201803040300.nc
Convert
.I 201803040300.mpl
to
.I 201803040300.nc
using correction files for afterpulse, overlap and dead time.
.B mpl2nc -a MMPL5054_Afterpulse_201903220500.bin -o MMPL5054_Overlap_201903270700.bin -d MMPL5054_SPCM34184_Deadtime7.bin in out
Convert MPL files in the directory
.I in
to NetCDF files in the directory
.I out
using correction files for afterpulse, overlap and dead time.
.B mpl2nc -a MMPL5054_Afterpulse_201903220500.bin -o MMPL5054_Overlap_201903270700.bin -d MMPL5054_SPCM34184_Deadtime7.bin calibration.nc
Convert afterpulse, overlap and dead time correction files to the NetCDF file
.IR calibration.nc .
.SH COPYRIGHT
Copyright (C) 2018-2023 Peter Kuma.
.PP
This program is available under the terms of an MIT license (see LICENSE.md in the distribution).
.SH SEE ALSO
See <https://github.com/peterkuma/mpl2nc>
for more information about
.BR mpl2nc .