From ba994af2ca3ae6bb6600dda6dfcfe7dc97940454 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Fri, 10 Jun 2022 14:10:52 +1000 Subject: [PATCH] Credentials and proxy for accessing NEMO data can only be in the configuration file. --- src/odm.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/odm.cpp b/src/odm.cpp index 068ef66..b32f3d6 100644 --- a/src/odm.cpp +++ b/src/odm.cpp @@ -61,13 +61,9 @@ int main(int argc, char** argv) NEMOData ndata; MString dataset = args["dataset"]; if(!dataset.Exist()) dataset = "DT"; - MString cred = args["cred"]; - if(!cred.Exist()) cred = GPL.ParameterSValue("COPERNICUS_USER", ""); - MString proxy; - if(args.contains("proxy")) - MString proxy = args["proxy"]; - else - proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); + + MString cred = GPL.ParameterSValue("COPERNICUS_USER", ""); + MString proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); if(!ndata.Open(dataset, cred, proxy)) {