Page 1 of 1

Errors when using wget to download MERR2 data

Posted: Fri May 05, 2023 4:39 pm America/New_York
by makorb
Hi y'all,
I've been trying to download subsets of the MERRA2 data (selecting the U2M and V2M variables) through OPeNDAP (following along with this resource: I have made sure to generate the prerequisite Earthdata files (according to this source: and double checked for errors (using this source:

I am working on a MacOSX BigSur computer and I have been successfully able to download the example data, SeaWiFS Deep Blue Aerosol Level3 gridded daily at 1x1 degree resolution that was included in the tutorial ( However, when I try to input my own opendap url ([0:1:23][0:1:360][0:1:575]), my download fails.

I run the following line:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies[0:1:23][0:1:360][0:1:575]

And get the following:
--2023-05-05 13:38:37--[0:1:23][0:1:360][0:1:575]
Resolving ( 2001:4d0:241a:4041::95,
Connecting to (|2001:4d0:241a:4041::95|:443... failed: Network is unreachable.
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 403 403
2023-05-05 13:38:44 ERROR 403: 403

Could someone help me figure out where I am going wrong?
Thanks so much!

Re: Errors when using wget to download MERR2 data

Posted: Fri May 05, 2023 4:56 pm America/New_York
by GES DISC - mgreene
A subject matter expert has been contacted and we will get back to you as soon as possible.
In the meantime, please take a look at the following Data Access instructions.


Re: Errors when using wget to download MERR2 data

Posted: Mon May 08, 2023 11:04 am America/New_York
by GES DISC - mgreene
Dear makorb,

Thanks for your interest in MERRA-2 data.

The OPenDAP operator was missing in your data URL which caused the failure. Please try:[0:1:23][0:1:360][0:1:575]

Note that the first nc4 is the MERRA-2 data format, and the second nc4 is the OPeNDAP operator.

Instead of manually constructing the data URL for OPeNDAP, We recommend using the subset interface to avoid URL constructing errors and handling the filename changes for the reprocessed data. Here is how to do it:

* start from

* Search the product name, in your case, M2T1NXSLV_5.12.4

* Click on 'Subset/Getdata'

* Select the download Method as 'Get File Subsets using OPeNDAP' or 'Get File Subsets using the GES DISC Subsetter' for subsetting the vertical dimension of 3-dimensional data

* select temporal range, spatial range
* select variables
* click 'Get Data'
* click and get 'Download Links List', and follow downloading instructions

The MERRA-2 data reprocessing information page:

Records of MERRA-2 Data Reprocessing and Service Changes

Hope this help,