Skip to content

Commit

Permalink
small data-specific bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Adamov committed May 6, 2024
1 parent ce4c520 commit 267478d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neural_lam/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
# Plotting
FIG_SIZE = (15, 10)
EXAMPLE_FILE = "data/cosmo/samples/train/data.zarr"
EVAL_DATETIMES = ["2020050400"] # prev_prev timestep (t-2)
EVAL_DATETIMES = ["2015112800"] # prev_prev timestep (t-2)
EVAL_PLOT_VARS = ["T_2M"]
STORE_EXAMPLE_DATA = True
SELECTED_PROJ = ccrs.PlateCarree()
Expand Down
4 changes: 2 additions & 2 deletions offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def offline_plotting():
parser.add_argument(
"--variable_to_plot",
type=str,
default="TQV",
default="T_2M",
help="Variable to plot in short format",
)

Expand Down Expand Up @@ -86,7 +86,7 @@ def offline_plotting():
start_time = pd.to_datetime(start_time_str, format="%Y%m%d%H")

# Output the prediction time range
time_range = len(predictions[1, :, 1, 1]) # Number of time steps
time_range = len(predictions[0, :, 0, 0]) # Number of time steps

# Calculate end time by adding the total duration of the time steps
end_time = start_time + pd.Timedelta(hours=2 * time_range)
Expand Down

0 comments on commit 267478d

Please sign in to comment.