Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lillythomas committed Dec 3, 2024
1 parent c663347 commit cfe2784
Show file tree
Hide file tree
Showing 29 changed files with 9,779 additions and 379 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions _sources/docs/04_vector_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,13 @@
"\n",
" !pip install uv\n",
" !uv pip install --system \\\n",
" \"adlfs>=2024.7.0\" \\\n",
" \"dask>=2024.11.2\" \\\n",
" \"fsspec>=2024.10.0\" \\\n",
" \"geopandas>=1.0.1\" \\\n",
" \"lonboard>=0.10.3\" \\\n",
" \"matplotlib>=3.9.2\" \\\n",
" \"planetary-computer>=1.0.0\" \\\n",
" \"pyarrow>=18.0.0\" \\\n",
" \"pystac-client>=0.8.5\" \\\n",
" \"xarray>=2024.11.0\" \\\n",
" \"zarr>=2.18.3\" \\\n",
" \"odc-stac>=0.3.10\" \\\n",
" \"rasterio>=1.4.2\" \\\n",
" \"rioxarray>=0.18.1\" \\\n",
" \"rasterstats>=0.20.0\" \\\n",
" \"numpy>=2.1.3\"\n",
" \"numpy>=2.1.3\" \\\n",
" \"folium\" \\\n",
" \"mapclassify\"\n",
"\n",
" data_dir = Path(\"/content/drive/MyDrive/ingarss_workshop_2024\")\n",
"\n",
Expand All @@ -89,6 +80,15 @@
"Geospatial data is often available from specific GIS file formats or data stores, like ESRI shapefiles, GeoJSON files, geopackage files, PostGIS (PostgreSQL) database, ..."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import geopandas as gpd"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -97,7 +97,7 @@
},
"outputs": [],
"source": [
"state = geopandas.read_file(f\"{data_dir}/karnataka_district/KA_subdistrict.shp\")"
"state = gpd.read_file(f\"{data_dir}/karnataka_district/KA_subdistrict.shp\")"
]
},
{
Expand Down Expand Up @@ -575,7 +575,7 @@
},
"outputs": [],
"source": [
"geopandas.GeoSeries([bagalkot_centroid, dharwad_centroid, line]).plot(cmap='tab10')"
"gpd.GeoSeries([bagalkot_centroid, dharwad_centroid, line]).plot(cmap='tab10')"
]
},
{
Expand Down
Loading

0 comments on commit cfe2784

Please sign in to comment.