Data Download
Posted: Mon Nov 28, 2022 6:15 am America/New_York
Hello,
I was trying to download surface run-off data, GLDAS. I am new to command-line operations in windows and couldn't figure out the display error.
I am pasting the command and error below, please help. Thanks in advance.
PS C:\Users\Documents> wget -load-cookies C:\Users\Documents\.urs_cookies --save-cookies C:\Users\Documents\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=<my username> --ask-password https://hydro1.gesdisc.eosdis.nasa.gov/daacbin/OTF/HTTP_services.cgiFILENAME=%2Fdata%2FGLDAS%2FGLDAS_NOAH025_M.2.1%2F2000%2FGLDAS_NOAH025_M.A200001.021.nc4"&"BBOX=50.15%2C11.426%2C59.554%2C1.934"&"SERVICE=L34RS_LDAS"&"FORMAT=dGlmLw"&"VERSION=1.02"&"LABEL=GLDAS_NOAH025_M.A200001.021.nc4.SUB.tif"&"SHORTNAME=GLDAS_NOAH025_M"&"VARIABLES=Qs_acc"&"DATASET_VERSION=2.1
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'load-cookies'.
At line:1 char:6
+ wget -load-cookies C:\Users\Documents\.urs_cookies --save-cook ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I was trying to download surface run-off data, GLDAS. I am new to command-line operations in windows and couldn't figure out the display error.
I am pasting the command and error below, please help. Thanks in advance.
PS C:\Users\Documents> wget -load-cookies C:\Users\Documents\.urs_cookies --save-cookies C:\Users\Documents\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=<my username> --ask-password https://hydro1.gesdisc.eosdis.nasa.gov/daacbin/OTF/HTTP_services.cgiFILENAME=%2Fdata%2FGLDAS%2FGLDAS_NOAH025_M.2.1%2F2000%2FGLDAS_NOAH025_M.A200001.021.nc4"&"BBOX=50.15%2C11.426%2C59.554%2C1.934"&"SERVICE=L34RS_LDAS"&"FORMAT=dGlmLw"&"VERSION=1.02"&"LABEL=GLDAS_NOAH025_M.A200001.021.nc4.SUB.tif"&"SHORTNAME=GLDAS_NOAH025_M"&"VARIABLES=Qs_acc"&"DATASET_VERSION=2.1
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'load-cookies'.
At line:1 char:6
+ wget -load-cookies C:\Users\Documents\.urs_cookies --save-cook ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand