-
Notifications
You must be signed in to change notification settings - Fork 45
Add mesh_layout argument with rectilinear two-step coordinate/connectivity architecture #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 13 commits
6f82d43
63af996
f417962
30ddb19
802b66a
21d33e8
8d18530
4f5a8de
e7e3c03
ef478a2
305e66a
b38fd64
4372a3f
4f48ed3
0b6ff4a
c7bdeac
51ea189
220fa44
edbce82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,18 +57,16 @@ def create_keisler_graph( | |
| """ | ||
| return create_all_graph_components( | ||
| coords=coords, | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| mesh_layout="rectilinear", | ||
| mesh_layout_kwargs=dict(mesh_node_spacing=mesh_node_distance), | ||
| m2m_connectivity="flat", | ||
| m2m_connectivity_kwargs=dict(mesh_node_distance=mesh_node_distance), | ||
| m2m_connectivity_kwargs=dict(pattern="8-star"), | ||
|
||
| g2m_connectivity="within_radius", | ||
| g2m_connectivity_kwargs=dict(rel_max_dist=0.51), | ||
| m2g_connectivity="nearest_neighbours", | ||
| g2m_connectivity_kwargs=dict( | ||
| rel_max_dist=0.51, | ||
| ), | ||
| m2g_connectivity_kwargs=dict( | ||
| max_num_neighbours=4, | ||
| ), | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| m2g_connectivity_kwargs=dict(max_num_neighbours=4), | ||
| decode_mask=decode_mask, | ||
| return_components=return_components, | ||
| ) | ||
|
|
@@ -132,22 +130,20 @@ def create_graphcast_graph( | |
| """ | ||
| return create_all_graph_components( | ||
| coords=coords, | ||
| m2m_connectivity="flat_multiscale", | ||
| m2m_connectivity_kwargs=dict( | ||
| mesh_node_distance=mesh_node_distance, | ||
| level_refinement_factor=level_refinement_factor, | ||
| max_num_levels=max_num_levels, | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| mesh_layout="rectilinear", | ||
| mesh_layout_kwargs=dict( | ||
| mesh_node_spacing=mesh_node_distance, | ||
| refinement_factor=level_refinement_factor, | ||
| max_num_refinement_levels=max_num_levels, | ||
| ), | ||
| m2m_connectivity="flat_multiscale", | ||
| m2m_connectivity_kwargs=dict(pattern="8-star"), | ||
|
||
| g2m_connectivity="within_radius", | ||
| g2m_connectivity_kwargs=dict(rel_max_dist=0.51), | ||
| m2g_connectivity="nearest_neighbours", | ||
| g2m_connectivity_kwargs=dict( | ||
| rel_max_dist=0.51, | ||
| ), | ||
| m2g_connectivity_kwargs=dict( | ||
| max_num_neighbours=4, | ||
| ), | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| m2g_connectivity_kwargs=dict(max_num_neighbours=4), | ||
| decode_mask=decode_mask, | ||
| return_components=return_components, | ||
| ) | ||
|
|
@@ -216,22 +212,23 @@ def create_oskarsson_hierarchical_graph( | |
| """ | ||
| return create_all_graph_components( | ||
| coords=coords, | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| mesh_layout="rectilinear", | ||
| mesh_layout_kwargs=dict( | ||
| mesh_node_spacing=mesh_node_distance, | ||
| refinement_factor=level_refinement_factor, | ||
| max_num_refinement_levels=max_num_levels, | ||
| ), | ||
| m2m_connectivity="hierarchical", | ||
| m2m_connectivity_kwargs=dict( | ||
| mesh_node_distance=mesh_node_distance, | ||
| level_refinement_factor=level_refinement_factor, | ||
| max_num_levels=max_num_levels, | ||
| intra_level=dict(pattern="8-star"), | ||
|
||
| inter_level=dict(pattern="nearest", k=1), | ||
| ), | ||
| g2m_connectivity="within_radius", | ||
| g2m_connectivity_kwargs=dict(rel_max_dist=0.51), | ||
| m2g_connectivity="nearest_neighbours", | ||
| g2m_connectivity_kwargs=dict( | ||
| rel_max_dist=0.51, | ||
| ), | ||
| m2g_connectivity_kwargs=dict( | ||
| max_num_neighbours=4, | ||
| ), | ||
| coords_crs=coords_crs, | ||
| graph_crs=graph_crs, | ||
| m2g_connectivity_kwargs=dict(max_num_neighbours=4), | ||
| decode_mask=decode_mask, | ||
| return_components=return_components, | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.