Skip to content

Commit

Permalink
Merge pull request #184 from ncasuk/netCDF
Browse files Browse the repository at this point in the history
NetCDF4 Exercises
  • Loading branch information
nf679 authored Nov 6, 2024
2 parents 1db9cbe + de345f3 commit ada5a82
Show file tree
Hide file tree
Showing 26 changed files with 8,155 additions and 196 deletions.
2,920 changes: 2,920 additions & 0 deletions python-data/exercises/ex01_xarray_intro.ipynb

Large diffs are not rendered by default.

1,781 changes: 1,781 additions & 0 deletions python-data/exercises/ex02_plotting_and_aggregation.ipynb

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions python-data/exercises/ex03_groupby_processing_and_masking.ipynb

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions python-data/exercises/ex04_cf_python.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "2762201c-7657-4894-9e07-aaa62c49efec",
"metadata": {},
"source": [
"# Exercise 4"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 + Jaspy",
"language": "python",
"name": "jaspy"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,168 +2,160 @@
"cells": [
{
"cell_type": "markdown",
"id": "4fc1b0c3-f3ec-4724-b24c-0e42bfdb2cb4",
"id": "e2574b49-2028-4bdf-a012-60d339dca6ac",
"metadata": {},
"source": [
"# Exercise 7: NetCDF4"
"# Exercise 5: matplotlib"
]
},
{
"cell_type": "markdown",
"id": "52089a6c-e341-4bd0-be15-72b1cace3aa8",
"id": "f3612836-233d-479f-a2a8-e7ed99dc1133",
"metadata": {},
"source": [
"## Creating/opening/closing netCDF files"
"## Simple example"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e4e990f7-1797-4ac8-8b6c-5ec76dabd1e9",
"id": "b9686a4f-b56f-4ae1-a007-cbf5330ad346",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "1c4e8491-204a-4bcf-9696-3535a37c7b8d",
"id": "5a84dc80-d94a-4440-8806-c51a2fbf9077",
"metadata": {},
"source": [
"## Groups, dimensions and variables"
"## Parts of a figure"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d09629eb-afd4-43d9-b5a7-f7f23867ae35",
"id": "71cd4946-e8bd-40b0-9d21-c7a6fedb11bd",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "c1556ff8-01f0-4107-b40f-7836659a9627",
"id": "f2e84578-b714-46db-b276-9e11029552dc",
"metadata": {},
"source": [
"## Attributes"
"## Types of inputs to plotting functions"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "900c7ed5-7a5e-49f8-b692-a5e60dec2c90",
"id": "cc28b613-6234-48cd-acc5-75c6fe943985",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "df7ec8fe-81b3-4768-9f4b-c643d4a8c254",
"id": "b057c40a-511b-43ba-840a-bae423a697e9",
"metadata": {},
"source": [
"## Writing data to and receiving data from netCDF variables"
"## Coding styles"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "137805a0-176d-4364-85a1-defc7f71f5c4",
"id": "28f2c69e-3fdd-4454-811a-4566505b8f4c",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "5be3bbc0-5276-4696-9332-7a81e8fefeab",
"id": "8f6ba121-ea31-441c-8ac6-83ad85605684",
"metadata": {},
"source": [
"## Time-coordinates"
"## Styling"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f48a4d2c-4778-42b8-8afd-fab28229579a",
"id": "bffdda96-8f76-48ed-9d2c-178cd52bad2d",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "8264bcd2-1c62-4878-85b4-3589668de573",
"id": "007ed496-b9c6-4c28-84b3-fa72264bb9e4",
"metadata": {},
"source": [
"## Multi-file datasets"
"## Labelling"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9fe8137c-e81e-4fcb-8598-88b96f120ac2",
"id": "abbdc11c-e2ec-4bd6-aee7-50cadbb7174a",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "b82b55e8-993d-49ab-bde8-d3a6cb383c03",
"id": "59e3abfd-3389-4ee9-87be-029af1fce401",
"metadata": {},
"source": [
"## Compression of variables"
"## Axes"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ebeab6b6-99dc-450f-84f1-98f6ecb2425d",
"id": "f6d26ccd-7e88-4b7a-8afc-f8d5cda92aec",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "8d71f0a2-1f74-4274-99b9-4e3ca676851d",
"id": "ef2b0027-33a2-4c69-8bff-fada5fcc0daa",
"metadata": {},
"source": [
"## Variable-length data types"
"## Colour mapped data"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cac1a51b-6599-4917-b73a-2c35e8aacf55",
"id": "83decc6e-b602-4a37-ab59-fbd604c5f8b8",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "7f5e9010-e996-47eb-8c22-4634388d7873",
"id": "71a90323-7b93-4bda-b519-6a945e812e3a",
"metadata": {},
"source": [
"## Enum data type"
"## Multiple figures/axes"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f3473edf-f46f-4301-b217-9b6e8f8d0fb5",
"id": "07d0bf2f-5615-4a96-b860-0c41fb9732ba",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "6a042cb1-1db3-4eb6-9aba-5edd8bf05a84",
"metadata": {},
"source": [
"## Extension"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1c0af65e-bc55-4062-a426-ebf0d8a839c7",
"id": "3d3d277c-3440-484a-a9a4-69f1d0168ec4",
"metadata": {},
"outputs": [],
"source": []
Expand Down
97 changes: 97 additions & 0 deletions python-data/exercises/ex06_numpy.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "de2a613e-7102-4e10-8fee-4d07c0e1f9eb",
"metadata": {},
"source": [
"# Exercise 6: numpy"
]
},
{
"cell_type": "markdown",
"id": "91d90486-6b89-495c-b5bb-fb610dc73e15",
"metadata": {},
"source": [
"## Basics"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "58ccfac7-b803-4d9d-a728-c3dc08ca8db5",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "79f773e8-ab4e-4273-b398-b1a6f5682677",
"metadata": {},
"source": [
"## Shape manipulation"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8b7141e5-f59f-47bd-a26c-19d342df5d18",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "288fc0f9-7014-4d9b-9b02-475b9c99d4e7",
"metadata": {},
"source": [
"## Copies and views"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "182c4af3-c08d-40f2-a08b-4b3fe427b155",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "5e6e8f7e-6d3b-4405-bc1c-4afa9d6188d4",
"metadata": {},
"source": [
"## Advanced"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dc6e841f-074d-4d8d-9f6e-63e4f2032ff1",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 + Jaspy",
"language": "python",
"name": "jaspy"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit ada5a82

Please sign in to comment.