..
   NOTE: The files `landlab.grid.[base|raster|voronoi|radial|hex].rst` are all
   *AUTOGENERATED* from the files `text_for_XXXX.py.txt`! All changes to the
   rst files will be PERMANENTLY LOST whenever the documentation is updated.
   Make changes directly to the txt files instead.

..  _Raster:

General class methods and attributes of the `landlab.grid.raster` module
------------------------------------------------------------------------

Landlab's regular, raster grids are implemented by the class `RasterModelGrid`,
which inherits from `ModelGrid`. This text lists grid methods available for the
class:

Getting Information about a Grid
--------------------------------
The following attributes, properties, and methods provide data about a
RasterModelGrid, its geometry, and the connectivity among the various elements.
Each grid element has an ID number, which is also its position in an array that
contains information about that type of element. For example, the *x*
coordinate of node 5 would be found at `grid.node_x[5]`.

The naming of grid-element arrays is *attribute*`_at_`*element*, where
*attribute* is the name of the data in question, and *element* is the element
to which the attribute applies. For example, the property `node_at_cell`
contains the ID of the node associated with each cell. For example,
`node_at_cell[3]` contains the *node ID* of the node associated with cell 3.
The *attribute* is singular if there is only one value per element; for
example, there is only one node associated with each cell. It is plural when
there are multiple values per element; for example, the `faces_at_cell` array
contains multiple faces for each cell. Exceptions to these general rules are
functions that return indices of a subset of all elements of a particular type.
For example, you can obtain an array with IDs of only the core nodes using
`core_nodes`, while `active_links` provides an array of IDs of active links
(only). Finally, attributes that represent a measurement of something, such as
the length of a link or the surface area of a cell, are described using `_of_`,
as in the example `area_of_cell`.

Information about the grid as a whole
+++++++++++++++++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.axis_name
    ~landlab.grid.raster.RasterModelGrid.axis_units
    ~landlab.grid.raster.RasterModelGrid.cell_grid_shape
    ~landlab.grid.raster.RasterModelGrid.cell_vector_to_raster
    ~landlab.grid.raster.RasterModelGrid.cells_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.dx
    ~landlab.grid.raster.RasterModelGrid.dy
    ~landlab.grid.raster.RasterModelGrid.extent
    ~landlab.grid.raster.RasterModelGrid.from_dict
    ~landlab.grid.raster.RasterModelGrid.grid_xdimension
    ~landlab.grid.raster.RasterModelGrid.grid_ydimension
    ~landlab.grid.raster.RasterModelGrid.imshow
    ~landlab.grid.raster.RasterModelGrid.is_point_on_grid
    ~landlab.grid.raster.RasterModelGrid.move_origin
    ~landlab.grid.raster.RasterModelGrid.ndim
    ~landlab.grid.raster.RasterModelGrid.node_axis_coordinates
    ~landlab.grid.raster.RasterModelGrid.node_vector_to_raster
    ~landlab.grid.raster.RasterModelGrid.nodes_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.number_of_cell_columns
    ~landlab.grid.raster.RasterModelGrid.number_of_cell_rows
    ~landlab.grid.raster.RasterModelGrid.number_of_elements
    ~landlab.grid.raster.RasterModelGrid.number_of_node_columns
    ~landlab.grid.raster.RasterModelGrid.number_of_node_rows
    ~landlab.grid.raster.RasterModelGrid.save
    ~landlab.grid.raster.RasterModelGrid.shape
    ~landlab.grid.raster.RasterModelGrid.size

