Skip to content

Commit 272ce6a

Browse files
committed
Add PyGMT script for Ch6
1 parent 7dc30c1 commit 272ce6a

8 files changed

Lines changed: 814 additions & 76 deletions

File tree

SOURCE_DOCS/coloring_topography/titicaca_pygmt.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,15 @@
405405
" long_name: elevation relative to the geoid\n",
406406
" units: meters\n",
407407
" vertical_datum: EMG96\n",
408-
" horizontal_datum: WGS84</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'elevation'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>lat</span>: 166</li><li><span class='xr-has-index'>lon</span>: 255</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-242ad911-24d8-465c-9d64-9f5020657bc4' class='xr-array-in' type='checkbox' checked><label for='section-242ad911-24d8-465c-9d64-9f5020657bc4' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>2.916e+03 3.085e+03 3.14e+03 3.36e+03 ... 170.5 169.0 171.0 171.5</span></div><div class='xr-array-data'><pre>array([[2916.5, 3085. , 3140.5, ..., 3366.5, 3583.5, 3583. ],\n",
408+
" horizontal_datum: WGS84</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'elevation'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>lat</span>: 166</li><li><span class='xr-has-index'>lon</span>: 255</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-168050c6-51a2-4986-90fc-4c5cc5a1aa73' class='xr-array-in' type='checkbox' checked><label for='section-168050c6-51a2-4986-90fc-4c5cc5a1aa73' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>2.916e+03 3.085e+03 3.14e+03 3.36e+03 ... 170.5 169.0 171.0 171.5</span></div><div class='xr-array-data'><pre>array([[2916.5, 3085. , 3140.5, ..., 3366.5, 3583.5, 3583. ],\n",
409409
" [3049.5, 3232.5, 3087. , ..., 3659. , 3576. , 3736.5],\n",
410410
" [3056. , 2868.5, 2800.5, ..., 3395.5, 3059. , 3256. ],\n",
411411
" ...,\n",
412412
" [4691. , 4608. , 4448.5, ..., 176. , 171. , 169. ],\n",
413413
" [4578. , 4515.5, 4353. , ..., 171. , 173. , 170. ],\n",
414414
" [4417.5, 4347.5, 4355.5, ..., 169. , 171. , 171.5]],\n",
415-
" dtype=float32)</pre></div></div></li><li class='xr-section-item'><input id='section-bd3532f1-f53f-46a3-9a5f-611e8f198e03' class='xr-section-summary-in' type='checkbox' checked><label for='section-bd3532f1-f53f-46a3-9a5f-611e8f198e03' class='xr-section-summary' >Coordinates: <span>(2)</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'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-70.79 -70.77 ... -66.58 -66.56</div><input id='attrs-e439404d-3222-46ff-87ae-feac29738a88' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e439404d-3222-46ff-87ae-feac29738a88' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a11fc0fa-7c19-4351-a982-2b638a8699a7' class='xr-var-data-in' type='checkbox'><label for='data-a11fc0fa-7c19-4351-a982-2b638a8699a7' 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'><dt><span>long_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>axis :</span></dt><dd>X</dd></dl></div><div class='xr-var-data'><pre>array([-70.791667, -70.775 , -70.758333, ..., -66.591667, -66.575 ,\n",
416-
" -66.558333])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-17.17 -17.16 ... -14.44 -14.43</div><input id='attrs-cfabc26e-aeca-430d-9233-ff1d5ebd0267' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-cfabc26e-aeca-430d-9233-ff1d5ebd0267' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2eb6abe2-9e53-4689-b8d3-c713c27e8902' class='xr-var-data-in' type='checkbox'><label for='data-2eb6abe2-9e53-4689-b8d3-c713c27e8902' 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'><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>axis :</span></dt><dd>Y</dd></dl></div><div class='xr-var-data'><pre>array([-17.175 , -17.158333, -17.141667, -17.125 , -17.108333, -17.091667,\n",
415+
" dtype=float32)</pre></div></div></li><li class='xr-section-item'><input id='section-b10f76c0-36d6-4413-be02-5c783222c79d' class='xr-section-summary-in' type='checkbox' checked><label for='section-b10f76c0-36d6-4413-be02-5c783222c79d' class='xr-section-summary' >Coordinates: <span>(2)</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'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-70.79 -70.77 ... -66.58 -66.56</div><input id='attrs-ad85c1db-0c71-4172-9001-16388f1949ea' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ad85c1db-0c71-4172-9001-16388f1949ea' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-89f632a9-6eb7-4324-b0b3-3cc9734c625b' class='xr-var-data-in' type='checkbox'><label for='data-89f632a9-6eb7-4324-b0b3-3cc9734c625b' 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'><dt><span>long_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>axis :</span></dt><dd>X</dd></dl></div><div class='xr-var-data'><pre>array([-70.791667, -70.775 , -70.758333, ..., -66.591667, -66.575 ,\n",
416+
" -66.558333])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-17.17 -17.16 ... -14.44 -14.43</div><input id='attrs-1408fad2-1375-454d-8195-db884349856d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-1408fad2-1375-454d-8195-db884349856d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a75b7ab7-48d4-41fd-961a-36054e0a9a7a' class='xr-var-data-in' type='checkbox'><label for='data-a75b7ab7-48d4-41fd-961a-36054e0a9a7a' 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'><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>axis :</span></dt><dd>Y</dd></dl></div><div class='xr-var-data'><pre>array([-17.175 , -17.158333, -17.141667, -17.125 , -17.108333, -17.091667,\n",
417417
" -17.075 , -17.058333, -17.041667, -17.025 , -17.008333, -16.991667,\n",
418418
" -16.975 , -16.958333, -16.941667, -16.925 , -16.908333, -16.891667,\n",
419419
" -16.875 , -16.858333, -16.841667, -16.825 , -16.808333, -16.791667,\n",
@@ -440,7 +440,7 @@
440440
" -14.775 , -14.758333, -14.741667, -14.725 , -14.708333, -14.691667,\n",
441441
" -14.675 , -14.658333, -14.641667, -14.625 , -14.608333, -14.591667,\n",
442442
" -14.575 , -14.558333, -14.541667, -14.525 , -14.508333, -14.491667,\n",
443-
" -14.475 , -14.458333, -14.441667, -14.425 ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-1445ec60-db5e-4869-a152-bfc99b99b97a' class='xr-section-summary-in' type='checkbox' checked><label for='section-1445ec60-db5e-4869-a152-bfc99b99b97a' class='xr-section-summary' >Attributes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>long_name :</span></dt><dd>elevation relative to the geoid</dd><dt><span>units :</span></dt><dd>meters</dd><dt><span>vertical_datum :</span></dt><dd>EMG96</dd><dt><span>horizontal_datum :</span></dt><dd>WGS84</dd></dl></div></li></ul></div></div>"
443+
" -14.475 , -14.458333, -14.441667, -14.425 ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ace07321-2522-4e70-b80d-da4fe02280fe' class='xr-section-summary-in' type='checkbox' checked><label for='section-ace07321-2522-4e70-b80d-da4fe02280fe' class='xr-section-summary' >Attributes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>long_name :</span></dt><dd>elevation relative to the geoid</dd><dt><span>units :</span></dt><dd>meters</dd><dt><span>vertical_datum :</span></dt><dd>EMG96</dd><dt><span>horizontal_datum :</span></dt><dd>WGS84</dd></dl></div></li></ul></div></div>"
444444
],
445445
"text/plain": [
446446
"<xarray.DataArray 'elevation' (lat: 166, lon: 255)>\n",

0 commit comments

Comments
 (0)