Skip to content

Commit

Permalink
Merge pull request #39 from ai2es/keras3_update
Browse files Browse the repository at this point in the history
Keras3 update
  • Loading branch information
charlie-becker authored May 8, 2024
2 parents f0e00a0 + 71c6436 commit 4d8a66c
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 132 deletions.
35 changes: 25 additions & 10 deletions config/inference.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
model: "hrrr"
evidential: True
ML_model_path: "/glade/p/cisl/aiml/ai2es/winter_ptypes/models/evidential_weighted"
input_scaler_file: "input.json"
out_path: "/glade/work/username/ptype_real_time/2023-11-17/"
output_uncertainties: True # set to False if not using an Evidential Model
ML_model_path: "/glade/derecho/scratch/cbecker/evi_model_ptype_050124.keras"
input_scaler_file: "/glade/derecho/scratch/cbecker/evi_scaler.json"
out_path: "/glade/derecho/scratch/username/ptype_real_time/central_region/"
drop_input_data: False
add_interp_data: True
n_processors: 18 # Only used if use_dask=False (dask has its own parameters at bottom of config)
use_dask: False
save_format: "netcdf" # Supports "zarr" and "netcdf"
extent: [-115, -110, 32, 35] # [min_lon, max_lon, min_lat, max_lat] or "full"
extent: [-108, -89, 36, 48] # [min_lon, max_lon, min_lat, max_lat] or "full"
predict_batch_size: 2048
dates:
most_recent: True
start: "2022-02-03 00:00" # ignore if most_recent is True
Expand All @@ -20,6 +21,8 @@ forecast_range:
end: 18
interval: 1

ml_atm_varaibles: ['t', 'dpt']

height_levels:
low: 0
high: 5000
Expand All @@ -31,22 +34,34 @@ variables:
isobaricInhPa: ["t", "u", "v", "r", "gh"]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: ["t2m", "d2m", "u10", "v10"]
product: "awp130pgrb"
kwargs:
product: "awp130pgrb"
hrrr:
isobaricInhPa: ["t", "u", "v", "dpt", "gh"]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
surface: ["orog", "sp", "crain", "csnow", "cicep", "cfrzr", "tp"]
atmosphere: ["refc"]
heightAboveGround: ["t2m", "d2m", "u10", "v10"]
product: "prs"
kwargs:
product: "prs"
gfs:
isobaricInhPa: [ "t", "u", "v", "q", "gh" ]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: [ "t2m", "d2m", "u10", "v10" ]
product: "pgrb2.0p25"
kwargs:
product: "pgrb2.0p25"
nam:
isobaricInhPa: [ "t", "u", "v", "dpt", "gh" ]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: [ "t2m", "d2m", "u10", "v10" ]
product: "conusnest.hiresf"
kwargs:
product: "conusnest.hiresf"
gefs:
isobaricInhPa: [ "t", "u", "v", "q", "gh" ]
surface: [ "orog", "crain", "csnow", "cicep", "cfrzr" ]
heightAboveGround: [ "t2m", "d2m", "u10", "v10" ]
kwargs:
product: "wave"
member: "p11"

dask_params:
PBS:
Expand Down
70 changes: 70 additions & 0 deletions config/inference_rt_central_winter_2023_2024_00Z.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
model: "hrrr"
evidential: True
output_uncertainties: True
ML_model_path: "/glade/derecho/scratch/cbecker/evi_model_ptype_050124.keras"
input_scaler_file: "/glade/derecho/scratch/cbecker/evi_scaler.json"
out_path: "/glade/derecho/scratch/cbecker/ptype_real_time/winter_2023_2024/"
drop_input_data: False
add_interp_data: True
n_processors: 60 # Only used if use_dask=False (dask has its own parameters at bottom of config)
use_dask: False
save_format: "netcdf" # Supports "zarr" and "netcdf"
extent: [-108, -89, 36, 48] # [min_lon, max_lon, min_lat, max_lat] or "full"
predict_batch_size: 2048
dates:
most_recent: False
start: "2024-03-01 00:00" # ignore if most_recent is True
end: "2024-04-30 23:00" # ignore if most_recent is True
frequency: "1H"

forecast_range:
start: 1
end: 18
interval: 1

ml_atm_varaibles: ['t', 'dpt']

height_levels:
low: 0
high: 5000
interval: 250

variables:
model:
rap:
isobaricInhPa: ["t", "u", "v", "r", "gh"]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: ["t2m", "d2m", "u10", "v10"]
kwargs:
product: "awp130pgrb"
hrrr:
isobaricInhPa: ["t", "u", "v", "dpt", "gh"]
surface: ["orog", "sp", "crain", "csnow", "cicep", "cfrzr", "tp"]
atmosphere: ["refc"]
heightAboveGround: ["t2m", "d2m", "u10", "v10"]
kwargs:
product: "prs"
gfs:
isobaricInhPa: [ "t", "u", "v", "q", "gh" ]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: [ "t2m", "d2m", "u10", "v10" ]
product: "pgrb2.0p25"
nam:
isobaricInhPa: [ "t", "u", "v", "dpt", "gh" ]
surface: ["orog", "crain", "csnow", "cicep", "cfrzr"]
heightAboveGround: [ "t2m", "d2m", "u10", "v10" ]
product: "conusnest.hiresf"

dask_params:
PBS:
resource_spec: "select=1:ncpus=12:mem=128GB"
processes: 12
project: "NAML0001"
n_workers: 1
queue: "casper"
walltime: "02:00:00"
memory: "1TB"
interface: "ib0"
local_directory: "/glade/work/cbecker/ptype-physical/dask/"
log_directory: "/glade/work/cbecker/ptype-physical/dask_logs/"
n_jobs: 10
64 changes: 0 additions & 64 deletions config/inference_vaisala_NE.yml

This file was deleted.

Loading

0 comments on commit 4d8a66c

Please sign in to comment.