CRDGENS

—– CLEO —– File: crdgens.py Project: initsuperdropsbinary_src Created Date: Friday 13th October 2023 Author: Clara Bayley (CB) Additional Contributors: —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– Copyright (c) 2023 MPI-M, Clara Bayley —– File Description: various ways of generating spatial coordinates for superdroplet initial conditions

class cleopy.initsuperdropsbinary_src.crdgens.MonoCoordGen(coord0)[source]

method to generate superdroplets with coord all equal to coord0

class cleopy.initsuperdropsbinary_src.crdgens.SampleCoordGen(random)[source]

method to generate ‘nsupers’ no. of superdroplets’ coord [m] by sampling in range bewteen coordspan

cleopy.initsuperdropsbinary_src.crdgens.nsupers_at_domain_base(grid_filename, constants_filename, nsupers, zlim)[source]

create dict for sd initialisation where nsupers only occur in gridboxes with upper bound <= zlim

cleopy.initsuperdropsbinary_src.crdgens.nsupers_at_domain_top(grid_filename, constants_filename, nsupers, zlim)[source]

create dict for sd initialisation where nsupers only occur in gridboxes with lower bound >= zlim