|
|
@ -61,13 +61,9 @@ int main(int argc, char** argv) |
|
|
|
NEMOData ndata; |
|
|
|
NEMOData ndata; |
|
|
|
MString dataset = args["dataset"]; |
|
|
|
MString dataset = args["dataset"]; |
|
|
|
if(!dataset.Exist()) dataset = "DT"; |
|
|
|
if(!dataset.Exist()) dataset = "DT"; |
|
|
|
MString cred = args["cred"]; |
|
|
|
|
|
|
|
if(!cred.Exist()) cred = GPL.ParameterSValue("COPERNICUS_USER", ""); |
|
|
|
MString cred = GPL.ParameterSValue("COPERNICUS_USER", ""); |
|
|
|
MString proxy; |
|
|
|
MString proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); |
|
|
|
if(args.contains("proxy")) |
|
|
|
|
|
|
|
MString proxy = args["proxy"]; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!ndata.Open(dataset, cred, proxy)) |
|
|
|
if(!ndata.Open(dataset, cred, proxy)) |
|
|
|
{ |
|
|
|
{ |
|
|
|