Skip to content

Commit b57cbaa

Browse files
committed
remove point_timeseries_data from hierarchy plots
1 parent 309ca06 commit b57cbaa

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

experiments/ClimaEarth/hierarchy/climate_plots.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,4 @@ for job_id in ["dry_held_suarez", "moist_held_suarez"]
6868
Makie.ylims!(co_heat_flux.axis, -pa_grid[1], -pa_grid[end])
6969
co_heat_flux.axis.yticks = (-pa_grid, string.(pa_grid))
7070
Makie.save(joinpath(PLOT_DIR, "$(job_id)_heat_flux.png"), co_heat_flux)
71-
72-
# Figure 5: storm track diagnostics reduced to timeseries
73-
# this plots the eddy heat flux and max. Eady growth rate in a sectorial selection
74-
lev_i, lat_s_i, lat_n_i, lon_w_i, lon_e_i = lev_st, 60, 75, 1, 30
75-
println(
76-
"Sectorial selevtion for timeseries: \n level: $(z[lev_i]), lat: $(lat[lat_s_i]) to $(lat[lat_n_i]), lon: $(lon[lon_w_i]) to $(lon[lon_e_i])",
77-
)
78-
79-
egr_all, lat, lon, z, time = get_nc_data_all("egr", reduction, DATA_DIR)
80-
egr_t = point_timeseries_data(egr_all, [lon_w_i, lon_e_i], [lat_s_i, lat_n_i], lev_i)
81-
82-
vT_all, lat, lon, z, time = get_nc_data_all("vt", reduction, DATA_DIR)
83-
va_all, lat, lon, z, time = get_nc_data_all("va", reduction, DATA_DIR)
84-
ta_all, lat, lon, z, time = get_nc_data_all("ta", reduction, DATA_DIR)
85-
heat_flux_all = vT_all .- va_all .* ta_all
86-
heat_flux_t = point_timeseries_data(heat_flux_all, [lon_w_i, lon_e_i], [lat_s_i, lat_n_i], lev_i)
8771
end

experiments/ClimaEarth/hierarchy/plot_helper.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@ mean_climate_data =
3333
return var_time_zonal_mean, var_time_mean_sfc, lat, lon, z
3434
end
3535

36-
"""
37-
point_timeseries_data(variable, lon_i, lat_i, lev_i)
38-
39-
Returns the time series data for the variable `variable` at the indices `lon_i`, `lat_i`, and `lev_i`.
40-
"""
41-
point_timeseries_data =
42-
(variable, lon_i, lat_i, lev_i) -> begin
43-
44-
variable_time_mean = mean(variable[:, lon_i[1]:lon_i[2], lat_i[1]:lat_i[2], lev_i], dims = (2, 3))[:, 1, 1]
45-
46-
return variable_time_mean
47-
end
48-
4936
"""
5037
plot_climate(var, DATA_DIR, PLOT_DIR, job_id; reduction = "inst", interpolate_to_pressure = false)
5138

0 commit comments

Comments
 (0)