Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Local dev directory
local/
.idea/
*.egg*/
*__pycache__/

# ISOFIT output directories
isotuts/NEON/*
!isotuts/NEON/*.ipynb
NEON/output

# Data directories
NEON/data

# Jupyter server files
.ipynb*/
Expand Down
27 changes: 4 additions & 23 deletions isotuts/NEON/data_prep.ipynb → NEON/data_prep.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,7 @@
"outputs": [],
"source": [
"\n",
"\n",
"# Extract the image locations of each point of interest (POI)\n",
"# These are defined in the NEON report as pixel locations, so we round here to convert to indices\n",
"report = {}\n",
"report['173647'] = { # Upp L Y | Low R Y | Upp L X | Low R X\n",
" 'WhiteTarp': np.round([2224.9626, 2230.9771, 316.0078, 324.9385,]).astype(int),\n",
" 'BlackTarp': np.round([2224.9626, 2231.0032, 328.0086, 333.9731,]).astype(int),\n",
" 'Veg' : np.round([2245.0381, 2258.8103, 343.9006, 346.9423,]).astype(int),\n",
" 'RoadEW' : np.round([2214.9905, 2216.9978, 348.9902, 373.0080,]).astype(int),\n",
" 'RoadNS' : np.round([2205.9580, 2225.9612, 357.9536, 359.9608,]).astype(int)\n",
"}\n",
"report['174150'] = { # Upp L Y | Low R Y | Upp L X | Low R X\n",
" 'WhiteTarp': np.round([653.9626, 659.9771, 3143.0078, 3151.9385]).astype(int),\n",
" 'BlackTarp': np.round([653.9626, 660.0032, 3155.0086, 3160.9731]).astype(int),\n",
" 'Veg' : np.round([674.0381, 687.8103, 3170.9006, 3173.9423]).astype(int),\n",
" 'RoadEW' : np.round([643.9905, 645.9978, 3175.9902, 3200.0080]).astype(int),\n",
" 'RoadNS' : np.round([634.9580, 654.9612, 3184.9536, 3186.9608]).astype(int)\n",
"}\n",
"# Converts numpy array to comma-separated string for ISOFIT\n",
"toString = lambda array: ', '.join(str(v) for v in array)"
"\n"
]
},
{
Expand Down Expand Up @@ -176,7 +157,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "isofit_env",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -190,9 +171,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.10.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Loading