Duplicate download with camsdownload tool

name: General Issue (FA)
about: Use this template for reporting an anomaly.

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues and build/installation issues on GitHub.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): HAL
  • Maja installed from (source or binary): binary 4.2.7
  • Maja version (use command below):
  • Maja commit sha (if Maja is installed from source):
  • Python version (From binpkg or custom):
  • Complementary info (i.e. GCC/Compiler version)

Describe the current behavior

camsdownload duplicates downloading files : 2 times for both 00:00 and 12:00 for each day. As an example :

Number of days = 11
==================================
Downloading files for date 2021-06-20 00:00:00
==================================
00
Current_date = 20210620
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210620UTC000000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210620UTC000000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210620UTC000000.nc         
Current_date = 20210620                                                                       
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210620UTC000000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210620UTC000000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210620UTC000000.nc         
12                                                                                            
Current_date = 20210620
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210620UTC120000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210620UTC120000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210620UTC120000.nc         
Current_date = 20210620                                                                       
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210620UTC120000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210620UTC120000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210620UTC120000.nc         
==================================                                                            
Downloading files for date 2021-06-21 00:00:00
==================================
00
Current_date = 20210621
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210621UTC000000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210621UTC000000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210621UTC000000.nc         
Current_date = 20210621                                                                       
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210621UTC000000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210621UTC000000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210621UTC000000.nc         
HTTPSConnectionPool(host='ads.atmosphere.copernicus.eu', port=443): Max retries exceeded with url: /api/v2/tasks/7a7c33ef-7d42-4955-814b-a5d62eccb709 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5fa46c10>: Failed to establish a new connection: [Errno -2] Name or service not known'))
12
Current_date = 20210621
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210621UTC120000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210621UTC120000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210621UTC120000.nc         
Current_date = 20210621                                                                       
Download new cams
Nom fichier de sortie AOT : /home/colinj/data/cams/CAMS_AOT_20210621UTC120000.nc
Nom fichier de sortie RH : /home/colinj/data/cams/CAMS_RH_20210621UTC120000.nc                
Nom fichier de sortie mixRatios : /home/colinj/data/cams/CAMS_MR_20210621UTC120000.nc 

Describe the expected behavior

Urgency/Criticity

  • Urgency (Select Low/Medium/High): Medium
  • Criticity (Select Low/Medium/High): Medium

Code to reproduce the issue

Any test on camsdownload with the new API.

Correction

(Optional) Provide a version number (Major.Minor.Patch, e.g. 3.2.1) when the correction shall be introduced.