compass.landice.mesh.build_mali_mesh

compass.landice.mesh.build_mali_mesh(self, cell_width, x1, y1, geom_points, geom_edges, mesh_name, section_name, gridded_dataset, projection, geojson_file=None, cores=1)[source]

Create the MALI mesh based on final cell widths determined by compass.landice.mesh.build_cell_width(), using Jigsaw and MPAS-Tools functions. Culls the mesh based on config options, interpolates all available fields from the gridded dataset to the MALI mesh using the bilinear method, and marks domain boundaries as Dirichlet cells.

Parameters:
  • cell_width (numpy.ndarray) – Desired width of MPAS cells calculated by build_cell_width() based on mesh density functions define in set_cell_width() to pass to mpas_tools.mesh.creation.build_mesh.build_planar_mesh().

  • x1 (float) – x coordinates from gridded dataset

  • y1 (float) – y coordinates from gridded dataset

  • geom_points (jigsawpy.jigsaw_msh_t.VERT2_t) – xy node coordinates to pass to build_planar_mesh()

  • geom_edges (jigsawpy.jigsaw_msh_t.EDGE2_t) – xy edge coordinates between nodes to pass to build_planar_mesh()

  • mesh_name (str) – Filename to be used for final MALI NetCDF mesh file.

  • section_name (str) – Section of the config file from which to read parameters. The following options to be set in the given config section: levels, x_min, x_max, y_min, y_max, min_spac, max_spac, high_log_speed, low_log_speed, high_dist, low_dist, high_dist_bed, low_dist_bed, high_bed, low_bed, cull_distance, use_speed, use_dist_to_edge, use_dist_to_grounding_line, and use_bed. See the Land-Ice Framework section of the Users or Developers guide for more information about these options and their uses.

  • gridded_dataset (str) – Name of gridded dataset file to be used for interpolation to MALI mesh

  • projection (str) – Projection to be used for setting lat-long fields. Likely 'gis-gimp' or 'ais-bedmap2'

  • geojson_file (str, optional) – Name of geojson file that defines regional domain extent.

  • cores (int, optional) – The number of cores to use for mask creation