Getting M2T1NXAER (MERRA-2 PM_{2.5}) via OPeNDAP

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
kodiologist
Posts: 20
Joined: Wed Oct 07, 2020 9:09 am America/New_York
Answers: 0
Endorsed: 1 time

Getting M2T1NXAER (MERRA-2 PM_{2.5}) via OPeNDAP

by kodiologist » Tue Aug 25, 2026 9:51 am America/New_York

Consider this Python script:

Code: Select all

from datetime import datetime
from pydap.client import get_cmr_urls
print(get_cmr_urls(
    doi = '10.5067/KLICLTZ8EM9D',
    time_range = [datetime(2013, 7, 15), datetime(2013, 7, 15)],
    limit = 1000)[0])
It produces the URL:

https://opendap.earthdata.nasa.gov/collections/C1276812830-GES_DISC/granules/M2T1NXAER.5.12.4%3AMERRA2_400.tavg1_2d_aer_Nx.20130715.nc4

But when I visit the URL, I get
Hyrax - Resource Not Found (404)… The specified path 'collections/C1276812830-GES_DISC/granules/M2T1NXAER.5.12.4:MERRA2_400.tavg1_2d_aer_Nx.20130715' does not identify a granule in CMR.
Please let me know if there's some other way to get this dataset (M2T1NXAER) via OPeNDAP, since the service I've been using for the past few years (at https://goldsmr4.gesdisc.eosdis.nasa.gov/opendap/MERRA2/M2T1NXAER.5.12.4 ) has been retired.

Filters:

kodiologist
Posts: 20
Joined: Wed Oct 07, 2020 9:09 am America/New_York
Answers: 0
Endorsed: 1 time

Re: Getting M2T1NXAER (MERRA-2 PM_{2.5}) via OPeNDAP

by kodiologist » Wed Aug 26, 2026 9:36 am America/New_York

Turns out it's just a file-extension thing. If I add another ".nc4", yielding

https://opendap.earthdata.nasa.gov/collections/C1276812830-GES_DISC/granules/M2T1NXAER.5.12.4%3AMERRA2_400.tavg1_2d_aer_Nx.20130715.nc4.nc4

, it works fine.

Post Reply