<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=CodeBreak_24%2F11%2F2021</id>
	<title>CodeBreak 24/11/2021 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=CodeBreak_24%2F11%2F2021"/>
	<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;action=history"/>
	<updated>2026-10-15T12:30:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3395&amp;oldid=prev</id>
		<title>C.carouge at 04:53, 30 November 2021</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3395&amp;oldid=prev"/>
		<updated>2021-11-30T04:53:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:53, 30 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Calculation would not complete due to dask error. It was suggested to precalculate the mean of the velocity fields to reduce the size and complexity of the dask task graph. This did not solve the immediate issue, but checking the &amp;lt;/span&amp;gt;[https://cosima-recipes.readthedocs.io/en/latest/documented_examples/Decomposing_kinetic_energy_into_mean_and_transient.html#gallery-documented-examples-decomposing-kinetic-energy-into-mean-and-transient-ipynb &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;cosima-recipe&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;on which it was based suggested this calculation requires more resources (200GB of RAM, 48 cpus) than the largest OOD instance (46GB, 16 cpus).&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Calculation would not complete due to dask error. It was suggested to precalculate the mean of the velocity fields to reduce the size and complexity of the dask task graph. This did not solve the immediate issue, but checking the &amp;lt;/span&amp;gt;[https://cosima-recipes.readthedocs.io/en/latest/documented_examples/Decomposing_kinetic_energy_into_mean_and_transient.html#gallery-documented-examples-decomposing-kinetic-energy-into-mean-and-transient-ipynb &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;cosima-recipe&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;on which it was based suggested this calculation requires more resources (200GB of RAM, 48 cpus) than the largest OOD instance (46GB, 16 cpus).&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;tt&amp;gt;dask.array.map_blocks&amp;lt;/tt&amp;gt; but it can be more tricky to get it right. The following blog post &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;show &lt;/del&gt;how to proceed for those 2 approaches &amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;tt&amp;gt;dask.array.map_blocks&amp;lt;/tt&amp;gt; but it can be more tricky to get it right. The following blog post &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shows &lt;/ins&gt;how to proceed for those 2 approaches &amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>C.carouge</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3394&amp;oldid=prev</id>
		<title>C.carouge at 04:52, 30 November 2021</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3394&amp;oldid=prev"/>
		<updated>2021-11-30T04:52:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:52, 30 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Calculation would not complete due to dask error. It was suggested to precalculate the mean of the velocity fields to reduce the size and complexity of the dask task graph. This did not solve the immediate issue, but checking the &amp;lt;/span&amp;gt;[https://cosima-recipes.readthedocs.io/en/latest/documented_examples/Decomposing_kinetic_energy_into_mean_and_transient.html#gallery-documented-examples-decomposing-kinetic-energy-into-mean-and-transient-ipynb &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;cosima-recipe&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;on which it was based suggested this calculation requires more resources (200GB of RAM, 48 cpus) than the largest OOD instance (46GB, 16 cpus).&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Calculation would not complete due to dask error. It was suggested to precalculate the mean of the velocity fields to reduce the size and complexity of the dask task graph. This did not solve the immediate issue, but checking the &amp;lt;/span&amp;gt;[https://cosima-recipes.readthedocs.io/en/latest/documented_examples/Decomposing_kinetic_energy_into_mean_and_transient.html#gallery-documented-examples-decomposing-kinetic-energy-into-mean-and-transient-ipynb &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;cosima-recipe&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;on which it was based suggested this calculation requires more resources (200GB of RAM, 48 cpus) than the largest OOD instance (46GB, 16 cpus).&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;tt&amp;gt;dask.array.map_blocks&amp;lt;/tt&amp;gt; but it can be more tricky to get it right. The following blog post show how to proceed for those 2 approaches&amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;tt&amp;gt;dask.array.map_blocks&amp;lt;/tt&amp;gt; but it can be more tricky to get it right. The following blog post show how to proceed for those 2 approaches &amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>C.carouge</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3393&amp;oldid=prev</id>
		<title>C.carouge at 04:52, 30 November 2021</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3393&amp;oldid=prev"/>
		<updated>2021-11-30T04:52:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:52, 30 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;&amp;#160; font-family:Arial;&amp;#160; color:#434343;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;dask.array.map_blocks&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt; but it can be more tricky to get it right. The following blog post show how to proceed for those 2 approaches&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&lt;/del&gt;&amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;font-family:Arial; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;color:#000000; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;background-color:transparent; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;font-weight:400; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;font-style:normal; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;font-variant:normal; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;text-decoration:none; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;vertical-align:baseline; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;white-space:pre; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tt&lt;/ins&gt;&amp;gt;dask.array.map_blocks&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tt&lt;/ins&gt;&amp;gt; but it can be more tricky to get it right. The following blog post show how to proceed for those 2 approaches&amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#1155cc;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:underline;&amp;#160; -webkit-text-decoration-skip:none;&amp;#160; text-decoration-skip-ink:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;&amp;#160; font-family:Arial;&amp;#160; color:#000000;&amp;#160; background-color:transparent;&amp;#160; font-weight:400;&amp;#160; font-style:normal;&amp;#160; font-variant:normal;&amp;#160; text-decoration:none;&amp;#160; vertical-align:baseline;&amp;#160; white-space:pre;&amp;#160; white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>C.carouge</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3392&amp;oldid=prev</id>
		<title>C.carouge: Created page with &quot; = &lt;span style=&quot;font-size:13.999999999999998pt;  font-family:Arial;  color:#434343;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=CodeBreak_24/11/2021&amp;diff=3392&amp;oldid=prev"/>
		<updated>2021-11-30T04:51:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; = &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;  font-family:Arial;  color:#434343;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;  font-family:Arial;  color:#434343;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;Eddy kinetic energy calculation&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#000000;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;Calculation would not complete due to dask error. It was suggested to precalculate the mean of the velocity fields to reduce the size and complexity of the dask task graph. This did not solve the immediate issue, but checking the &amp;lt;/span&amp;gt;[https://cosima-recipes.readthedocs.io/en/latest/documented_examples/Decomposing_kinetic_energy_into_mean_and_transient.html#gallery-documented-examples-decomposing-kinetic-energy-into-mean-and-transient-ipynb &amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#1155cc;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:underline;  -webkit-text-decoration-skip:none;  text-decoration-skip-ink:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;cosima-recipe&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#000000;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;on which it was based suggested this calculation requires more resources (200GB of RAM, 48 cpus) than the largest OOD instance (46GB, 16 cpus).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span style=&amp;quot;font-size:13.999999999999998pt;  font-family:Arial;  color:#434343;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;Antecedent precipitation index&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;docs-internal-guid-fc14831d-7fff-4114-765f-ff5bb7b6b81c&amp;quot; style=&amp;quot;font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; white-space:pre-wrap&amp;quot;&amp;gt;The question was to calculate antecedent precipitation index efficiently for the entire AGCD dataset. There are several ways to proceed, one can split the calculation on different time periods and write the output for each time period to different netcdf files. It is also possible to use dask with &amp;lt;code&amp;gt;dask.array.map_blocks&amp;lt;/code&amp;gt; but it can be more tricky to get it right. The following blog post show how to proceed for those 2 approaches&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#1155cc;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:underline;  -webkit-text-decoration-skip:none;  text-decoration-skip-ink:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[https://climate-cms.org/posts/2021-11-24-api.html &amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#1155cc;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:underline;  -webkit-text-decoration-skip:none;  text-decoration-skip-ink:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;https://climate-cms.org/posts/2021-11-24-api.html&amp;lt;/span&amp;gt;]&amp;lt;span style=&amp;quot;font-size:11pt;  font-family:Arial;  color:#000000;  background-color:transparent;  font-weight:400;  font-style:normal;  font-variant:normal;  text-decoration:none;  vertical-align:baseline;  white-space:pre;  white-space:pre-wrap&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>C.carouge</name></author>
		
	</entry>
</feed>