Information about nodes
+++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.active_link_dirs_at_node
    ~landlab.grid.raster.RasterModelGrid.active_neighbors_at_node
    ~landlab.grid.raster.RasterModelGrid.all_node_azimuths_map
    ~landlab.grid.raster.RasterModelGrid.all_node_distances_map
    ~landlab.grid.raster.RasterModelGrid.boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.calc_distances_of_nodes_to_point
    ~landlab.grid.raster.RasterModelGrid.cell_area_at_node
    ~landlab.grid.raster.RasterModelGrid.cell_at_node
    ~landlab.grid.raster.RasterModelGrid.closed_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.core_nodes
    ~landlab.grid.raster.RasterModelGrid.downwind_links_at_node
    ~landlab.grid.raster.RasterModelGrid.find_nearest_node
    ~landlab.grid.raster.RasterModelGrid.fixed_gradient_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.fixed_value_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.grid_coords_to_node_id
    ~landlab.grid.raster.RasterModelGrid.link_at_node_is_downwind
    ~landlab.grid.raster.RasterModelGrid.link_at_node_is_upwind
    ~landlab.grid.raster.RasterModelGrid.link_dirs_at_node
    ~landlab.grid.raster.RasterModelGrid.links_at_node
    ~landlab.grid.raster.RasterModelGrid.neighbors_at_node
    ~landlab.grid.raster.RasterModelGrid.node_at_cell
    ~landlab.grid.raster.RasterModelGrid.node_at_core_cell
    ~landlab.grid.raster.RasterModelGrid.node_at_link_head
    ~landlab.grid.raster.RasterModelGrid.node_at_link_tail
    ~landlab.grid.raster.RasterModelGrid.node_axis_coordinates
    ~landlab.grid.raster.RasterModelGrid.node_has_boundary_neighbor
    ~landlab.grid.raster.RasterModelGrid.node_is_boundary
    ~landlab.grid.raster.RasterModelGrid.node_is_core
    ~landlab.grid.raster.RasterModelGrid.node_vector_to_raster
    ~landlab.grid.raster.RasterModelGrid.node_x
    ~landlab.grid.raster.RasterModelGrid.node_y
    ~landlab.grid.raster.RasterModelGrid.nodes
    ~landlab.grid.raster.RasterModelGrid.nodes_are_all_core
    ~landlab.grid.raster.RasterModelGrid.nodes_around_point
    ~landlab.grid.raster.RasterModelGrid.nodes_at_bottom_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.nodes_at_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_left_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_patch
    ~landlab.grid.raster.RasterModelGrid.nodes_at_right_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_top_edge
    ~landlab.grid.raster.RasterModelGrid.number_of_cell_columns
    ~landlab.grid.raster.RasterModelGrid.number_of_core_nodes
    ~landlab.grid.raster.RasterModelGrid.number_of_interior_nodes
    ~landlab.grid.raster.RasterModelGrid.number_of_links_at_node
    ~landlab.grid.raster.RasterModelGrid.number_of_node_columns
    ~landlab.grid.raster.RasterModelGrid.number_of_node_rows
    ~landlab.grid.raster.RasterModelGrid.number_of_nodes
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_node
    ~landlab.grid.raster.RasterModelGrid.open_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.patches_at_node
    ~landlab.grid.raster.RasterModelGrid.patches_present_at_node
    ~landlab.grid.raster.RasterModelGrid.roll_nodes_ud
    ~landlab.grid.raster.RasterModelGrid.set_nodata_nodes_to_closed
    ~landlab.grid.raster.RasterModelGrid.set_nodata_nodes_to_fixed_gradient
    ~landlab.grid.raster.RasterModelGrid.shape
    ~landlab.grid.raster.RasterModelGrid.status_at_node
    ~landlab.grid.raster.RasterModelGrid.unit_vector_sum_xcomponent_at_node
    ~landlab.grid.raster.RasterModelGrid.unit_vector_sum_ycomponent_at_node
    ~landlab.grid.raster.RasterModelGrid.upwind_links_at_node
    ~landlab.grid.raster.RasterModelGrid.x_of_node
    ~landlab.grid.raster.RasterModelGrid.y_of_node

