diff --git a/doc/source/conf.py b/doc/source/conf.py index a9e6430..b266cc9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -45,7 +45,6 @@ "geopandas": ("https://geopandas.org/en/latest", None), "pandas": ("https://pandas.pydata.org/docs", None), "rasterio": ("https://rasterio.readthedocs.io/en/latest/", None), - } # -- Options for HTML output ------------------------------------------------- @@ -57,9 +56,7 @@ html_logo = "_static/logo.svg" html_favicon = "_static/icon.png" html_theme_options = { - "github_url": "https://github.com/xarray-contrib/xvec", "use_sidenotes": True, - "logo_only": True, } nb_execution_mode = "off" autodoc_typehints = "none" diff --git a/doc/source/extract_pts.ipynb b/doc/source/extract_pts.ipynb index 12c18a2..599d6e3 100644 --- a/doc/source/extract_pts.ipynb +++ b/doc/source/extract_pts.ipynb @@ -421,18 +421,18 @@ " v (month, level, latitude, longitude) float64 ...\n", "Attributes:\n", " Conventions: CF-1.0\n", - " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
" + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m... " ], "text/plain": [ "[60 values with dtype=float64]
[60 values with dtype=float64]
[60 values with dtype=float64]
PandasIndex(Index([200, 500, 850], dtype='int32', name='level'))
PandasIndex(Index([1, 7], dtype='int32', name='month'))
<xvec.index.GeometryIndex object at 0x1574e8fb0>
[60 values with dtype=float64]
[60 values with dtype=float64]
[60 values with dtype=float64]
PandasIndex(Index([200, 500, 850], dtype='int32', name='level'))
PandasIndex(Index([1, 7], dtype='int32', name='month'))
<xvec.index.GeometryIndex object at 0x162620440>
[60 values with dtype=float64]
[60 values with dtype=float64]
[60 values with dtype=float64]
PandasIndex(Index([200, 500, 850], dtype='int32', name='level'))
PandasIndex(Index([1, 7], dtype='int32', name='month'))
<xvec.index.GeometryIndex object at 0x162621520>
[60 values with dtype=float64]
[60 values with dtype=float64]
[60 values with dtype=float64]
PandasIndex(Index([200, 500, 850], dtype='int32', name='level'))
PandasIndex(Index([1, 7], dtype='int32', name='month'))
<xvec.index.GeometryIndex object at 0x1626229c0>
<xvec.index.GeometryIndex object at 0x1626229c0>
[60 values with dtype=float64]
[60 values with dtype=float64]
[60 values with dtype=float64]
PandasIndex(Index([200, 500, 850], dtype='int32', name='level'))
PandasIndex(Index([1, 7], dtype='int32', name='month'))
<xvec.index.GeometryIndex object at 0x162634740>
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x157efa7b0>
<xarray.DataArray 'PO60' (county: 3085)>\n", "array([ 4304, 3889, 17884, ..., 21583, 50164, 39260])\n", "Coordinates:\n", - " * county (county) object POLYGON ((-95.34258270263672 48.54670333862305, ...
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x12e9bbb00>
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x14a815b50>
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x153896780>
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x157f08680>
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x157f0aae0>
array([[151098, 20084, 180904, ..., 30034, 9975, 41954],\n", + " [140368, 15570, 181535, ..., 31035, 11334, 50528],\n", + " [209727, 17495, 283229, ..., 51303, 13371, 54981],\n", + " [260120, 17705, 383545, ..., 83829, 30167, 62496]])
array([[ 8.4 , 4. , 6.3 , ..., 4.7 ,\n", + " 6.5 , 5.9 ],\n", + " [ 6.6 , 7.3 , 5.9 , ..., 3.6 ,\n", + " 3.5 , 3. ],\n", + " [ 7.75660487, 11.33037329, 8.46864875, ..., 4.91240744,\n", + " 6.96691176, 4.89821146],\n", + " [13.32703973, 15.10072274, 14.32961266, ..., 4.46391627,\n", + " 6.39348523, 4.37875589]])
array([[1.58380698, 1.21930567, 1.14778151, ..., 2.16183453, 1.62022035,\n", + " 2.02576951],\n", + " [1.90981927, 0.95937947, 1.31687243, ..., 3.09188981, 2.49451754,\n", + " 2.50172931],\n", + " [3.20959126, 2.08742194, 2.53856077, ..., 6.21791514, 5.03355705,\n", + " 6.65581939],\n", + " [4.39243717, 3.49016253, 3.57331943, ..., 9.62774751, 7.91690999,\n", + " 8.99766695]])
array([[20.5, 18.9, 19.8, ..., 30.9, 21.8, 25.1],\n", + " [21.8, 20.9, 20.7, ..., 32.1, 23.6, 25.3],\n", + " [25. , 24.7, 24.1, ..., 33.4, 26.8, 30.1],\n", + " [27.4, 27.5, 26.1, ..., 37. , 27.2, 34.1]])
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='int64', name='year'))
<xvec.index.GeometryIndex object at 0x1539f1b20>
<xarray.Dataset>\n", "Dimensions: (county: 3085, year: 4)\n", "Coordinates:\n", - " * county (county) object POLYGON ((-95.34258270263672 48.54670333862...\n", + " * county (county) object MULTIPOLYGON (((-97.25125122070312 26.41930...\n", " * year (year) object 1960 1970 1980 1990\n", "Data variables:\n", - " age (county, year) float64 28.8 30.5 34.5 ... 26.4 28.97 35.33\n", - " divorce (county, year) float64 1.859 2.62 3.747 ... 2.725 4.782 7.415\n", - " population (county, year) int64 4304 3987 3764 4076 ... 43766 55800 65077\n", - " unemployment (county, year) float64 7.9 9.0 5.903 ... 5.444 7.018 5.489\n", + " population (county, year) int64 151098 140368 209727 ... 54981 62496\n", + " unemployment (county, year) float64 8.4 6.6 7.757 13.33 ... 3.0 4.898 4.379\n", + " divorce (county, year) float64 1.584 1.91 3.21 ... 2.502 6.656 8.998\n", + " age (county, year) float64 20.5 21.8 25.0 27.4 ... 25.3 30.1 34.1\n", "Indexes:\n", - " county GeometryIndex (crs=EPSG:4326)
PandasIndex(Index([1960, 1970, 1980, 1990], dtype='object', name='year'))
<xvec.index.GeometryIndex object at 0x157f12510>
<xarray.Dataset>\n", + "Dimensions: (longitude: 480, latitude: 241, level: 3, month: 2)\n", + "Coordinates:\n", + " * longitude (longitude) float32 -180.0 -179.2 -178.5 ... 177.8 178.5 179.2\n", + " * latitude (latitude) float32 90.0 89.25 88.5 87.75 ... -88.5 -89.25 -90.0\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + "Data variables:\n", + " z (month, level, latitude, longitude) float64 ...\n", + " u (month, level, latitude, longitude) float64 ...\n", + " v (month, level, latitude, longitude) float64 ...\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
\n", + " | featurecla | \n", + "scalerank | \n", + "min_zoom | \n", + "geometry | \n", + "
---|---|---|---|---|
0 | \n", + "Land | \n", + "1 | \n", + "1.0 | \n", + "POLYGON ((-59.57209 -80.04018, -59.86585 -80.5... | \n", + "
1 | \n", + "Land | \n", + "1 | \n", + "1.0 | \n", + "POLYGON ((-159.20818 -79.49706, -161.12760 -79... | \n", + "
2 | \n", + "Land | \n", + "1 | \n", + "0.0 | \n", + "POLYGON ((-45.15476 -78.04707, -43.92083 -78.4... | \n", + "
3 | \n", + "Land | \n", + "1 | \n", + "1.0 | \n", + "POLYGON ((-121.21151 -73.50099, -119.91885 -73... | \n", + "
4 | \n", + "Land | \n", + "1 | \n", + "1.0 | \n", + "POLYGON ((-125.55957 -73.48135, -124.03188 -73... | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
122 | \n", + "Land | \n", + "1 | \n", + "1.0 | \n", + "POLYGON ((51.13619 80.54728, 49.79368 80.41543... | \n", + "
123 | \n", + "Land | \n", + "0 | \n", + "0.0 | \n", + "POLYGON ((99.93976 78.88094, 97.75794 78.75620... | \n", + "
124 | \n", + "Land | \n", + "0 | \n", + "0.0 | \n", + "POLYGON ((-87.02000 79.66000, -85.81435 79.336... | \n", + "
125 | \n", + "Land | \n", + "0 | \n", + "0.0 | \n", + "POLYGON ((-68.50000 83.10632, -65.82735 83.028... | \n", + "
126 | \n", + "Land | \n", + "0 | \n", + "0.0 | \n", + "POLYGON ((-27.10046 83.51966, -20.84539 82.726... | \n", + "
127 rows × 4 columns
\n", + "<xarray.Dataset>\n", + "Dimensions: (level: 3, month: 2, geometry: 127)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * geometry (geometry) object POLYGON ((-59.57209469261153 -80.040178725096...\n", + "Data variables:\n", + " z (geometry, month, level) float64 1.1e+05 5.025e+04 ... 1.394e+04\n", + " u (geometry, month, level) float64 2.401 1.482 ... 2.393 0.8898\n", + " v (geometry, month, level) float64 0.4296 0.07286 ... 1.116 0.6399\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
<xarray.Dataset>\n", + "Dimensions: (level: 3, month: 2, geometry: 127)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * geometry (geometry) object POLYGON ((-59.57209469261153 -80.040178725096...\n", + "Data variables:\n", + " z (geometry, month, level) float64 3.301e+05 1.507e+05 ... 1.675e+07\n", + " u (geometry, month, level) float64 7.203 4.446 ... 1.069e+03\n", + " v (geometry, month, level) float64 1.289 0.2186 ... 1.341e+03 768.5\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
<xarray.Dataset>\n", + "Dimensions: (level: 3, month: 2, zonal_statistics: 2, geometry: 127)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * zonal_statistics (zonal_statistics) <U4 'mean' 'sum'\n", + " * geometry (geometry) object POLYGON ((-59.57209469261153 -80.0401...\n", + "Data variables:\n", + " z (geometry, zonal_statistics, month, level) float64 1.1e...\n", + " u (geometry, zonal_statistics, month, level) float64 2.40...\n", + " v (geometry, zonal_statistics, month, level) float64 0.42...\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
<xarray.Dataset>\n", + "Dimensions: (level: 3, month: 2, quantile: 3, zonal_statistics: 5,\n", + " geometry: 127)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * quantile (quantile) float64 0.1 0.2 0.3\n", + " * zonal_statistics (zonal_statistics) <U9 'mean' 'sum' ... 'nanstd'\n", + " * geometry (geometry) object POLYGON ((-59.57209469261153 -80.0401...\n", + "Data variables:\n", + " z (geometry, zonal_statistics, month, level, quantile) float64 ...\n", + " u (geometry, zonal_statistics, month, level, quantile) float64 ...\n", + " v (geometry, zonal_statistics, month, level, quantile) float64 ...\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m..." + ], + "text/plain": [ + "
<xarray.Dataset>\n", + "Dimensions: (level: 3, month: 2, world_polygons: 127)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * world_polygons (world_polygons) object POLYGON ((-59.57209469261153 -80....\n", + " index (world_polygons) int64 0 1 2 3 4 5 ... 122 123 124 125 126\n", + "Data variables:\n", + " z (world_polygons, month, level) float64 1.1e+05 ... 1.394e+04\n", + " u (world_polygons, month, level) float64 2.401 ... 0.8898\n", + " v (world_polygons, month, level) float64 0.4296 ... 0.6399\n", + "Indexes:\n", + " world_polygons GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m..." + ], + "text/plain": [ + "
<xarray.Dataset>\n", + "Dimensions: (geometry: 127, month: 2, level: 3)\n", + "Coordinates:\n", + " * level (level) int32 200 500 850\n", + " * month (month) int32 1 7\n", + " * geometry (geometry) object POLYGON ((-59.57209469261153 -80.040178725096...\n", + "Data variables:\n", + " z (geometry, month, level) float64 1.1e+05 5.025e+04 ... 1.394e+04\n", + " u (geometry, month, level) float64 2.401 1.482 ... 2.393 0.8898\n", + " v (geometry, month, level) float64 0.4296 0.07286 ... 1.116 0.6399\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4326)\n", + "Attributes:\n", + " Conventions: CF-1.0\n", + " Info: Monthly ERA-Interim data. Downloaded and edited by fabien.m...
<xarray.DataArray 'elevation' (geometry: 7, zonal_statistics: 4)>\n", + "array([[1.69547634e+02, 1.69539307e+02, 1.69804550e+02, 3.65312762e-02],\n", + " [1.73920127e+02, 1.69558762e+02, 1.89282532e+02, 4.23546672e+00],\n", + " [1.71910405e+02, 1.67691681e+02, 1.86318939e+02, 3.20585141e+00],\n", + " [1.76756619e+02, 1.70410980e+02, 1.80344055e+02, 2.74917394e+00],\n", + " [1.74971541e+02, 1.70244766e+02, 1.79659058e+02, 2.09304460e+00],\n", + " [1.76334406e+02, 1.69263535e+02, 1.94975769e+02, 3.93324959e+00],\n", + " [1.80006464e+02, 1.78314453e+02, 1.81538788e+02, 6.22535698e-01]])\n", + "Coordinates:\n", + " spatial_ref int64 0\n", + " * zonal_statistics (zonal_statistics) <U4 'mean' 'min' 'max' 'std'\n", + " * geometry (geometry) object MULTIPOLYGON (((-90.59735248065536 41...\n", + " mukey (geometry) object '271425' '198692' ... '198750' '198724'\n", + "Indexes:\n", + " geometry GeometryIndex (crs=EPSG:4269)\n", + "Attributes:\n", + " AREA_OR_POINT: Area\n", + " BandDefinitionKeyword: *\n", + " DataType: *\n", + " LAYER_TYPE: athematic\n", + " RepresentationType: *\n", + " scale_factor: 1.0\n", + " add_offset: 0.0\n", + " long_name: Layer_1