Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mhidas authored Feb 22, 2021
1 parent bb2668f commit 9f8106c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions aodntools/timeseries_products/aggregated_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,18 @@ def main_aggregator(files_to_agg, var_to_agg, site_code, input_dir='', output_di
if __name__ == "__main__":

parser = argparse.ArgumentParser(description="Aggregate ONE variable from ALL instruments from ALL deployments from ONE site")
parser.add_argument('--site', dest='site_code', help='site code, like NRMMAI', required=True)
parser.add_argument('--var', dest='varname', help='variable to aggregate, like TEMP', required=True)
parser.add_argument('--files', dest='filenames',
parser.add_argument('site_code', help='site code, like NRSMAI')
parser.add_argument('varname', help='variable to aggregate, like TEMP')
parser.add_argument('filenames',
help='name of the file that contains the source URLs (relative to inpath, if given)')
help='name of the file that contains the source URLs (relative to inpath, if given)',
required=True)
parser.add_argument('--indir', dest='input_dir', help='base path of input files', default='', required=False)
parser.add_argument('--outdir', dest='output_dir', help='path where the result file will be written. Default ./',
parser.add_argument('-i', '--input_dir', help='base path of input files', default='')
parser.add_argument('-o', '--output_dir', help='path where the result file will be written. Default ./',
default='./')
default='./', required=False)
parser.add_argument('--download_url', dest='download_url', help='path to the download_url_prefix',
parser.add_argument('--download_url', help='path to the download_url_prefix', default='')
parser.add_argument('--opendap_url', help='path to the opendap_url_prefix', default='')
default='', required=False)
parser.add_argument('--opendap_url', dest='opendap_url', help='path to the opendap_url_prefix',
default='', required=False)
Expand Down

0 comments on commit 9f8106c

Please sign in to comment.