Information about links
+++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.active_link_dirs_at_node
    ~landlab.grid.raster.RasterModelGrid.active_links
    ~landlab.grid.raster.RasterModelGrid.angle_of_link
    ~landlab.grid.raster.RasterModelGrid.angle_of_link_about_head
    ~landlab.grid.raster.RasterModelGrid.downwind_links_at_node
    ~landlab.grid.raster.RasterModelGrid.face_at_link
    ~landlab.grid.raster.RasterModelGrid.fixed_links
    ~landlab.grid.raster.RasterModelGrid.horizontal_links
    ~landlab.grid.raster.RasterModelGrid.length_of_link
    ~landlab.grid.raster.RasterModelGrid.link_at_face
    ~landlab.grid.raster.RasterModelGrid.link_at_node_is_downwind
    ~landlab.grid.raster.RasterModelGrid.link_at_node_is_upwind
    ~landlab.grid.raster.RasterModelGrid.link_dirs_at_node
    ~landlab.grid.raster.RasterModelGrid.links_at_node
    ~landlab.grid.raster.RasterModelGrid.links_at_patch
    ~landlab.grid.raster.RasterModelGrid.node_at_link_head
    ~landlab.grid.raster.RasterModelGrid.node_at_link_tail
    ~landlab.grid.raster.RasterModelGrid.number_of_active_links
    ~landlab.grid.raster.RasterModelGrid.number_of_fixed_links
    ~landlab.grid.raster.RasterModelGrid.number_of_links
    ~landlab.grid.raster.RasterModelGrid.number_of_links_at_node
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_link
    ~landlab.grid.raster.RasterModelGrid.patches_at_link
    ~landlab.grid.raster.RasterModelGrid.patches_present_at_link
    ~landlab.grid.raster.RasterModelGrid.resolve_values_on_active_links
    ~landlab.grid.raster.RasterModelGrid.resolve_values_on_links
    ~landlab.grid.raster.RasterModelGrid.status_at_link
    ~landlab.grid.raster.RasterModelGrid.unit_vector_xcomponent_at_link
    ~landlab.grid.raster.RasterModelGrid.unit_vector_ycomponent_at_link
    ~landlab.grid.raster.RasterModelGrid.upwind_links_at_node
    ~landlab.grid.raster.RasterModelGrid.vertical_links
    ~landlab.grid.raster.RasterModelGrid.x_of_link
    ~landlab.grid.raster.RasterModelGrid.y_of_link

Information about cells
+++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.area_of_cell
    ~landlab.grid.raster.RasterModelGrid.cell_area_at_node
    ~landlab.grid.raster.RasterModelGrid.cell_at_node
    ~landlab.grid.raster.RasterModelGrid.cell_grid_shape
    ~landlab.grid.raster.RasterModelGrid.cell_vector_to_raster
    ~landlab.grid.raster.RasterModelGrid.cells_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.core_cells
    ~landlab.grid.raster.RasterModelGrid.faces_at_cell
    ~landlab.grid.raster.RasterModelGrid.node_at_cell
    ~landlab.grid.raster.RasterModelGrid.node_at_core_cell
    ~landlab.grid.raster.RasterModelGrid.number_of_cell_rows
    ~landlab.grid.raster.RasterModelGrid.number_of_cells
    ~landlab.grid.raster.RasterModelGrid.number_of_core_cells
    ~landlab.grid.raster.RasterModelGrid.number_of_faces_at_cell
    ~landlab.grid.raster.RasterModelGrid.second_ring_looped_neighbors_at_cell
    ~landlab.grid.raster.RasterModelGrid.x_of_cell
    ~landlab.grid.raster.RasterModelGrid.y_of_cell

Information about faces
+++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.active_faces
    ~landlab.grid.raster.RasterModelGrid.face_at_link
    ~landlab.grid.raster.RasterModelGrid.faces_at_cell
    ~landlab.grid.raster.RasterModelGrid.link_at_face
    ~landlab.grid.raster.RasterModelGrid.number_of_active_faces
    ~landlab.grid.raster.RasterModelGrid.number_of_faces
    ~landlab.grid.raster.RasterModelGrid.number_of_faces_at_cell
    ~landlab.grid.raster.RasterModelGrid.width_of_face
    ~landlab.grid.raster.RasterModelGrid.x_of_face
    ~landlab.grid.raster.RasterModelGrid.y_of_face

Information about patches
+++++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.links_at_patch
    ~landlab.grid.raster.RasterModelGrid.nodes_at_patch
    ~landlab.grid.raster.RasterModelGrid.number_of_patches
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_link
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_node
    ~landlab.grid.raster.RasterModelGrid.patches_at_link
    ~landlab.grid.raster.RasterModelGrid.patches_at_node
    ~landlab.grid.raster.RasterModelGrid.patches_present_at_link
    ~landlab.grid.raster.RasterModelGrid.patches_present_at_node

