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 57c16c3 commit 1b5da22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/methane_super_emitters/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ def main(input_file, matrix_file):
lat_matrix = methane_data['lat']
lon_matrix = methane_data['lon']
time_matrix = methane_data['time']
start_date = time_matrix.min()
end_date = time_matrix.max()
rows, cols = methane_matrix.shape
print(f"Examining {matrix_file}!")
for row in range(0, rows, 16):
for col in range(0, cols, 16):
print(f"Examining patch ({row}, {col})")
if row + 32 < rows and col + 32 < cols:
methane_window = methane_matrix[row:row + 32][:, col:col + 32]
lat_window = lat_matrix[row:row + 32][:, col:col + 32]
Expand Down

0 comments on commit 1b5da22

Please sign in to comment.