Skip to content

Commit

Permalink
slight change to notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
print-sid8 committed Jan 6, 2025
1 parent a821731 commit 34c533e
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions examples/example_xarray_nb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"id": "259da3f2",
"metadata": {},
"outputs": [],
Expand All @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 4,
"id": "d6cf7929-caed-44c2-825a-b58d5b7bec94",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -81,7 +81,7 @@
"outputs": [],
"source": [
"# You can load any existing collection in any folder\n",
"processor = Rasteret.load_collection(\"bangalore-v1_202412-202501_landsat\", workspace_dir=workspace_dir)\n"
"processor = Rasteret.load_collection(\"bangalore_202401-01_landsat\", workspace_dir=workspace_dir)\n"
]
},
{
Expand All @@ -91,24 +91,20 @@
"metadata": {},
"outputs": [],
"source": [
"# Proceeding to create a new collection v2\n",
"try:\n",
" processor = Rasteret.load_collection(custom_name)\n",
"except ValueError:\n",
" print(\"2. Creating New Collection\", custom_name)\n",
" # Create new collection\n",
" processor = Rasteret(\n",
" custom_name=custom_name,\n",
" data_source=data_source,\n",
" output_dir=workspace_dir,\n",
" date_range=date_range\n",
" )\n",
" processor.create_collection(\n",
" bbox=bbox,\n",
" date_range=date_range,\n",
" cloud_cover_lt=20,\n",
" platform={\"in\": [\"LANDSAT_8\"]}\n",
" )\n"
"print(\"2. Creating New Collection with custom name :\", custom_name)\n",
"# Create new collection\n",
"processor = Rasteret(\n",
" custom_name=custom_name,\n",
" data_source=data_source,\n",
" output_dir=workspace_dir,\n",
" date_range=date_range\n",
")\n",
"processor.create_collection(\n",
" bbox=bbox,\n",
" date_range=date_range,\n",
" cloud_cover_lt=20,\n",
" platform={\"in\": [\"LANDSAT_8\"]}\n",
")"
]
},
{
Expand Down Expand Up @@ -189,7 +185,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0rc1"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 34c533e

Please sign in to comment.