Skip to content

Commit

Permalink
FIX: Fix and cleanup the regridding notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Dec 9, 2024
1 parent 670096d commit 05013d6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 89 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- globus-compute-endpoint
- netCDF4
- xarray
- xeofs
- xeofs<3
- cf_xarray
- clisops
- rooki
Expand Down
12 changes: 7 additions & 5 deletions notebooks/ex-regrid-plot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
"# Run this on the DKRZ node in Germany\n",
"os.environ[\"ROOK_URL\"] = \"http://rook.dkrz.de/wps\"\n",
"intake_esgf.conf.set(indices={\"anl-dev\": False,\n",
" \"ornl-dev\": False,\n",
" \"esgf-data.dkrz.de\": True})\n",
" \"ornl-dev\": False,\n",
" \"esgf-data.dkrz.de\": True})\n",
"\n",
"import rooki.operators as ops\n",
"import matplotlib.pyplot as plt\n",
Expand Down Expand Up @@ -156,9 +156,11 @@
},
"outputs": [],
"source": [
"def separate_dataset_id(full_dataset):\n",
" dataset_id = full_dataset[0].split(\"|\")[0]\n",
" return dataset_id\n"
"def separate_dataset_id(id_list):\n",
" rooki_id = id_list[0]\n",
" rooki_id = rooki_id.split(\"|\")[0]\n",
" #rooki_id = f\"css03_data.{rooki_id}\" # <-- just something you have to know for now :(\n",
" return rooki_id\n"
]
},
{
Expand Down
Loading

0 comments on commit 05013d6

Please sign in to comment.