diff --git a/lectures/2.4_formats_and_performance/2.4_formats_and_performance.md b/lectures/2.4_formats_and_performance/2.4_formats_and_performance.md index 8663d1b9..b76890a6 100644 --- a/lectures/2.4_formats_and_performance/2.4_formats_and_performance.md +++ b/lectures/2.4_formats_and_performance/2.4_formats_and_performance.md @@ -198,5 +198,18 @@ Solution: Calculate the volume of data needed for the snow workflow according to the collections, time steps, bands, resolutions, spatial extent selected in the previous chapter, value types, format, compression estimate, etc. (this only if we define snow workflow already here) - Don't use snow workflow -> Set that information -## Energy consumption Quiz -TODO: \ No newline at end of file +## Resource Consumption Quiz + +What does `CodeCarbon` measure in Python code? *Answer in exercise: 24_formats_and_performance.ipynb* + + [( )] Code execution speed + [(X)] Energy consumption of code execution + [( )] Memory usage of variables + [( )] The number of lines in the code + +Approximately how many meters of driving a Mars rover would consume the same amount of energy as our sample NDVI workflow? *Answer in exercise: 24_formats_and_performance.ipynb* + + [(X)] 0-2 meter + [( )] 2-4 meters + [( )] 4-6 meters + [( )] 6-8 meters diff --git a/lectures/2.4_formats_and_performance/exercises/24_formats_and_performance.ipynb b/lectures/2.4_formats_and_performance/exercises/24_formats_and_performance.ipynb index 035b51f0..64c6b4c9 100644 --- a/lectures/2.4_formats_and_performance/exercises/24_formats_and_performance.ipynb +++ b/lectures/2.4_formats_and_performance/exercises/24_formats_and_performance.ipynb @@ -20,6 +20,13 @@ "# 2.4 Formats and Performance" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Usage of resources" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -474,6 +481,13 @@ "tracker.stop_experiment()" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Quiz hint: look carefully energy emission equivalents**" + ] + }, { "cell_type": "code", "execution_count": 10,