File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class GenCast(Model):
54
54
download_url = "https://storage.googleapis.com/dm_graphcast/gencast/{file}"
55
55
56
56
grib_edition = 1
57
- grib_extra_metadata = {"type" : "pf" , "stream" : "enfo" }
57
+ grib_extra_metadata = {"type" : "pf" }
58
58
59
59
# Download
60
60
download_files = SHARED_DOWNLOAD_FILES
@@ -109,6 +109,9 @@ def __init__(self, **kwargs):
109
109
f"Number of ensemble members must match `member_number`,\n Not { self .num_ensemble_members = } and { self .member_number = } "
110
110
)
111
111
112
+ if "stream" not in getattr (self , "metadata" , {}):
113
+ self .grib_extra_metadata ["stream" ] = "enfo"
114
+
112
115
# Jax doesn't seem to like passing configs as args through the jit. Passing it
113
116
# in via partial (instead of capture by closure) forces jax to invalidate the
114
117
# jit cache if you change configs.
You can’t perform that action at this time.
0 commit comments