Skip to content
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

rewrote the subset selector for sgrid, added test based on example notebook #61

Merged
merged 9 commits into from
Sep 13, 2024
2 changes: 0 additions & 2 deletions docs/examples/gfs_opendap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17587,10 +17587,8 @@
"source": [
"import cf_xarray # noqa\n",
"import datetime\n",
"import numpy as np\n",
"import xarray as xr\n",
"\n",
"import xarray_subset_grid as xsg\n",
"\n",
"\n",
"current_date = datetime.datetime.now().strftime(\"%Y%m%d\")\n",
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/nam_opendap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11672,10 +11672,8 @@
"source": [
"import cf_xarray # noqa\n",
"import datetime\n",
"import numpy as np\n",
"import xarray as xr\n",
"\n",
"import xarray_subset_grid as xsg\n",
"\n",
"\n",
"current_date = datetime.datetime.now().strftime(\"%Y%m%d\")\n",
Expand Down
1 change: 0 additions & 1 deletion docs/examples/regular_grid_2d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@
"import numpy as np\n",
"import xarray as xr\n",
"\n",
"import xarray_subset_grid\n",
"\n",
"# Open the dataset from NODD s3 bucket directly\n",
"fs = fsspec.filesystem(\"s3\", anon=True)\n",
Expand Down
5 changes: 3 additions & 2 deletions docs/examples/roms-compare.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5293,7 +5293,6 @@
}
],
"source": [
"import cf_xarray\n",
"import fsspec\n",
"import numpy as np\n",
"import xarray as xr\n",
Expand Down Expand Up @@ -8601,7 +8600,9 @@
}
],
"source": [
"ds_subset_control = xr.open_dataset('./wcofs-subset-control.nc', chunks={}, backend_kwargs={'decode_times': False})\n",
"ds_subset_control = xr.open_dataset('./wcofs-subset-control.nc',\n",
" chunks={},\n",
" backend_kwargs={'decode_times': False})\n",
"ds_subset_control"
]
},
Expand Down
1 change: 0 additions & 1 deletion docs/examples/roms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5235,7 +5235,6 @@
}
],
"source": [
"import cf_xarray\n",
"import fsspec\n",
"import numpy as np\n",
"import xarray as xr\n",
Expand Down
1 change: 0 additions & 1 deletion docs/examples/roms_3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4150,7 +4150,6 @@
}
],
"source": [
"import cf_xarray\n",
"import fsspec\n",
"import numpy as np\n",
"import xarray as xr\n",
Expand Down
1 change: 0 additions & 1 deletion docs/examples/rtofs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,6 @@
"import cf_xarray # noqa\n",
"import datetime\n",
"import fsspec\n",
"import numpy as np\n",
"import xarray as xr\n",
"\n",
"import xarray_subset_grid.accessor # noqa: F401\n",
Expand Down
4 changes: 3 additions & 1 deletion docs/examples/sscofs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3883,7 +3883,9 @@
}
],
"source": [
"ds = xarray_subset_grid.grids.ugrid.assign_ugrid_topology(ds, face_node_connectivity='nv', face_face_connectivity='nbe')\n",
"ds = xarray_subset_grid.grids.ugrid.assign_ugrid_topology(ds,\n",
" face_node_connectivity='nv',\n",
" face_face_connectivity='nbe')\n",
"ds.cf['mesh_topology']"
]
},
Expand Down
Loading