Skip to content

Commit

Permalink
updated to create_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Jancauskas committed Dec 6, 2024
1 parent d820c18 commit 39e884d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/methane_super_emitters/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ def main(input_file, matrix_file):
end_date = time_matrix[lat_matrix != -1000].max()
rows, cols = methane_matrix.shape
print(f"Examining {matrix_file}!")
any_found = False
for csv_line in data:
if not (start_date <= get_csv_datetime(csv_line) <= end_date):
print("SKIP!")
if start_date <= get_csv_datetime(csv_line) <= end_date:
any_found = True
if not any_found:
exit()
for row in range(0, rows, 16):
for col in range(0, cols, 16):
if row + 32 < rows and col + 32 < cols:
Expand Down

0 comments on commit 39e884d

Please sign in to comment.