In [2]:
from landlab import RasterModelGrid
rg = RasterModelGrid(3, 4)
In [3]:
rg.number_of_nodes
Out[3]:
In [4]:
rg.number_of_node_rows
Out[4]:
In [5]:
rg.number_of_node_columns
Out[5]:
In [6]:
rg.node_x # x coord
Out[6]:
In [7]:
rg.node_y # y coord
Out[7]:
In [8]:
rg.status_at_node # core/boundary status (0=core, 1=FIXED_VALUE_BOUNDARY, 4=CLOSED_BOUNDARY)
Out[8]:
In [9]:
rg.cell_at_node # ID of cell surrounding node, or BAD_INDEX_VALUE if none
Out[9]:
In [10]:
rg.links_at_node # IDs of links at each node, or -1 if none (ENWS order for raster)
Out[10]:
In [11]:
rg.link_dirs_at_node
Out[11]:
In [12]:
rg.number_of_cells
Out[12]:
In [13]:
rg.area_of_cell
Out[13]:
In [14]:
rg.node_at_cell
Out[14]:
In [15]:
rg.faces_at_cell() # should be made into a property (Eric is working on this)
Out[15]:
In [16]:
rg.number_of_links
Out[16]:
In [17]:
rg.link_length # naming: <element>_<attribute> vs <attribute>_of_<element> (disc. in prog)
Out[17]:
In [18]:
rg.node_at_link_tail
Out[18]:
In [19]:
rg.node_at_link_head
Out[19]:
In [20]:
rg.face_at_link # ID of face at each link, or BAD_INDEX_VALUE if none
Out[20]:
In [21]:
rg.number_of_faces
Out[21]:
In [22]:
rg.face_width
Out[22]:
In [23]:
rg.link_at_face # ID of link that crosses each face
Out[23]:
In [24]:
from landlab import HexModelGrid
hg = HexModelGrid(3, 3)
In [25]:
hg.number_of_nodes
Out[25]:
In [26]:
hg.node_x
Out[26]:
In [27]:
hg.node_y
Out[27]:
In [28]:
hg.status_at_node
Out[28]:
In [29]:
hg.cell_at_node
Out[29]:
In [30]:
hg.links_at_node # Note that these are sorted by angle, CCW from +x
Out[30]:
In [31]:
hg.link_dirs_at_node # link direction relative to node: +1 incoming, -1 outgoing, 0 none
Out[31]:
In [32]:
hg.number_of_cells
Out[32]:
In [33]:
hg.area_of_cell
Out[33]:
In [34]:
hg.node_at_cell
Out[34]:
In [35]:
hg.faces_at_cell
Out[35]:
In [36]:
hg.number_of_links
Out[36]:
In [37]:
hg.link_length
Out[37]:
In [38]:
hg.node_at_link_tail
Out[38]:
In [39]:
hg.node_at_link_head
Out[39]:
In [40]:
hg.face_at_link
Out[40]:
In [41]:
hg.number_of_faces
Out[41]:
In [42]:
hg.face_width
Out[42]:
In [43]:
hg.link_at_face
Out[43]:
In [ ]:
In [ ]: