Skip to content

Commit

Permalink
update fine-python.ipynb
Browse files Browse the repository at this point in the history
utilizes earthaccess.search_data rather than granules search.
  • Loading branch information
Cassie Nickles committed Sep 6, 2023
1 parent 6f90900 commit 6fe3fbb
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions how-tos/find-data/find-python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"outputs": [],
"source": [
"## Import packages\n",
"import earthaccess\n",
"from earthaccess import DataGranules, DataCollections\n",
"from pprint import pprint "
]
Expand Down Expand Up @@ -118,35 +119,25 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"<earthaccess.search.DataGranules at 0x7f3ca3530d60>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"Granules found: 8\n"
]
}
],
"source": [
"## Search for files from the second dataset result over a small plot in Nebraska, USA for two weeks in September 2022\n",
"granules = DataGranules().concept_id(\"C2021957657-LPCLOUD\").temporal(\"2022-09-10\",\"2022-09-24\").bounding_box(-101.67271,41.04754,-101.65344,41.06213)\n",
"#print(len(granules))\n",
"granules"
"granules = earthaccess.search_data(concept_id = \"C2021957657-LPCLOUD\", \n",
" temporal = (\"2022-09-10\",\"2022-09-24\"),\n",
" bounding_box = (-101.67271,41.04754,-101.65344,41.06213)) "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 6fe3fbb

Please sign in to comment.