Information about corners
+++++++++++++++++++++++++

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.number_of_corners

Data Fields in ModelGrid
------------------------
:class:`~.ModelGrid` inherits from the :class:`~.ModelDataFields` class. This
provides `~.ModelGrid`, and its subclasses, with the ability to, optionally,
store data values that are associated with the different types grid elements
(nodes, cells, etc.). In particular, as part of ``ModelGrid.__init__()``,
data field *groups* are added to the `ModelGrid` that provide containers to
put data fields into. There is one group for each of the eight grid elements
(node, cell, link, face, core_node, core_cell, active_link, and active_face).

To access these groups, use the same methods as accessing groups with
`~.ModelDataFields`. ``ModelGrid.__init__()`` adds the following attributes to
itself that provide access to the values groups:

.. autosummary::
    :toctree: generated/
    :nosignatures:

    ~landlab.grid.raster.RasterModelGrid.at_node
    ~landlab.grid.raster.RasterModelGrid.at_cell
    ~landlab.grid.raster.RasterModelGrid.at_link
    ~landlab.grid.raster.RasterModelGrid.at_face
    ~landlab.grid.raster.RasterModelGrid.at_patch
    ~landlab.grid.raster.RasterModelGrid.at_corner

Each of these attributes returns a ``dict``-like object whose keys are value
names as strings and values are numpy arrays that gives quantities at
grid elements.


Create Field Arrays
+++++++++++++++++++
:class:`~.ModelGrid` inherits several useful methods for creating new data
fields and adding new data fields to a ModelGrid instance. Methods to add or
create a new data array follow the ``numpy`` syntax for creating arrays. The
folowing methods create and, optionally, initialize new arrays. These arrays
are of the correct size but a new field will not be added to the field:

.. autosummary::
    :toctree: generated/
    :nosignatures:

    ~landlab.field.grouped.ModelDataFields.empty
    ~landlab.field.grouped.ModelDataFields.ones
    ~landlab.field.grouped.ModelDataFields.zeros

Add Fields to a ModelGrid
+++++++++++++++++++++++++
Unlike with the equivalent numpy functions, these do not take a size argument
as the size of the returned arrays is determined from the size of the
ModelGrid. However, the keyword arguments are the same as those of the numpy
equivalents.

The following methods will create a new array and add a reference to that
array to the ModelGrid:

.. autosummary::
    :toctree: generated/
    :nosignatures:

    ~landlab.grid.raster.RasterModelGrid.add_empty
    ~landlab.grid.raster.RasterModelGrid.add_field
    ~landlab.grid.raster.RasterModelGrid.add_ones
    ~landlab.grid.raster.RasterModelGrid.add_zeros
    ~landlab.grid.raster.RasterModelGrid.delete_field
    ~landlab.grid.raster.RasterModelGrid.set_units

These methods operate in the same way as the previous set except that, in
addition to creating a new array, the newly-created array is added to the
ModelGrid. The calling signature is the same but with the addition of an
argument that gives the name of the new field as a string. The additional
method, :meth:`~.ModelDataFields.add_field`, adds a previously allocation
array to the ModelGrid. If the array is of the incorrect size it will raise
``ValueError``.

Query Fields
++++++++++++
Use the following methods/attributes get information about the stored data
fields:

.. autosummary::
    :toctree: generated/
    :nosignatures:

    ~landlab.field.grouped.ModelDataFields.size
    ~landlab.field.grouped.ModelDataFields.keys
    ~landlab.field.grouped.ModelDataFields.has_group
    ~landlab.field.grouped.ModelDataFields.has_field
    ~landlab.grid.raster.RasterModelGrid.field_units
    ~landlab.grid.raster.RasterModelGrid.field_values
    ~landlab.field.grouped.ModelDataFields.groups

i.e., call, e.g. mg.has_field('node', 'my_field_name')

Gradients, fluxes, and divergences on the grid
----------------------------------------------

