Browse Source

Credentials and proxy for accessing NEMO data can only be in the configuration file.

interpolate
Michael Uleysky 3 years ago
parent
commit
ba994af2ca
  1. 10
      src/odm.cpp

10
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))
{

Loading…
Cancel
Save