Sorry if this error has been addressed before but i could not find a past conversation with this type of error.
I am getting an error during the correct troposphere step. I am using the Pyaps method and trying to download ERA5 weather model data. I have set up the model.cfg file to include my CDS upi and key. But when I try to run it, for some reason it is trying to download the wrong date. For example in the error below the grib file that I want to download is ERA5_S50_S30_E170_E190_20170227_17.grb - but it recognises it as year 2019, month 0 and day 04?
Has anyone come across an issue like this before and can help me figure out where I am going wrong.
(mintpy) mcoo951@sc-cer00279:~/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy$ smallbaselineApp.py input.txt --dostep correct_troposphere
MintPy release version v1.3.0-34, release date 2021-05-22
--RUN-at-2021-05-31 12:16:54.957237--
Current directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy
Run routine processing with smallbaselineApp.py on steps: ['correct_troposphere']
Remaining steps: ['deramp', 'correct_topography', 'residual_RMS', 'reference_date', 'velocity', 'geocode', 'google_earth', 'hdfeos5']
--------------------------------------------------
Project name: input
Go to work directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy
read custom template file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/input.txt
update default template based on input custom template
No new option value found, skip updating /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/smallbaselineApp.cfg
read default template file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/smallbaselineApp.cfg
******************** step - correct_troposphere ********************
Atmospheric correction using Weather Re-analysis dataset (PyAPS, Jolivet et al., 2011)
Weather Re-analysis dataset: ERA5
tropo_pyaps3.py -f /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/timeseries.h5 --model ERA5 -g /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/inputs/geometryRadar.h5 -w /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/WEATHER_DIR
weather model: ERA5 - dry (hydrostatic) and wet delay
weather directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/WEATHER_DIR
output tropospheric delay file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/inputs/ERA5.h5
output corrected time-series file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/timeseries_ERA5.h5
read dates/time info from file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/timeseries.h5
time of cloest available product: 17:00 UTC
make directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/WEATHER_DIR/ERA5
------------------------------------------------------------------------------
downloading weather model data using PyAPS ...
number of grib files to download: 105
------------------------------------------------------------------------------
Downloading 1 of 105: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/WEATHER_DIR/ERA5/ERA5_S50_S30_E170_E190_20170227_17.grb
{'product_type': 'reanalysis', 'format': 'grib', 'variable': ['geopotential', 'temperature', 'specific_humidity'], 'pressure_level': ['1', '2', '3', '5', '7', '10', '20', '30', '50', '70', '100', '125', '150', '175', '200', '225', '250', '300', '350', '400', '450', '500', '550', '600', '650', '700', '750', '775', '800', '825', '850', '875', '900', '925', '950', '975', '1000'], 'year': '2019', 'month': '00', 'day': '04', 'time': '17:00', 'area': '-30.00/170.00/-50.00/190.00'}
2021-05-31 12:16:56,938 INFO Welcome to the CDS
2021-05-31 12:16:57,221 INFO Request is queued
2021-05-31 12:16:58,498 INFO Request is failed
2021-05-31 12:16:58,498 ERROR Message: an internal error occurred processing your request
2021-05-31 12:16:58,498 ERROR Reason: internal error
2021-05-31 12:16:58,498 ERROR Traceback (most recent call last):
2021-05-31 12:16:58,498 ERROR File "/opt/cds/cdsinf/python/lib/cdsinf/runner/dispatcher.py", line 160, in _consume
2021-05-31 12:16:58,498 ERROR result = handle_locally()
2021-05-31 12:16:58,498 ERROR File "/opt/cds/cdsinf/python/lib/cdsinf/runner/dispatcher.py", line 207, in <lambda>
2021-05-31 12:16:58,498 ERROR lambda: self.handle_request(context, request_data),
2021-05-31 12:16:58,499 ERROR File "/opt/cds/cdsinf/python/lib/cdsinf/runner/mappingprocessor.py", line 50, in handle_request
2021-05-31 12:16:58,499 ERROR return self.mapping_engine.run(cdsinf, request_data)
2021-05-31 12:16:58,499 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/mapping.py", line 312, in run
2021-05-31 12:16:58,499 ERROR request['specific'] = apply_mapping(specific, mapping)
2021-05-31 12:16:58,499 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/mapping.py", line 257, in apply_mapping
2021-05-31 12:16:58,499 ERROR options.get("date_format", "%Y-%m-%d"))
2021-05-31 12:16:58,499 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/mapping.py", line 186, in expand_dates
2021-05-31 12:16:58,499 ERROR raise Exception("No valid dates from year=%s month=%s day=%s" % (years, months, days))
2021-05-31 12:16:58,499 ERROR Exception: No valid dates from year=[2019] month=[0] day=[4]
WARNING: the 1 attampt to download failed, retry it.
Thanks,
Matt