Landlab is designed to easily calculate gradients in quantities across the
grid, and to construct fluxes and flux divergences from them. Because these
calculations tend to be a little more involved than property lookups, the
methods tend to start with `calc_`.

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.calc_diff_at_link
    ~landlab.grid.raster.RasterModelGrid.calc_flux_div_at_cell
    ~landlab.grid.raster.RasterModelGrid.calc_flux_div_at_node
    ~landlab.grid.raster.RasterModelGrid.calc_grad_across_cell_corners
    ~landlab.grid.raster.RasterModelGrid.calc_grad_across_cell_faces
    ~landlab.grid.raster.RasterModelGrid.calc_grad_along_node_links
    ~landlab.grid.raster.RasterModelGrid.calc_grad_at_active_link
    ~landlab.grid.raster.RasterModelGrid.calc_grad_at_link
    ~landlab.grid.raster.RasterModelGrid.calc_grad_at_patch
    ~landlab.grid.raster.RasterModelGrid.calc_net_flux_at_node
    ~landlab.grid.raster.RasterModelGrid.calc_slope_at_cell_subtriangles
    ~landlab.grid.raster.RasterModelGrid.calc_slope_at_node
    ~landlab.grid.raster.RasterModelGrid.calc_slope_at_patch
    ~landlab.grid.raster.RasterModelGrid.calc_unit_normal_at_patch
    ~landlab.grid.raster.RasterModelGrid.calc_unit_normals_at_cell_subtriangles
    ~landlab.grid.raster.RasterModelGrid.calc_unit_normals_at_patch_subtriangles

Mappers
-------

These methods allow mapping of values defined on one grid element type onto a
second, e.g., mapping upwind node values onto links, or mean link values onto
nodes.

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.map_downwind_node_link_max_to_node
    ~landlab.grid.raster.RasterModelGrid.map_downwind_node_link_mean_to_node
    ~landlab.grid.raster.RasterModelGrid.map_link_head_node_to_link
    ~landlab.grid.raster.RasterModelGrid.map_link_tail_node_to_link
    ~landlab.grid.raster.RasterModelGrid.map_link_vector_sum_to_patch
    ~landlab.grid.raster.RasterModelGrid.map_link_vector_to_nodes
    ~landlab.grid.raster.RasterModelGrid.map_max_of_inlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_max_of_link_nodes_to_link
    ~landlab.grid.raster.RasterModelGrid.map_max_of_node_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_max_of_outlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_max_of_patch_nodes_to_patch
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_horizontal_active_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_horizontal_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_inlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_link_nodes_to_link
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_outlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_patch_nodes_to_patch
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_vertical_active_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_mean_of_vertical_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_min_of_inlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_min_of_link_nodes_to_link
    ~landlab.grid.raster.RasterModelGrid.map_min_of_node_links_to_node
    ~landlab.grid.raster.RasterModelGrid.map_min_of_outlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_min_of_patch_nodes_to_patch
    ~landlab.grid.raster.RasterModelGrid.map_node_to_cell
    ~landlab.grid.raster.RasterModelGrid.map_sum_of_inlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_sum_of_outlinks_to_node
    ~landlab.grid.raster.RasterModelGrid.map_upwind_node_link_max_to_node
    ~landlab.grid.raster.RasterModelGrid.map_upwind_node_link_mean_to_node
    ~landlab.grid.raster.RasterModelGrid.map_value_at_downwind_node_link_max_to_node
    ~landlab.grid.raster.RasterModelGrid.map_value_at_max_node_to_link
    ~landlab.grid.raster.RasterModelGrid.map_value_at_min_node_to_link
    ~landlab.grid.raster.RasterModelGrid.map_value_at_upwind_node_link_max_to_node

Boundary condition control
--------------------------

