diff --git a/README.md b/README.md index 5b96ba8ae4d9b32236ec76c9bf4307a8648620d8..5eaa6e242ddfc13270ca72e767d5ae2ff3e55f0f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# cctrigrid +# TriCCo -A library for computing connected components on an unstructured triangular grid +A library for computing connected components on an unstructured triangular grid. Authors: * Aiko Voigt (University of Vienna) diff --git a/examples/example-2d.ipynb b/examples/example-2d.ipynb index 2875354f47c0fd6738ba9ad9912e277ab7344a58..0a070faebef3e487682a841e4718621bd2872090 100644 --- a/examples/example-2d.ipynb +++ b/examples/example-2d.ipynb @@ -20,7 +20,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Need to add cctrigrid functions to the system path" + "## Need to add tricco functions to the system path" ] }, { @@ -30,7 +30,7 @@ "outputs": [], "source": [ "import sys\n", - "sys.path.append( '../cctrigrid/' )" + "sys.path.append( '../tricco/' )" ] }, { @@ -90,8 +90,8 @@ "metadata": {}, "outputs": [], "source": [ - "import cctrigrid \n", - "cubulation = cctrigrid.make_cubulation(start_triangle=5738, radius=102, print_progress=False)" + "import tricco \n", + "cubulation = tricco.make_cubulation(start_triangle=5738, radius=102, print_progress=False)" ] }, { @@ -183,7 +183,7 @@ "metadata": {}, "outputs": [], "source": [ - "components_vertex = cctrigrid.make_connected_components_2d(cubulation, field_cube, connectivity = 'vertex')" + "components_vertex = tricco.make_connected_components_2d(cubulation, field_cube, connectivity = 'vertex')" ] }, { @@ -217,7 +217,7 @@ "metadata": {}, "outputs": [], "source": [ - "components_edge = cctrigrid.make_connected_components_2d(cubulation, field_cube, connectivity = 'edge')\n", + "components_edge = tricco.make_connected_components_2d(cubulation, field_cube, connectivity = 'edge')\n", "\n", "field_cc_edge = np.zeros(field.size)\n", "for icomp in range(len(components_edge)):\n", diff --git a/examples/example-3d.ipynb b/examples/example-3d.ipynb index 10bee0cba8ca5059ae0b99f4b59f727c4ef22ae8..29300498fa5c3a893bb09455be648447e57051f9 100644 --- a/examples/example-3d.ipynb +++ b/examples/example-3d.ipynb @@ -30,7 +30,7 @@ "outputs": [], "source": [ "import sys\n", - "sys.path.append( '../cctrigrid/' )" + "sys.path.append( '../tricco/' )" ] }, { @@ -66,8 +66,8 @@ "metadata": {}, "outputs": [], "source": [ - "import cctrigrid \n", - "cubulation = cctrigrid.make_cubulation(start_triangle=5738, radius=102, print_progress=False)" + "import tricco \n", + "cubulation = tricco.make_cubulation(start_triangle=5738, radius=102, print_progress=False)" ] }, { @@ -106,7 +106,7 @@ "metadata": {}, "outputs": [], "source": [ - "components_vertex = cctrigrid.make_connected_components_3d(cubulation, field_cube, connectivity = 'vertex')" + "components_vertex = tricco.make_connected_components_3d(cubulation, field_cube, connectivity = 'vertex')" ] }, { @@ -129,7 +129,7 @@ "metadata": {}, "outputs": [], "source": [ - "components_edge = cctrigrid.make_connected_components_3d(cubulation, field_cube, connectivity = 'edge')" + "components_edge = tricco.make_connected_components_3d(cubulation, field_cube, connectivity = 'edge')" ] }, { diff --git a/cctrigrid/config.py b/tricco/config.py similarity index 100% rename from cctrigrid/config.py rename to tricco/config.py diff --git a/cctrigrid/cubulation_functions.py b/tricco/cubulation_functions.py similarity index 100% rename from cctrigrid/cubulation_functions.py rename to tricco/cubulation_functions.py diff --git a/cctrigrid/grid_functions.py b/tricco/grid_functions.py similarity index 100% rename from cctrigrid/grid_functions.py rename to tricco/grid_functions.py diff --git a/cctrigrid/prepare.py b/tricco/prepare.py similarity index 96% rename from cctrigrid/prepare.py rename to tricco/prepare.py index 019432791b68e39a5c2f970a8530709ef6d4ab99..8332de0f6ca29a008e3f2a3443bd2993eca0b1f0 100644 --- a/cctrigrid/prepare.py +++ b/tricco/prepare.py @@ -21,7 +21,7 @@ def grid_icon(path, file): ds_grid = ds_grid[['neighbor_cell_index', 'edge_of_cell', 'edge_vertices']] # in the ICON model grid, the indexing of the triangle cells and vertices - # starts with 1 and not with 0 as assumed by cctrigrid --> we need to subtract 1 here + # starts with 1 and not with 0 as assumed by tricco --> we need to subtract 1 here ds_grid['neighbor_cell_index'] = ds_grid['neighbor_cell_index'] - 1 ds_grid['edge_of_cell'] = ds_grid['edge_of_cell'] - 1 ds_grid['edge_vertices'] = ds_grid['edge_vertices'] - 1 @@ -97,4 +97,4 @@ def field_icon_lev(path, file, var, threshold, cubulation): cube = entry[1] # cube coordinate field_cube[lev, cube[0], cube[1], cube[2]] = field[lev, triangle] - return field, field_cube \ No newline at end of file + return field, field_cube diff --git a/cctrigrid/cctrigrid.py b/tricco/tricco.py similarity index 100% rename from cctrigrid/cctrigrid.py rename to tricco/tricco.py