diff --git a/README.rst b/README.rst index 3e9c47459d0358c0b90ae90f45c5862e066df891..42607ce1ea9a1047756b9cdfba75b0d9396481b0 100644 --- a/README.rst +++ b/README.rst @@ -78,6 +78,9 @@ needs to be created with two defined strings one called user and the other calle **IMPORTANT** This will create a py file in the right place with the parameters required to download CMEMS, the password is stored as plain text so please do not reuse any existing password! +PyNEMO creates a log file be default, this provided info, warning and error messages. By default this is called nrct.log and is saved in the directory where pynemo is run from. (usually /PyNEMO) +New runs are appended onto the end of the log file so it will periodically need to be delelted to reduce the size of the log. + **Additional NOTES** The above path for Java Home was valid for a Macbook Pro 2015 with macOS Catalina and Java SDK 13.0.2 diff --git a/inputs/namelist_cmems.bdy b/inputs/namelist_cmems.bdy index 531ad6499faa7cf2681b47786df3aacc2056b77d..2883afb3daff2578d81827e84aaeea438b16c236 100644 --- a/inputs/namelist_cmems.bdy +++ b/inputs/namelist_cmems.bdy @@ -56,7 +56,7 @@ sn_cmems_dir = '/Users/thopri/Projects/PyNEMO/inputs/' ! where to download CMEMS input files (static and variable) ln_download_static = .false. ln_subset_static = .false. - nn_num_retry = 1 ! how many times to retry CMEMS download after non critical errors? + nn_num_retry = 4 ! how many times to retry CMEMS download after non critical errors? !------------------------------------------------------------------------------ ! CMEMS MOTU Configuration (for Boundary Data) !------------------------------------------------------------------------------ diff --git a/pynemo/nemo_bdy_dl_cmems.py b/pynemo/nemo_bdy_dl_cmems.py index 54fcbc5e50cdc1283e8541fd55bdc1604333e08a..616517ce0c66c2d6a33a1fe000e2dd6f04c63390 100644 --- a/pynemo/nemo_bdy_dl_cmems.py +++ b/pynemo/nemo_bdy_dl_cmems.py @@ -288,7 +288,7 @@ def request_cmems(args, date_min, date_max): line = line.replace("[ INFO]", "") logger.info(line) if 'Error' in line: - return 'Error found in CMEMS download report, please check downloaded data' + return line if 'Done' in line: logger.info('download of request data file for variable ' + ' '.join(grids[key]) + ' successful') if p.returncode != 0: