Skip to content

Commit

Permalink
exclude metadata needed for hmd plots in coverage plots
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Sep 15, 2024
1 parent f387efe commit 86fbd7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions pbp/meta_gen/gen_iclisten.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,16 @@ def run(self):
except Exception as ex:
self.log.exception(str(ex))

# plot the daily coverage only on files that are greater than the start date
# this os tp avoid plotting any coverage on files only included for overlap
plot_file = plot_daily_coverage(
InstrumentType.ICLISTEN, self.df, self.json_base_dir, self.start, self.end
InstrumentType.ICLISTEN,
self.df[self.df["start"] >= self.start],
self.json_base_dir,
self.start,
self.end
)
self.log.info(f"Coverage plot saved to: {plot_file}")

self.log.info(f"Coverage plot saved to {plot_file}")

if __name__ == "__main__":
from pbp.logging_helper import create_logger
Expand Down
9 changes: 7 additions & 2 deletions pbp/meta_gen/gen_nrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,14 @@ def run(self):
except Exception as ex:
self.log.exception(str(ex))

# plot the daily coverage
# plot the daily coverage only on files that are greater than the start date
# this os tp avoid plotting any coverage on files only included for overlap
plot_file = plot_daily_coverage(
InstrumentType.NRS, self.df, self.json_base_dir, self.start, self.end
InstrumentType.NRS,
self.df[self.df["start"] >= self.start],
self.json_base_dir,
self.start,
self.end
)
self.log.info(f"Coverage plot saved to {plot_file}")

Expand Down
2 changes: 1 addition & 1 deletion pbp/meta_gen/gen_soundtrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def run(self):
# plot the daily coverage
plot_file = plot_daily_coverage(
InstrumentType.SOUNDTRAP,
self.df,
self.df[self.df["start"] >= self.start],
self.json_base_dir,
self.start,
self.end,
Expand Down

0 comments on commit 86fbd7d

Please sign in to comment.