Skip to content

Commit 39295bf

Browse files
committed
update links
1 parent cdea523 commit 39295bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter-notebooks/crop-classification/datasets-identify.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"from IPython import display\n",
4848
"import fiona\n",
4949
"import pandas as pd\n",
50-
"from planet import Auth\n",
50+
"from planet import Auth, data_filter\n",
5151
"from planet import Session, DataClient, OrdersClient\n",
5252
"import pyproj\n",
5353
"import shapely\n",
@@ -131,7 +131,7 @@
131131
"\n",
132132
"The data is provided as a shapefile. It is easier to process the data as geojson. Therefore, we will convert the data to geojson. Additionally, the data contains polygons that aren't crops. Since we are only interested in crops, we will filter the data to only the crop polygons.\n",
133133
"\n",
134-
"We will use [fiona](http://toblerity.org/fiona/manual.html) to load the shapefile, [shapely](http://toblerity.org/shapely/manual.html) to manage the geometries"
134+
"We will use [fiona](https://fiona.readthedocs.io/en/latest/) to load the shapefile, [shapely](https://shapely.readthedocs.io/en/stable/) to manage the geometries"
135135
]
136136
},
137137
{
@@ -418,7 +418,7 @@
418418
"\n",
419419
"We will answer this question by querying the planet api. The client is how we interact with the planet api. It is created with the user-specific api key, which is pulled from $PL_API_KEY\n",
420420
"\n",
421-
"[planet client documentation](https://planetlabs.github.io/planet-client-python/index.html) \n",
421+
"[Planet Client Documentation](https://planet-sdk-for-python-v2.readthedocs.io/en/latest/) \n",
422422
"\n",
423423
"Much of this code is pulled from [PythonFromSpace/TheBasics.ipynb](https://github.com/kscottz/PythonFromSpace/blob/master/TheBasics.ipynb)"
424424
]
@@ -459,7 +459,7 @@
459459
"\n",
460460
"geom_filter_test = data_filter.geometry_filter(aoi_test)\n",
461461
"geom_filter_train = data_filter.geometry_filter(aoi_train)\n",
462-
"date_range_filter = data_filter.date_range_filter(\"acquired\", datetime(month=6, day=1, year=2016), datetime(month=10, day=1, year=2016))\n",
462+
"date_range_filter = data_filter.date_range_filter(\"acquired\", gt=datetime(month=6, day=1, year=2016), lt=datetime(month=10, day=1, year=2016))\n",
463463
"cloud_cover_filter = data_filter.range_filter('cloud_cover', None, 75)\n",
464464
"\n",
465465
"combined_filter_test = data_filter.and_filter([geom_filter_test, date_range_filter, cloud_cover_filter])\n",

0 commit comments

Comments
 (0)