Skip to content

Commit

Permalink
feat: minor tweaks for successful NTL ingest into test db
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe-Levin committed Nov 26, 2024
1 parent 29c6a4e commit 2321bf2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions space2stats_api/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Space2Stats API
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"description": "Sum of luminosity values measured by monthly composites from VIIRS satellite.",
"methodological_notes": "Monthly composites generated by NASA through the Lights Every Night partnership.",
"source_data": "World Bank - Light Every Night, https://registry.opendata.aws/wb-light-every-night/",
"sci:citation": null,
"sci:citation": "tbd",
"method": "sum",
"resolution": "500 mts",
"themes": "Socio-economic",
Expand Down
2 changes: 1 addition & 1 deletion space2stats_api/src/space2stats_ingest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def verify_columns(
raise ValueError("The 'hex_id' column is missing from the Parquet file.")

# Verify Parquet columns match the STAC fields
if parquet_columns != stac_fields:
if parquet_columns - {"hex_id"} != stac_fields:
extra_in_parquet = parquet_columns - stac_fields
extra_in_stac = stac_fields - parquet_columns
raise ValueError(
Expand Down

0 comments on commit 2321bf2

Please sign in to comment.