MERRA2: Cannot open cookies file 'C:/.urs_cookies': Invalid argument
Posted: Fri May 12, 2023 6:40 am America/New_York
Hi,
I have tried downloading a selection of the MERRA DAS 2d constants V5.2.0 (MAC0NXASM) data. I have installed all the prerequisites as suggested here: https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Generate%20Earthdata%20Prerequisite%20Files
I have followed the prodecude propsed here: https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Access%20GES%20DISC%20Data%20Using%20wget%20and%20curl
I have tried both wget and curl but it does not work.
For curl I enter this code in the command prompt:
curl -n -c ~/.urs_cookies -b ~/.urs_cookies -LJO --url https://goldsmr2.gesdisc.eosdis.nasa.gov/opendap/MERRA_MONTHLY/MAC0NXASM.5.2.0/1979/MERRA300.prod.assim.const_2d_asm_Nx.00000000.hdf.nc4?PHIS[0:0][150:200][405:488],SGH[0:0][150:200][405:488],FRLAKE[0:0][150:200][405:488],FRLAND[0:0][150:200][405:488],FRLANDICE[0:0][150:200][405:488],FROCEAN[0:0][150:200][405:488],XDim_EOS[405:488],YDim_EOS[150:200],Time[0:0],TIME,YDim[150:200],XDim[405:488]
I get this error message: "curl: (3) bad range in URL position 143: https://goldsmr2.gesdisc.eosdis.nasa.gov/opendap/MERRA_MONTHLY/MAC0NXASM.5.2.0/1979/MERRA300.prod.assim.const_2d_asm_Nx.00000000.hdf.nc4?PHIS[0:0][150:200][405:488],SGH[0:0][150:200][405:488],FRLAKE[0:0][150:200][405:488],FRLAND[0:0][150:200][405:488],FRLANDICE[0:0][150:200][405:488],FROCEAN[0:0][150:200][405:488],XDim_EOS[405:488],YDim_EOS[150:200],Time[0:0],TIME,YDim[150:200],XDim[405:488]"
And for wget it doesnt let me enter my password (as in I cannot physically type it, the keyboard doesnt work when it asks for my password).
I am very much stuck. I have tried 1,5 days to fix it but without success.
I'd be happy for some help!
Thanks
Best
Sarah
I have tried downloading a selection of the MERRA DAS 2d constants V5.2.0 (MAC0NXASM) data. I have installed all the prerequisites as suggested here: https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Generate%20Earthdata%20Prerequisite%20Files
I have followed the prodecude propsed here: https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Access%20GES%20DISC%20Data%20Using%20wget%20and%20curl
I have tried both wget and curl but it does not work.
For curl I enter this code in the command prompt:
curl -n -c ~/.urs_cookies -b ~/.urs_cookies -LJO --url https://goldsmr2.gesdisc.eosdis.nasa.gov/opendap/MERRA_MONTHLY/MAC0NXASM.5.2.0/1979/MERRA300.prod.assim.const_2d_asm_Nx.00000000.hdf.nc4?PHIS[0:0][150:200][405:488],SGH[0:0][150:200][405:488],FRLAKE[0:0][150:200][405:488],FRLAND[0:0][150:200][405:488],FRLANDICE[0:0][150:200][405:488],FROCEAN[0:0][150:200][405:488],XDim_EOS[405:488],YDim_EOS[150:200],Time[0:0],TIME,YDim[150:200],XDim[405:488]
I get this error message: "curl: (3) bad range in URL position 143: https://goldsmr2.gesdisc.eosdis.nasa.gov/opendap/MERRA_MONTHLY/MAC0NXASM.5.2.0/1979/MERRA300.prod.assim.const_2d_asm_Nx.00000000.hdf.nc4?PHIS[0:0][150:200][405:488],SGH[0:0][150:200][405:488],FRLAKE[0:0][150:200][405:488],FRLAND[0:0][150:200][405:488],FRLANDICE[0:0][150:200][405:488],FROCEAN[0:0][150:200][405:488],XDim_EOS[405:488],YDim_EOS[150:200],Time[0:0],TIME,YDim[150:200],XDim[405:488]"
And for wget it doesnt let me enter my password (as in I cannot physically type it, the keyboard doesnt work when it asks for my password).
I am very much stuck. I have tried 1,5 days to fix it but without success.
I'd be happy for some help!
Thanks
Best
Sarah