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 21298e2 commit 57c16c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/methane_super_emitters/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def main(input_file, matrix_file):
lon_matrix = methane_data['lon']
time_matrix = methane_data['time']
rows, cols = methane_matrix.shape
print(f"Examining {matrix_file}!")
for row in range(0, rows, 16):
for col in range(0, cols, 16):
if row + 32 < rows and col + 32 < cols:
Expand All @@ -48,7 +49,7 @@ def main(input_file, matrix_file):
time_window = time_matrix[row:row + 32][:, col:col + 32]
for csv_line in data:
if check_if_inside(csv_line, lat_window, lon_window, time_window):
print("FOUND! {csv_line} in {matrix_file}")
print(f"FOUND! {csv_line} in {matrix_file}")

if __name__ == '__main__':
main()

0 comments on commit 57c16c3

Please sign in to comment.