Skip to content

Commit

Permalink
fix(mgrs-tile-collection): fix filter and use in evaluator standalone
Browse files Browse the repository at this point in the history
Refs #705
  • Loading branch information
chrisjrd committed Mar 8, 2024
1 parent 8865f7d commit 6f14d50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_subscriber/rtc/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def main(
return evaluator_results


def evaluate_rtc_products(rtc_product_ids, coverage_target):
def evaluate_rtc_products(rtc_product_ids, coverage_target, *args, **kwargs):
# load MGRS tile collection DB
mgrs_burst_collections_gdf = mbc_client.cached_load_mgrs_burst_db(filter_land=True)

Expand Down
2 changes: 1 addition & 1 deletion data_subscriber/rtc/mgrs_bursts_collection_db_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_mgrs_burst_db_raw(filter_land=True) -> GeoDataFrame:
# vector_gdf = vector_gdf.overlay(na_gdf, how="intersection")
logger.info(f"{len(vector_gdf)=}")
if filter_land:
vector_gdf = vector_gdf[vector_gdf["land_ocean_flag"] in ["water/land", "land"]] # filter out water (water == no relevant data)
vector_gdf = vector_gdf[vector_gdf["land_ocean_flag"].isin(["water/land", "land"])] # filter out water (water == no relevant data)
logger.info(f"{len(vector_gdf)=}")

return vector_gdf
Expand Down

0 comments on commit 6f14d50

Please sign in to comment.