Skip to content

Commit

Permalink
Merge branch 'develop' into update_core_libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino authored Jul 10, 2024
2 parents 10d6c34 + 66ccef6 commit c7e8dc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions batch/python/export_to_gee.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def create_cog_backed_asset(dataset, implementation, gcs_path, service_account):
f"GEE returned unexpected status code {response.status_code} with payload {response.content}"
)

# update ACL to be public
full_asset_id = f"projects/{EE_PROJECT}/assets/{asset_id}"
acl = ee.data.getAssetAcl(full_asset_id)
acl["all_users_can_read"] = True
ee.data.setAssetAcl(full_asset_id, acl)


def export_to_gee(
dataset: str = Option(..., help="Dataset name."),
Expand Down

0 comments on commit c7e8dc4

Please sign in to comment.