These are the primary properties for getting and setting the grid boundary
conditions. Changes made to :meth:`~.ModelGrid.status_at_node` and
:meth:`~.ModelGrid.status_at_node` will automatically update the conditions
defined at other grid elements automatically.

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.active_faces
    ~landlab.grid.raster.RasterModelGrid.active_links
    ~landlab.grid.raster.RasterModelGrid.active_neighbors_at_node
    ~landlab.grid.raster.RasterModelGrid.boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.closed_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.core_cells
    ~landlab.grid.raster.RasterModelGrid.core_nodes
    ~landlab.grid.raster.RasterModelGrid.fixed_gradient_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.fixed_links
    ~landlab.grid.raster.RasterModelGrid.fixed_value_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.node_at_core_cell
    ~landlab.grid.raster.RasterModelGrid.node_has_boundary_neighbor
    ~landlab.grid.raster.RasterModelGrid.node_is_boundary
    ~landlab.grid.raster.RasterModelGrid.node_is_core
    ~landlab.grid.raster.RasterModelGrid.nodes_are_all_core
    ~landlab.grid.raster.RasterModelGrid.nodes_at_bottom_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_left_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_right_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_top_edge
    ~landlab.grid.raster.RasterModelGrid.number_of_active_faces
    ~landlab.grid.raster.RasterModelGrid.number_of_active_links
    ~landlab.grid.raster.RasterModelGrid.number_of_core_cells
    ~landlab.grid.raster.RasterModelGrid.number_of_core_nodes
    ~landlab.grid.raster.RasterModelGrid.number_of_fixed_links
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_link
    ~landlab.grid.raster.RasterModelGrid.number_of_patches_present_at_node
    ~landlab.grid.raster.RasterModelGrid.open_boundary_nodes
    ~landlab.grid.raster.RasterModelGrid.second_ring_looped_neighbors_at_cell
    ~landlab.grid.raster.RasterModelGrid.set_closed_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_fixed_link_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_fixed_value_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_looped_boundaries
    ~landlab.grid.raster.RasterModelGrid.set_nodata_nodes_to_closed
    ~landlab.grid.raster.RasterModelGrid.set_nodata_nodes_to_fixed_gradient
    ~landlab.grid.raster.RasterModelGrid.set_open_nodes_disconnected_from_watershed_to_closed
    ~landlab.grid.raster.RasterModelGrid.set_status_at_node_on_edges
    ~landlab.grid.raster.RasterModelGrid.set_watershed_boundary_condition
    ~landlab.grid.raster.RasterModelGrid.set_watershed_boundary_condition_outlet_coords
    ~landlab.grid.raster.RasterModelGrid.set_watershed_boundary_condition_outlet_id
    ~landlab.grid.raster.RasterModelGrid.status_at_link
    ~landlab.grid.raster.RasterModelGrid.status_at_node

Identifying node subsets
------------------------

These methods are useful in identifying subsets of nodes, e.g., closest node
to a point; nodes at edges.

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.cells_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.find_nearest_node
    ~landlab.grid.raster.RasterModelGrid.grid_coords_to_node_id
    ~landlab.grid.raster.RasterModelGrid.is_point_on_grid
    ~landlab.grid.raster.RasterModelGrid.nodes_around_point
    ~landlab.grid.raster.RasterModelGrid.nodes_at_bottom_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_corners_of_grid
    ~landlab.grid.raster.RasterModelGrid.nodes_at_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_left_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_right_edge
    ~landlab.grid.raster.RasterModelGrid.nodes_at_top_edge
    ~landlab.grid.raster.RasterModelGrid.set_closed_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_fixed_link_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_fixed_value_boundaries_at_grid_edges
    ~landlab.grid.raster.RasterModelGrid.set_looped_boundaries

Surface analysis
----------------

These methods permit the kinds of surface analysis that you might expect to
find in GIS software.

.. autosummary::
    :toctree: generated/

    ~landlab.grid.raster.RasterModelGrid.calc_aspect_at_cell_subtriangles
    ~landlab.grid.raster.RasterModelGrid.calc_aspect_at_node
    ~landlab.grid.raster.RasterModelGrid.calc_hillshade_at_node
    ~landlab.grid.raster.RasterModelGrid.calc_slope_at_node

Notes
-----
It is important that when creating a new grid class that inherits from
``ModelGrid``, to call ``ModelGrid.__init__()`` in the new grid's
``__init__()``. For example, the new class's __init__ should contain the
following code,

.. code-block:: python

    class NewGrid(ModelGrid):
        def __init__(self, *args, **kwds):
            ModelGrid.__init__(self, **kwds)
            # Code that initializes the NewGrid

Without this, the new grid class will not have the ``at_*`` attributes.