Skip to content

Commit

Permalink
Hotfix for copernicus node
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 14, 2024
1 parent 1c5b8f2 commit 26c630c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public abstract class CopernicusCDSDatacube extends ChunkedDatacubeRepository {

public static final String CDS_USER_NUMBER_PROPERTY = "klab.copernicus.cds.user";
public static final String CDS_API_KEY_PROPERTY = "klab.copernicus.cds.apikey";
public static final String CDS_API_VERSION = "1_1";
private int TIMEOUT_SECONDS = 30;
private static Pattern pattern = Pattern.compile(".*(_[0-9]{8}_).*");

Expand Down Expand Up @@ -125,6 +126,7 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire
body.put("year", "" + date.getYear());
body.put("month", this.monts[(date.getMonth() - 1) / 3]);
body.put("day", this.days);
body.put("version", CDS_API_VERSION);

configureRequest(variable, body);

Expand Down

0 comments on commit 26c630c

Please sign in to comment.