Skip to content

Commit

Permalink
Merge pull request #61 from jay-hennen/main
Browse files Browse the repository at this point in the history
rewrote the subset selector for sgrid, added test based on example notebook
  • Loading branch information
ChrisBarker-NOAA authored Sep 13, 2024
2 parents b5c1fbe + 83ad4af commit f2bd644
Show file tree
Hide file tree
Showing 19 changed files with 11,794 additions and 11,654 deletions.
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

0 comments on commit f2bd644

Please sign in to comment.