Skip to content

Commit

Permalink
#1035: Getting rid of more metadata. This code is hard to test so we …
Browse files Browse the repository at this point in the history
…need to commit, deploy, and then test
  • Loading branch information
philipjyoon committed Dec 6, 2024
1 parent ab041c7 commit a325645
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions product2dataset/product2dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ def convert(
for file in dataset_met_json["Files"]
]

# Get rid of bunch of data that we don't care about but it taking up a lot of space
dataset_met_json["runconfig"]["localize"] = None # This list is the same as lineage so no point in duplicatingq
dataset_met_json["runconfig"]["input_file_group"]["input_file_paths"] = None # This list is the same as lineage so no point in duplicating
for file in dataset_met_json["Files"]:
file["runconfig"] = None # Runconfig for the entire product is already at metadata level so no point in duplicating for each file

elif pge_name == "L3_DSWx_NI":
dataset_met_json["input_granule_id"] = product_metadata["id"]
dataset_met_json["mgrs_set_id"] = product_metadata["mgrs_set_id"]
Expand Down

0 comments on commit a325645

Please sign in to comment.