Skip to content

Commit

Permalink
remove unneeded code chunk and obsolete reference to ls_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
bhass-neon committed Apr 18, 2024
1 parent 8af9be1 commit 2bc908e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,30 +317,7 @@
"- `Reflectance/Metadata/Ancillary_Imagery/Acqusition_Date`\n",
"- `Reflectance/Metadata/Ancillary_Imagery/Weather_Quality_Indicator`\n",
"- `Reflectance/Metadata/Logs/L004-1_20220623/BRDF_COEFFS_JSON_for_Hytools`\n",
"- `Reflectance/Metadata/Logs/L004-1_20220623/BRDF_Config_JSON_for_Hytools`\n",
"\n",
"We can also display the name, shape, and type of each of these datasets using the `ls_dataset` function defined below, which is also called with the `visititems` method: "
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"site name: LIRO\n",
"product name: Reflectance\n"
]
}
],
"source": [
"site_name = str(list(h5_file.items())).split(\"'\")[1]\n",
"print('site name:',site_name)\n",
"prod_name = str(list(h5_file[site_name].items())).split(\"'\")[1] # this is the Reflectance\n",
"print('product name:',prod_name)"
"- `Reflectance/Metadata/Logs/L004-1_20220623/BRDF_Config_JSON_for_Hytools`\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,19 +257,6 @@ We will also highlight some of the new and updated datasets that differ from the
- `Reflectance/Metadata/Logs/L004-1_20220623/BRDF_COEFFS_JSON_for_Hytools`
- `Reflectance/Metadata/Logs/L004-1_20220623/BRDF_Config_JSON_for_Hytools`

We can also display the name, shape, and type of each of these datasets using the `ls_dataset` function defined below, which is also called with the `visititems` method:


```python
site_name = str(list(h5_file.items())).split("'")[1]
print('site name:',site_name)
prod_name = str(list(h5_file[site_name].items())).split("'")[1] # this is the Reflectance
print('product name:',prod_name)
```

site name: LIRO
product name: Reflectance


The function below pulls out some spatial information about the dataset that will come in handy for plotting. Please refer to the ... lesson for more details about this spatial information.

Expand Down

0 comments on commit 2bc908e

Please sign in to comment.