Skip to content

Commit

Permalink
100 year EW CF compliant and zarrified
Browse files Browse the repository at this point in the history
100 year EWL now fully CF compliant and  exported to zarr
  • Loading branch information
Clenmar committed Jan 29, 2024
1 parent 0ead288 commit 475c1dd
Show file tree
Hide file tree
Showing 3 changed files with 2,889 additions and 184 deletions.
8 changes: 4 additions & 4 deletions STAC/data/notebooks/100_SOTC_CoastalRisk_FAKE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@
" Y (index) float64 -58.41 -58.41 -58.41 -58.41 ... 67.54 67.54 68.94\n",
" RPresent (index) object 'High Risk' 'High Risk' ... 'Medium Risk'\n",
" R2050 (index) object 'Very High Risk' 'Very High Risk' ... 'High Risk'\n",
" R2100 (index) object &#x27;Very High Risk&#x27; ... &#x27;Very High Risk&#x27;</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-ffdbea6b-a116-402d-8e2d-16930f116280' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-ffdbea6b-a116-402d-8e2d-16930f116280' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>index</span>: 783438</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-d7f75dc6-547a-42c8-b58c-abf0f2db0704' class='xr-section-summary-in' type='checkbox' checked><label for='section-d7f75dc6-547a-42c8-b58c-abf0f2db0704' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>index</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 ... 783435 783436 783437</div><input id='attrs-12ea69a4-d91c-4286-81cd-e51c7b0c68f6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-12ea69a4-d91c-4286-81cd-e51c7b0c68f6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3dbb2db6-46b8-4176-9081-12b5373f4a6a' class='xr-var-data-in' type='checkbox'><label for='data-3dbb2db6-46b8-4176-9081-12b5373f4a6a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 783435, 783436, 783437], dtype=int64)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4816c007-4da9-4ccf-88f1-7071615a5bbd' class='xr-section-summary-in' type='checkbox' checked><label for='section-4816c007-4da9-4ccf-88f1-7071615a5bbd' class='xr-section-summary' >Data variables: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>X</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-26.37 -26.39 -26.41 ... 47.87 53.9</div><input id='attrs-26f70990-a8bd-4144-ad6c-6b4440ce1973' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-26f70990-a8bd-4144-ad6c-6b4440ce1973' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-42bbb628-24f5-479a-b363-adf75608963f' class='xr-var-data-in' type='checkbox'><label for='data-42bbb628-24f5-479a-b363-adf75608963f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-26.3728, -26.389 , -26.4057, ..., 47.8598, 47.8671, 53.9009])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>Y</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-58.41 -58.41 ... 67.54 68.94</div><input id='attrs-9dc83122-9d69-41bb-93bb-9da678bb099d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9dc83122-9d69-41bb-93bb-9da678bb099d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6f1ef1ef-5280-42f5-8d8a-fd6fe4f00b96' class='xr-var-data-in' type='checkbox'><label for='data-6f1ef1ef-5280-42f5-8d8a-fd6fe4f00b96' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-58.4052, -58.4079, -58.4098, ..., 67.538 , 67.5357, 68.9447])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>RPresent</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;High Risk&#x27; ... &#x27;Medium Risk&#x27;</div><input id='attrs-a56a31a3-1a2f-43a3-b735-207b6892ba03' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a56a31a3-1a2f-43a3-b735-207b6892ba03' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a9fb91b2-4fde-45e0-bf9f-b2ee25dfdbf1' class='xr-var-data-in' type='checkbox'><label for='data-a9fb91b2-4fde-45e0-bf9f-b2ee25dfdbf1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;High Risk&#x27;, &#x27;High Risk&#x27;, &#x27;High Risk&#x27;, ..., &#x27;Low Risk&#x27;,\n",
" &#x27;Medium Risk&#x27;, &#x27;Medium Risk&#x27;], dtype=object)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>R2050</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;Very High Risk&#x27; ... &#x27;High Risk&#x27;</div><input id='attrs-4e5289ac-d3c5-43f1-a9b2-01fc756866d4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4e5289ac-d3c5-43f1-a9b2-01fc756866d4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7c22f432-4b56-4783-b087-fe54a9be871d' class='xr-var-data-in' type='checkbox'><label for='data-7c22f432-4b56-4783-b087-fe54a9be871d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, ...,\n",
" &#x27;Medium Risk&#x27;, &#x27;High Risk&#x27;, &#x27;High Risk&#x27;], dtype=object)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>R2100</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;Very High Risk&#x27; ... &#x27;Very High ...</div><input id='attrs-2896c227-3753-45f1-a257-0c74a35c1863' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2896c227-3753-45f1-a257-0c74a35c1863' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bcf3393d-8f8d-415b-b725-4d92019a728a' class='xr-var-data-in' type='checkbox'><label for='data-bcf3393d-8f8d-415b-b725-4d92019a728a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, ...,\n",
" &#x27;High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;], dtype=object)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-f2f09d4a-dc9c-489a-b9e4-7f40bf27550d' class='xr-section-summary-in' type='checkbox' ><label for='section-f2f09d4a-dc9c-489a-b9e4-7f40bf27550d' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>index</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-9e9387ef-1744-4fcd-a727-a27e0aa11dd8' class='xr-index-data-in' type='checkbox'/><label for='index-9e9387ef-1744-4fcd-a727-a27e0aa11dd8' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(RangeIndex(start=0, stop=783438, step=1, name=&#x27;index&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-7aaa715a-f87c-40b7-ab95-37eafb807ce7' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7aaa715a-f87c-40b7-ab95-37eafb807ce7' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
" R2100 (index) object &#x27;Very High Risk&#x27; ... &#x27;Very High Risk&#x27;</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-0bbda63d-b8b6-4c35-92a4-9df1c1742a81' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0bbda63d-b8b6-4c35-92a4-9df1c1742a81' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>index</span>: 783438</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-56575314-7f1b-417a-baf2-0a3bca115c39' class='xr-section-summary-in' type='checkbox' checked><label for='section-56575314-7f1b-417a-baf2-0a3bca115c39' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>index</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 ... 783435 783436 783437</div><input id='attrs-a6ce4444-7bf8-4aaa-b8fa-9b9c136c11fc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a6ce4444-7bf8-4aaa-b8fa-9b9c136c11fc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7b3c350f-e92b-4de1-8e49-bb77520c9ae4' class='xr-var-data-in' type='checkbox'><label for='data-7b3c350f-e92b-4de1-8e49-bb77520c9ae4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 783435, 783436, 783437], dtype=int64)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-51ba8b4f-0c55-4b58-98be-82fc0735dc42' class='xr-section-summary-in' type='checkbox' checked><label for='section-51ba8b4f-0c55-4b58-98be-82fc0735dc42' class='xr-section-summary' >Data variables: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>X</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-26.37 -26.39 -26.41 ... 47.87 53.9</div><input id='attrs-02a8ec3f-f7fa-4b44-b95a-858924a1c2b3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-02a8ec3f-f7fa-4b44-b95a-858924a1c2b3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9a800808-8af7-46e3-aeb8-9a9fe52817f3' class='xr-var-data-in' type='checkbox'><label for='data-9a800808-8af7-46e3-aeb8-9a9fe52817f3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-26.3728, -26.389 , -26.4057, ..., 47.8598, 47.8671, 53.9009])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>Y</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-58.41 -58.41 ... 67.54 68.94</div><input id='attrs-3bb2b695-39a9-4f95-9035-04b264ba09e1' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3bb2b695-39a9-4f95-9035-04b264ba09e1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2b44b5a1-0e21-4fac-aeb9-0c1597bee640' class='xr-var-data-in' type='checkbox'><label for='data-2b44b5a1-0e21-4fac-aeb9-0c1597bee640' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-58.4052, -58.4079, -58.4098, ..., 67.538 , 67.5357, 68.9447])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>RPresent</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;High Risk&#x27; ... &#x27;Medium Risk&#x27;</div><input id='attrs-44b2543f-5fde-46b9-b40e-40373575fb8f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-44b2543f-5fde-46b9-b40e-40373575fb8f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-da2da735-85f3-4a97-8ea8-cca688042aea' class='xr-var-data-in' type='checkbox'><label for='data-da2da735-85f3-4a97-8ea8-cca688042aea' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;High Risk&#x27;, &#x27;High Risk&#x27;, &#x27;High Risk&#x27;, ..., &#x27;Low Risk&#x27;,\n",
" &#x27;Medium Risk&#x27;, &#x27;Medium Risk&#x27;], dtype=object)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>R2050</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;Very High Risk&#x27; ... &#x27;High Risk&#x27;</div><input id='attrs-a3772e5b-c8a5-40eb-b590-41b7440b3afa' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a3772e5b-c8a5-40eb-b590-41b7440b3afa' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ff10bf55-5ac1-4cd0-b1d8-18fcc949e6a8' class='xr-var-data-in' type='checkbox'><label for='data-ff10bf55-5ac1-4cd0-b1d8-18fcc949e6a8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, ...,\n",
" &#x27;Medium Risk&#x27;, &#x27;High Risk&#x27;, &#x27;High Risk&#x27;], dtype=object)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>R2100</span></div><div class='xr-var-dims'>(index)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>&#x27;Very High Risk&#x27; ... &#x27;Very High ...</div><input id='attrs-d35ffa75-1e44-4bf9-a828-669c8abf2cf5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d35ffa75-1e44-4bf9-a828-669c8abf2cf5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e915dddf-7999-4ddc-b6f4-9bf6a936b287' class='xr-var-data-in' type='checkbox'><label for='data-e915dddf-7999-4ddc-b6f4-9bf6a936b287' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;, ...,\n",
" &#x27;High Risk&#x27;, &#x27;Very High Risk&#x27;, &#x27;Very High Risk&#x27;], dtype=object)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-cd3a11a1-b633-45fc-93e7-2f1f854b9934' class='xr-section-summary-in' type='checkbox' ><label for='section-cd3a11a1-b633-45fc-93e7-2f1f854b9934' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>index</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-971e7ea3-ae10-4ee5-a6d6-4fefdd056152' class='xr-index-data-in' type='checkbox'/><label for='index-971e7ea3-ae10-4ee5-a6d6-4fefdd056152' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(RangeIndex(start=0, stop=783438, step=1, name=&#x27;index&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e40973a8-c11d-4384-a098-075dd16105d6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e40973a8-c11d-4384-a098-075dd16105d6' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
Expand Down
Loading

0 comments on commit 475c1dd

Please sign in to comment.