|
| 1 | +#!/usr/bin/env python3 |
1 | 2 | import numpy as np |
2 | 3 | import bisect |
3 | 4 | import argparse |
@@ -319,16 +320,16 @@ def grid_variable(input_file, VoI, depth_bins=None, max_separation=50, depth_bin |
319 | 320 |
|
320 | 321 | if __name__ == "__main__": |
321 | 322 | parser = argparse.ArgumentParser(description="Gridded time series: interpolate ONE variable from ALL instruments from ALL deployments from ONE site into 1hr timestamps and fixed depth bins") |
322 | | - parser.add_argument('-var', dest='var', help='name of the variable to concatenate. Like TEMP, PSAL', default='TEMP', required=False) |
323 | | - parser.add_argument('-file', dest='filename', help='name of the Hourly Time Series Product file that contains the data', default=None, required=False) |
324 | | - parser.add_argument('-depth_bins', dest='depth_bins', help='list of depth where the VoI will be interpolated', default=None, nargs='+', required=False) |
325 | | - parser.add_argument('-max_separation', dest='max_separation', help='maximum difference between instruments to allow interpolation', default=50, required=False) |
326 | | - parser.add_argument('-depth_bins_increment', dest='depth_bins_increment', help='increment in meters for the automatic generated depth bins', default=10, required=False) |
327 | | - parser.add_argument('-indir', dest='input_dir', help='base path of input file. Default .', default='.', |
| 323 | + parser.add_argument('--var', dest='var', help='name of the variable to concatenate. Like TEMP, PSAL', default='TEMP', required=False) |
| 324 | + parser.add_argument('--file', dest='filename', help='name of the Hourly Time Series Product file that contains the data', default=None, required=False) |
| 325 | + parser.add_argument('--depth_bins', dest='depth_bins', help='list of depth where the VoI will be interpolated', default=None, nargs='+', required=False) |
| 326 | + parser.add_argument('--max_separation', dest='max_separation', help='maximum difference between instruments to allow interpolation', default=50, required=False) |
| 327 | + parser.add_argument('--depth_bins_increment', dest='depth_bins_increment', help='increment in meters for the automatic generated depth bins', default=10, required=False) |
| 328 | + parser.add_argument('--indir', dest='input_dir', help='base path of input file. Default .', default='.', |
328 | 329 | required=False) |
329 | | - parser.add_argument('-outdir', dest='output_dir', help='path where the result file will be written. Default .', |
| 330 | + parser.add_argument('--outdir', dest='output_dir', help='path where the result file will be written. Default .', |
330 | 331 | default='.', required=False) |
331 | | - parser.add_argument('-config', dest='config_file', help='JSON configuration file', default=None, required=False) |
| 332 | + parser.add_argument('--config', dest='config_file', help='JSON configuration file', default=None, required=False) |
332 | 333 | args = parser.parse_args() |
333 | 334 |
|
334 | 335 | if args.config_file: |
|
0 commit comments