Skip to content

Commit f657685

Browse files
add VIIRS product to LPDaac
1 parent 324d334 commit f657685

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

configuration/appconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
{
406406
"indexname": "producttype",
407407
"indexlabel": "Product",
408-
"indexvalues": "VIIRS_1d_composite|VIIRS_5d_composite|VNP21A1D|VNP21A1N|VNP15A2H|VNP43MA3",
408+
"indexvalues": "VIIRS_1d_composite|VIIRS_5d_composite|VNP21A1D|VNP21A1N|VNP15A2H|VNP43MA3|VNP43IA3",
409409
"regex": ".*",
410410
"indexvalue": "VIIRS_1d_composite"
411411
}

wrappersnap/launcher/src/main/java/wasdi/dataproviders/LpDaacProviderAdapter.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public String executeDownloadFile(String sFileURL, String sDownloadUser, String
103103
|| sFileName.toUpperCase().startsWith("VNP15A2H")
104104
|| sFileName.toUpperCase().startsWith("MCD43A4")
105105
|| sFileName.toUpperCase().startsWith("MCD43A3")
106-
|| sFileName.toUpperCase().startsWith("VNP43MA3")) {
106+
|| sFileName.toUpperCase().startsWith("VNP43MA3")
107+
|| sFileName.toUpperCase().startsWith("VNP43IA3")) {
107108
WasdiLog.debugLog("LpDaacProviderAdapter.executeDownloadFile: VIIRS product asked for download");
108109
return executeDownloadFromEarthData(sDownloadUrl, sDownloadUser, sDownloadPassword, sSavedFilePath, iMaxRetry);
109110
}
@@ -260,7 +261,11 @@ protected int internalGetScoreForFile(String sFileName, String sPlatformType) {
260261
}
261262
}
262263
if (sPlatformType.equals(Platforms.VIIRS)
263-
&& (sFileName.startsWith("VNP21A1D") || sFileName.startsWith("VNP21A1N") || sFileName.startsWith("VNP15A2H") || sFileName.startsWith("VNP43MA3"))) {
264+
&& (sFileName.startsWith("VNP21A1D")
265+
|| sFileName.startsWith("VNP21A1N")
266+
|| sFileName.startsWith("VNP15A2H")
267+
|| sFileName.startsWith("VNP43MA3")
268+
|| sFileName.startsWith("VNP43IA3"))) {
264269
return DataProviderScores.DOWNLOAD.getValue();
265270
}
266271

wrappersnap/wasdishared/src/main/java/wasdi/shared/queryexecutors/lpdaac/QueryExecutorLpDaac.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class QueryExecutorLpDaac extends QueryExecutor {
4141
as_WASDI_NASA_PRODUCT_MAPPING.put("MCD43A3", "C2278860820-LPCLOUD");
4242
as_WASDI_NASA_PRODUCT_MAPPING.put("VNP15A2H", "C2545314545-LPCLOUD");
4343
as_WASDI_NASA_PRODUCT_MAPPING.put("VNP43MA3", "C2545314605-LPCLOUD");
44+
as_WASDI_NASA_PRODUCT_MAPPING.put("VNP43IA3", "C2545314588-LPCLOUD");
4445
}
4546

4647
public QueryExecutorLpDaac() {
@@ -56,7 +57,8 @@ public String getUriFromProductName(String sProduct, String sProtocol, String sO
5657
|| sProduct.toUpperCase().startsWith("VNP21A1D")
5758
|| sProduct.toUpperCase().startsWith("VNP21A1N")
5859
|| sProduct.toUpperCase().startsWith("VNP15A2H")
59-
|| sProduct.toUpperCase().startsWith("VNP43MA3")) {
60+
|| sProduct.toUpperCase().startsWith("VNP43MA3")
61+
|| sProduct.toUpperCase().startsWith("VNP43IA3")) {
6062
return sOriginalUrl;
6163
}
6264
return null;

0 commit comments

Comments
 (0)