{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# SFBOFS (Regular Grid 2D)\n", "\n", "NOTE: currently Broken -- seems not to be auto-detecting the grid?\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[](https://colab.research.google.com/github/asascience-open/xarray-subset-grid/blob/main/docs/examples/regular_grid_2d.ipynb)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Install required libraries\n", "# !pip install -q xarray_subset_grid@git+https://github.com/asascience-open/xarray-subset-grid.git\n", "# !pip install -q s3fs cftime xarray cf-xarray fsspec dask h5netcdf" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 68MB\n",
"Dimensions: (Depth: 21, ny: 329, nx: 553, time: 1)\n",
"Coordinates:\n",
" * Depth (Depth) float64 168B 0.0 1.0 2.0 4.0 ... 70.0 80.0 90.0 100.0\n",
" Latitude (ny, nx) float64 1MB dask.array<chunksize=(329, 553), meta=np.ndarray>\n",
" Longitude (ny, nx) float64 1MB dask.array<chunksize=(329, 553), meta=np.ndarray>\n",
" * time (time) datetime64[ns] 8B 2024-07-24T12:59:59.999999744\n",
"Dimensions without coordinates: ny, nx\n",
"Data variables:\n",
" h (ny, nx) float64 1MB dask.array<chunksize=(329, 553), meta=np.ndarray>\n",
" mask (ny, nx) float64 1MB dask.array<chunksize=(329, 553), meta=np.ndarray>\n",
" Times (time) |S26 26B dask.array<chunksize=(1,), meta=np.ndarray>\n",
" zeta (time, ny, nx) float32 728kB dask.array<chunksize=(1, 329, 553), meta=np.ndarray>\n",
" zetatomllw (time, ny, nx) float32 728kB dask.array<chunksize=(1, 329, 553), meta=np.ndarray>\n",
" u_eastward (time, Depth, ny, nx) float32 15MB dask.array<chunksize=(1, 11, 165, 277), meta=np.ndarray>\n",
" v_northward (time, Depth, ny, nx) float32 15MB dask.array<chunksize=(1, 11, 165, 277), meta=np.ndarray>\n",
" temp (time, Depth, ny, nx) float32 15MB dask.array<chunksize=(1, 11, 165, 277), meta=np.ndarray>\n",
" salt (time, Depth, ny, nx) float32 15MB dask.array<chunksize=(1, 11, 165, 277), meta=np.ndarray>\n",
"Attributes: (12/14)\n",
" title: SFBOFS\n",
" institution: School for Marine Science and Technology\n",
" source: FVCOM_4.4.7\n",
" history: model started at: 22/07/2024 21:33\n",
" references: http://fvcom.smast.umassd.edu, https://githu...\n",
" Conventions: CF-1.0\n",
" ... ...\n",
" Tidal_Forcing: Tidal Forcing Time Series Title: sfbofs late...\n",
" River_Forcing: THERE ARE 9 RIVERS IN THIS MODEL.\\nRIVER INF...\n",
" GroundWater_Forcing: GROUND WATER FORCING IS OFF!\n",
" Surface_Heat_Forcing: FVCOM variable surface heat forcing file:\\nF...\n",
" Surface_Wind_Forcing: FVCOM variable surface Wind forcing:\\nFILE N...\n",
" Surface_PrecipEvap_Forcing: SURFACE PRECIPITATION FORCING IS OFF