Skip to content

Commit

Permalink
fix: More on TERRA filename standard
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Oct 6, 2023
1 parent 5ba4287 commit 046e837
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,26 @@ def test_parse_filename_AL2():
assert descriptors[a] == ans[a]


@pytest.mark.skip()
def test_parse_filename_AL3m():
filename = "T2004006.L3m_DAY_CHL_chlor_a_4km.nc"
filename = "TERRA_MODIS.20040106.L3m.DAY.CHL.chlor_a.4km.nc"
descriptors = parse_filename(filename)

ans = {
"platform": "T",
"platform": "TERRA_MODIS",
"year": "2004",
"doy": "006",
"time": None,
"month": "01",
"day": "06",
"mode": "L3m",
"instrument": None,
}
for a in ans:
assert descriptors[a] == ans[a]


@pytest.mark.skip()
def test_OceanColorDB():
db = OceanColorDB(os.getenv("NASA_USERNAME"), os.getenv("NASA_PASSWORD"))
db.backend = FileSystem("./")
ds = db["TERRA_MODIS.2004006.L3m_DAY_CHL_chlor_a_4km.nc"]
ds = db["TERRA_MODIS.20040106.L3m.DAY.CHL.chlor_a.4km.nc"]
ds.attrs


Expand Down

0 comments on commit 046e837

Please sign in to comment.