Skip to content

Commit 83ace6d

Browse files
committed
added note on wavelength units
1 parent c32c8cf commit 83ace6d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CRISM_unsupervised_classification.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
{
6262
"cell_type": "code",
63-
"execution_count": 2,
63+
"execution_count": 1,
6464
"id": "88631954-e3b9-48c0-bcb5-2c9c9a3812cf",
6565
"metadata": {},
6666
"outputs": [],
@@ -106,7 +106,7 @@
106106
},
107107
{
108108
"cell_type": "code",
109-
"execution_count": 3,
109+
"execution_count": 2,
110110
"id": "003ae445-a966-4aec-8d85-f0aeaf0e1093",
111111
"metadata": {},
112112
"outputs": [],
@@ -120,6 +120,10 @@
120120
"img = open_image(path_if)\n",
121121
"wavelength = np.array(img.metadata['wavelength']).astype(float)\n",
122122
"\n",
123+
"#the code below is implemented for wavelengths in units of nanometers (nm)\n",
124+
"#if the wavelengths of your data are in microns, you should run the line below and convert to nm\n",
125+
"#wavelength = wavelength*1000.\n",
126+
"\n",
123127
"#converting img to simple array and putting no-values to NaN\n",
124128
"nan_img = np.copy(img[:,:,:])\n",
125129
"nan_img[nan_img>10]=np.nan"

0 commit comments

Comments
 (0)