Skip to content

Commit 9f8106c

Browse files
authored
Apply suggestions from code review
1 parent bb2668f commit 9f8106c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

aodntools/timeseries_products/aggregated_timeseries.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,18 @@ def main_aggregator(files_to_agg, var_to_agg, site_code, input_dir='', output_di
422422
if __name__ == "__main__":
423423

424424
parser = argparse.ArgumentParser(description="Aggregate ONE variable from ALL instruments from ALL deployments from ONE site")
425-
parser.add_argument('--site', dest='site_code', help='site code, like NRMMAI', required=True)
426-
parser.add_argument('--var', dest='varname', help='variable to aggregate, like TEMP', required=True)
427-
parser.add_argument('--files', dest='filenames',
425+
parser.add_argument('site_code', help='site code, like NRSMAI')
426+
parser.add_argument('varname', help='variable to aggregate, like TEMP')
427+
parser.add_argument('filenames',
428+
help='name of the file that contains the source URLs (relative to inpath, if given)')
428429
help='name of the file that contains the source URLs (relative to inpath, if given)',
429430
required=True)
430-
parser.add_argument('--indir', dest='input_dir', help='base path of input files', default='', required=False)
431-
parser.add_argument('--outdir', dest='output_dir', help='path where the result file will be written. Default ./',
431+
parser.add_argument('-i', '--input_dir', help='base path of input files', default='')
432+
parser.add_argument('-o', '--output_dir', help='path where the result file will be written. Default ./',
433+
default='./')
432434
default='./', required=False)
433-
parser.add_argument('--download_url', dest='download_url', help='path to the download_url_prefix',
435+
parser.add_argument('--download_url', help='path to the download_url_prefix', default='')
436+
parser.add_argument('--opendap_url', help='path to the opendap_url_prefix', default='')
434437
default='', required=False)
435438
parser.add_argument('--opendap_url', dest='opendap_url', help='path to the opendap_url_prefix',
436439
default='', required=False)

0 commit comments

Comments
 (0)