Skip to content

Commit

Permalink
Add content to data ex01
Browse files Browse the repository at this point in the history
  • Loading branch information
nf679 committed Aug 14, 2024
1 parent 1bb7ca8 commit 2cf915e
Show file tree
Hide file tree
Showing 8 changed files with 3,210 additions and 11 deletions.
Binary file added python-data/data/tas_rcp45_2055_mon_avg_change.nc
Binary file not shown.
Binary file added python-data/images/multidimensional_array.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,795 changes: 2,793 additions & 2 deletions python-data/solutions/ex01_xarray_intro.ipynb

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions python-data/solutions/ex02_plotting_and_aggregation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,37 @@
"id": "38e495fd-dc7a-4e98-a2ab-d7b28560db48",
"metadata": {},
"source": [
"# Exercise 2"
"# Exercise 2: More xarray"
]
},
{
"cell_type": "markdown",
"id": "f1f5a3da-837a-4aec-9562-3df9f416cb23",
"metadata": {},
"source": [
"## Plotting"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "153fe887-2921-419e-917c-103703a029ed",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "a65a89e3-cd8b-4ff6-8b44-1007e978d008",
"metadata": {},
"source": [
"## Arithmetic and Aggregation"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3ee70a9c-5d94-4bc2-860c-83107e1fb80d",
"id": "7df65663-156e-4341-b98f-9562fa7bc7e0",
"metadata": {},
"outputs": [],
"source": []
Expand Down
28 changes: 26 additions & 2 deletions python-data/solutions/ex03_groupby_processing_and_masking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,37 @@
"id": "7e3a36bd-b713-4a08-9f6c-a6a0260c42c0",
"metadata": {},
"source": [
"# Exercise 3"
"# Exercise 3: More xarray"
]
},
{
"cell_type": "markdown",
"id": "1fbfc303-a5c7-490f-887a-30ed1d93ffb6",
"metadata": {},
"source": [
"## GroupBy processing"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "58652e91-421e-4e0e-bfe6-187395b34409",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "983ec3e6-228c-4bd5-b72b-6f3e0f05df93",
"metadata": {},
"source": [
"## Masking"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f7509e48-66cd-4ce4-8557-d747f53a5a4f",
"id": "98826f6f-4cfc-4355-bec7-7cf84cd1dd1a",
"metadata": {},
"outputs": [],
"source": []
Expand Down
148 changes: 146 additions & 2 deletions python-data/solutions/ex05_matplotlib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,157 @@
"id": "e2574b49-2028-4bdf-a012-60d339dca6ac",
"metadata": {},
"source": [
"# Exercise 5"
"# Exercise 5: matplotlib"
]
},
{
"cell_type": "markdown",
"id": "f3612836-233d-479f-a2a8-e7ed99dc1133",
"metadata": {},
"source": [
"## Simple example"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b9686a4f-b56f-4ae1-a007-cbf5330ad346",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "5a84dc80-d94a-4440-8806-c51a2fbf9077",
"metadata": {},
"source": [
"## Parts of a figure"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "71cd4946-e8bd-40b0-9d21-c7a6fedb11bd",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "f2e84578-b714-46db-b276-9e11029552dc",
"metadata": {},
"source": [
"## Types of inputs to plotting functions"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cc28b613-6234-48cd-acc5-75c6fe943985",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "b057c40a-511b-43ba-840a-bae423a697e9",
"metadata": {},
"source": [
"## Coding styles"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "28f2c69e-3fdd-4454-811a-4566505b8f4c",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "8f6ba121-ea31-441c-8ac6-83ad85605684",
"metadata": {},
"source": [
"## Styling"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bffdda96-8f76-48ed-9d2c-178cd52bad2d",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "007ed496-b9c6-4c28-84b3-fa72264bb9e4",
"metadata": {},
"source": [
"## Labelling"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "abbdc11c-e2ec-4bd6-aee7-50cadbb7174a",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "59e3abfd-3389-4ee9-87be-029af1fce401",
"metadata": {},
"source": [
"## Axes"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f6d26ccd-7e88-4b7a-8afc-f8d5cda92aec",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "ef2b0027-33a2-4c69-8bff-fada5fcc0daa",
"metadata": {},
"source": [
"## Colour mapped data"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "83decc6e-b602-4a37-ab59-fbd604c5f8b8",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "71a90323-7b93-4bda-b519-6a945e812e3a",
"metadata": {},
"source": [
"## Multiple figures/axes"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "07d0bf2f-5615-4a96-b860-0c41fb9732ba",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "c7851d31-5166-408c-9bb3-45e33220cddf",
"id": "3d3d277c-3440-484a-a9a4-69f1d0168ec4",
"metadata": {},
"outputs": [],
"source": []
Expand Down
60 changes: 58 additions & 2 deletions python-data/solutions/ex06_numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,69 @@
"id": "de2a613e-7102-4e10-8fee-4d07c0e1f9eb",
"metadata": {},
"source": [
"# Exercise 6"
"# 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": "c79b9070-522c-4e82-b8d6-de1555169ead",
"id": "dc6e841f-074d-4d8d-9f6e-63e4f2032ff1",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading

0 comments on commit 2cf915e

Please sign in to comment.