Skip to content

Conversation

@ryba183
Copy link
Contributor

@ryba183 ryba183 commented Aug 5, 2020

No description provided.

profiles_file = open(file_name, "r")
my_pos = read_my_var(profiles_file, "position")
## my_pos = read_my_var(profiles_file, "position")
my_pos = read_my_var(profiles_file, "time")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When plotting profiles, my_pos is altitude, not time.
If you want to change from position to time in plot_series, please change from position to altitude in plot_profs.
That may require additional changes in matplotlib code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still to be done

("dir", po::value<std::string>()->required() , "directory containing out_lgrngn")
("micro", po::value<std::string>()->required(), "one of: blk_1m, blk_2m, lgrngn")
("type", po::value<std::string>()->required(), "one of: dycoms, moist_thermal, rico, Lasher_Trapp")//, base_prflux_vs_clhght")
("type", po::value<std::string>()->required(), "one of: dycoms, moist_thermal, rico, Lasher_Trapp, ICMW2020")//, base_prflux_vs_clhght")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change ICMW2020 to ICMW2020_cc to distinguish that this is the cumulus congestus case

}
// accumulated volume precipitation [m^3]
double calc_acc_volume_precip(double prec_vol)
double calc_acc_surf_precip__volume(double prec_vol)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why double underscore before volume?

{
if(this->micro == "lgrngn")
return prec_vol / this->DomainVolume;
return prec_vol / this->DomainSurf * calc_acc_surf_precip(prec_vol);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be:
return calc_acc_surf_precip(prec_vol) * this->DomainSurf / 1000.

regardless of the microphysics used (lgrngn or blk_1m)

Comment on lines 506 to 507
snap *= plotter.CellVol;
res_prof(at) = blitz::sum(snap);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be more efficient to sum all elements first and then multiply the result by cellvol instead of multiplying all elements by the same value and summing afterwards.

Also, currently this only counts cloud droplets. You need to add rain_rw_mom0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants