Skip to content

Commit

Permalink
add MCD case
Browse files Browse the repository at this point in the history
  • Loading branch information
777arc authored Nov 1, 2024
1 parent df971da commit 59bf21e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datasets/modis/modis.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def create_item(
item.properties["platform"] = "terra"
elif file.xml_href.split('/')[4][0:3] == "MYD":
item.properties["platform"] = "aqua"
elif file.xml_href.split('/')[4][0:3] == "MCD":
item.properties["platform"] = "terra,aqua"
else:
logger.warning("xml_href did not contain MOD or MYD in the usual spot")
logger.warning("xml_href did not contain MOD/MYD/MCD in the usual spot")

return [item]

0 comments on commit 59bf21e

Please sign in to comment.