diff --git a/earthaccess/daac.py b/earthaccess/daac.py index 31a3c721..896ffdfa 100644 --- a/earthaccess/daac.py +++ b/earthaccess/daac.py @@ -94,6 +94,15 @@ "s3-credentials": "https://data.laadsdaac.earthdatacloud.nasa.gov/s3credentials", "eulas": [], }, + { + "short-name": "ASDC", + "name": "Atmospheric Science Data Center", + "homepage": "https://asdc.larc.nasa.gov/", + "cloud-providers": ["LARC_CLOUD"], + "on-prem-providers": ["LARC_ASDC"], + "s3-credentials": "https://data.asdc.earthdata.nasa.gov/s3credentials", + "eulas": [], + }, ] @@ -106,6 +115,7 @@ "GHRC_DAAC", "ORNL_CLOUD", "LAADS", + "LARC_CLOUD", ] # Some testing urls behind EDL @@ -116,6 +126,7 @@ "https://hydro1.gesdisc.eosdis.nasa.gov/data/GLDAS/GLDAS_NOAH10_M.2.0/1948/", "https://e4ftl01.cr.usgs.gov//DP114/MOTA/MCD43A3.006/2000.02.24/MCD43A3.A2000055.h15v07.006.2016101151720.hdf.xml", "https://daac.ornl.gov/daacdata/npp/grassland/NPP_BCN/data/bcn_cli.txt", + "https://data.asdc.earthdata.nasa.gov/asdc-prod-protected/FIELDCAMPAIGN/TRACE/TRACE-A_001/TRACE-A-tra11_90.m.Z", ] diff --git a/tests/unit/test_collection_queries.py b/tests/unit/test_collection_queries.py index 66511117..9a6b4861 100644 --- a/tests/unit/test_collection_queries.py +++ b/tests/unit/test_collection_queries.py @@ -30,6 +30,10 @@ def test_query_can_find_cloud_provider(): # SEDAC does not have a cloud provider so it should default to the on prem provider query = DataCollections().cloud_hosted(True).daac("SEDAC") assert query.params["provider"] == "SEDAC" + query = DataCollections().daac("ASDC").cloud_hosted(True) + assert query.params["provider"] == "LARC_CLOUD" + query = DataCollections().cloud_hosted(True).daac("ASDC") + assert query.params["provider"] == "LARC_CLOUD" def test_querybuilder_can_handle_doi(): diff --git a/tests/unit/test_store.py b/tests/unit/test_store.py index 253befb5..221ece1a 100644 --- a/tests/unit/test_store.py +++ b/tests/unit/test_store.py @@ -105,6 +105,7 @@ def test_store_can_create_s3_fsspec_session(self): "GES_DISC", "ASF", "OBDAAC", + "ASDC", ]: s3_fs = store.get_s3fs_session(daac=daac) assert isinstance(s3_fs, s3fs.S3FileSystem) @@ -123,6 +124,7 @@ def test_store_can_create_s3_fsspec_session(self): "GES_DISC", "ASF", "OB_CLOUD", + "LARC_CLOUD", ]: s3_fs = store.get_s3fs_session(provider=provider) assert isinstance(s3_fs, s3fs.S3FileSystem)