|
172 | 172 | "end = \"2017-08-31\"\n", |
173 | 173 | "\n", |
174 | 174 | "# initialize the class to s1_grd instance\n", |
175 | | - "s1_grd = Sentinel1Batch(\n", |
176 | | - " project_dir=project_dir, aoi=aoi, start=start, end=end, product_type=\"GRD\"\n", |
177 | | - ")\n", |
| 175 | + "s1_grd = Sentinel1Batch(project_dir=project_dir, aoi=aoi, start=start, end=end, product_type=\"GRD\")\n", |
178 | 176 | "\n", |
179 | 177 | "# trigger the search\n", |
180 | 178 | "s1_grd.search()\n", |
|
200 | 198 | "metadata": {}, |
201 | 199 | "outputs": [], |
202 | 200 | "source": [ |
203 | | - "df = s1_grd.inventory.pivot_table(\n", |
204 | | - " index=[\"relativeorbit\", \"acquisitiondate\"], aggfunc=\"size\"\n", |
205 | | - ").reset_index()\n", |
| 201 | + "df = s1_grd.inventory.pivot_table(index=[\"relativeorbit\", \"acquisitiondate\"], aggfunc=\"size\").reset_index()\n", |
206 | 202 | "df.pivot_table(index=\"relativeorbit\", aggfunc=\"size\").reset_index()" |
207 | 203 | ] |
208 | 204 | }, |
|
261 | 257 | "key = \"DESCENDING_HH\"\n", |
262 | 258 | "\n", |
263 | 259 | "# we wrap the information of the length of our refined inventory in a print statement\n", |
264 | | - "print(\n", |
265 | | - " f\"The refined inventory holds {len(s1_grd.refined_inventory_dict[key])} acquisitions to process.\"\n", |
266 | | - ")\n", |
| 260 | + "print(f\"The refined inventory holds {len(s1_grd.refined_inventory_dict[key])} acquisitions to process.\")\n", |
267 | 261 | "\n", |
268 | 262 | "# we plot the full Inventory on a map\n", |
269 | 263 | "s1_grd.plot_inventory(s1_grd.refined_inventory_dict[key], transparency=0.05)" |
|
416 | 410 | "name": "python", |
417 | 411 | "nbconvert_exporter": "python", |
418 | 412 | "pygments_lexer": "ipython3", |
419 | | - "version": "3.8.5" |
| 413 | + "version": "3.8.10" |
420 | 414 | }, |
421 | 415 | "toc": { |
422 | 416 | "base_numbering": 1, |
|
0 commit comments