You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/downloads/split.jl
+93-1Lines changed: 93 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,101 @@ function split(
25
25
26
26
p = pvec[ip]
27
27
evarii = PressureVariable(evar.varID,hPa=p)
28
-
save(dataflt,dt,e5ds,evarii,ereg,lsd)
28
+
save(dataflt,dt,e5ds,evarii,ereg,lsd,sc,of)
29
29
end
30
30
31
31
close(ds)
32
32
33
+
end
34
+
35
+
function save(
36
+
data ::AbstractArray{<:Real,3},
37
+
dt ::Date,
38
+
e5ds ::ERA5Hourly,
39
+
evar ::ERA5Variable,
40
+
ereg ::ERA5Region,
41
+
lsd ::LandSea,
42
+
scale ::Real,
43
+
offset ::Real
44
+
)
45
+
46
+
@info "$(modulelog()) - Saving raw $(e5ds.lname)$(evar.vname) data in $(ereg.geo.name) (Horizontal Resolution: $(ereg.gres)) for $(year(dt))$(Dates.monthname(dt)) ..."
@info "$(modulelog()) - Raw $(uppercase(e5ds.lname))$(evar.vname) in $(ereg.geo.name) (Horizontal Resolution: $(ereg.gres)) for $(year(dt))$(Dates.monthname(dt)) has been saved into $(fnc)."
78
+
79
+
end
80
+
81
+
function save(
82
+
data ::AbstractArray{<:Real,3},
83
+
dt ::Date,
84
+
e5ds ::ERA5Monthly,
85
+
evar ::ERA5Variable,
86
+
ereg ::ERA5Region,
87
+
lsd ::LandSea,
88
+
scale ::Real,
89
+
offset ::Real
90
+
)
91
+
92
+
@info "$(modulelog()) - Saving raw $(e5ds.lname)$(evar.vname) data in $(ereg.geo.name) (Horizontal Resolution: $(ereg.gres)) for $(year(dt)) ..."
@info "$(modulelog()) - Raw $(uppercase(e5ds.lname))$(evar.vname) in $(ereg.geo.name) (Horizontal Resolution: $(ereg.gres)) for $(year(dt)) has been saved into $(fnc)."
0 commit comments