READ_GBXBOUNDARIES¶
Copyright (c) 2024 MPI-M, Clara Bayley
—– CLEO —– File: read_gbxboundaries.py Project: gbxboundariesbinary_src Created Date: Wednesday 17th January 2024 Author: Clara Bayley (CB) Additional Contributors: —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– File Description:
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.cellwidth(halfcell)[source]¶
return cell spacing (width) given half coords in a direction
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.coords_forgridboxfaces(gbxbounds, ndims, face)[source]¶
returns (x,y,z) coordinates of gridboxes faces in a particular direction
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.fullcell(halfcell)[source]¶
return fullcell corods (cell centres) given half coords in a direction
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.fullcoords_forallgridboxes(gbxbounds, ndims)[source]¶
returns (x,y,z) centres of gridboxes in domain
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.get_domainvol_from_grid_filename(grid_filename, COORD0=False, constants_filename='')[source]¶
get total domain volume from binary file
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.get_gbxvols_from_gridfile(grid_filename, COORD0=False, constants_filename='', isprint=True)[source]¶
get total domain volume from binary file
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.get_gridboxboundaries(grid_filename, COORD0=False, constants_filename='', isprint=True)[source]¶
get gridbox boundaries from binary file and re-dimensionalise usign COORD0 const from constants_filename
- cleopy.gbxboundariesbinary_src.read_gbxboundaries.halfcoords_from_gbxbounds(gbxbounds, isprint=True)[source]¶
returns half coords of gbx boundaries in lists obtained from gbxbounds dictionary