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 eb5b795 commit 21298e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/methane_super_emitters/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(input_file, matrix_file):
methane_data = np.load(matrix_file, allow_pickle=True)
with open(input_file, 'r') as fd:
data = fd.readlines()[1:]
methane_matrix = methane_data['methane']
methane_matrix = methane_data['xch4_corrected']
lat_matrix = methane_data['lat']
lon_matrix = methane_data['lon']
time_matrix = methane_data['time']
Expand All @@ -48,7 +48,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!")
print("FOUND! {csv_line} in {matrix_file}")

if __name__ == '__main__':
main()

0 comments on commit 21298e2

Please sign in to comment.