<jupyter_start><jupyter_text>Quick and dirty list of data associated with nodes, cells, links, and facesJan 2016  Raster grid example<jupyter_code>from landlab import RasterModelGrid
rg = RasterModelGrid(3, 4)<jupyter_output><empty_output><jupyter_text>Data associated with nodes:<jupyter_code>rg.number_of_nodes
rg.number_of_node_rows
rg.number_of_node_columns
rg.node_x  # x coord
rg.node_y  # y coord
rg.status_at_node  # core/boundary status (0=core, 1=FIXED_VALUE_BOUNDARY, 4=CLOSED_BOUNDARY)
rg.cell_at_node  # ID of cell surrounding node, or BAD_INDEX_VALUE if none
rg.links_at_node  # IDs of links at each node, or -1 if none (ENWS order for raster)
rg.link_dirs_at_node<jupyter_output><empty_output><jupyter_text>Data associated with cells:<jupyter_code>rg.number_of_cells
rg.area_of_cell
rg.node_at_cell
rg.faces_at_cell()   # should be made into a property (Eric is working on this)<jupyter_output><empty_output><jupyter_text>Data associated with links:<jupyter_code>rg.number_of_links
rg.link_length  # naming: <element>_<attribute> vs <attribute>_of_<element> (disc. in prog)
rg.node_at_link_tail
rg.node_at_link_head
rg.face_at_link  # ID of face at each link, or BAD_INDEX_VALUE if none<jupyter_output><empty_output><jupyter_text>Data associated with faces<jupyter_code>rg.number_of_faces
rg.face_width
rg.link_at_face  # ID of link that crosses each face<jupyter_output><empty_output><jupyter_text>Hex grid (Voronoi subclass) example<jupyter_code>from landlab import HexModelGrid
hg = HexModelGrid(3, 3)<jupyter_output><empty_output><jupyter_text>Data associated with nodes<jupyter_code>hg.number_of_nodes
hg.node_x
hg.node_y
hg.status_at_node
hg.cell_at_node
hg.links_at_node  # Note that these are sorted by angle, CCW from +x
hg.link_dirs_at_node  # link direction relative to node: +1 incoming, -1 outgoing, 0 none<jupyter_output><empty_output><jupyter_text>Data associated with cells<jupyter_code>hg.number_of_cells
hg.area_of_cell
hg.node_at_cell
hg.faces_at_cell<jupyter_output><empty_output><jupyter_text>Data associated with links<jupyter_code>hg.number_of_links
hg.link_length
hg.node_at_link_tail
hg.node_at_link_head
hg.face_at_link<jupyter_output><empty_output><jupyter_text>Data associated with faces<jupyter_code>hg.number_of_faces
hg.face_width
hg.link_at_face<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08010335917312661, 'fraction_numerical': 0.006459948320413436, 'mean_word_length': 8.404858299595142, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '285745', 'license': 'MIT', 'n_tokens_mistral': 922, 'n_tokens_neox': 877, 'n_words': 177, 'path': 'data_on_nodes_cells_links_faces.ipynb', 'repo_name': 'gregtucker/landlab_algo_testing', 'size': '2322'}