Skip to content

Commit ce86931

Browse files
committed
review_update_1
1 parent e161ef1 commit ce86931

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

samples/04_gis_analysts_data_scientists/cloud_removal_using_pre-trained_deep_learning_model_and_raster_function.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"cell_type": "markdown",
4040
"metadata": {},
4141
"source": [
42-
"The goal of this notebook, is to detect and replace the cloud contaminated region of the satellite images. As clouds create obstruction in generating results from the imagery such as land cover classification, time series analysis etc. In a general perspective, it can be seen as a image denoising problem, in which clouds are considered as noise in respect to land surface in images. \n",
42+
"The goal of this notebook, is to detect and replace the cloud contaminated region of the satellite images. Clouds often create obstructions in satellite imagery that can hinder results in processes like land cover classification and time series analysis. In a general perspective, it can be seen as a image denoising problem, in which clouds are considered as noise in respect to land surface in images. \n",
4343
"\n",
44-
"The notebook, we demonstrates a way of combining pre-trained deep learning model available in living atlas and image processing technique available in [raster functions](https://github.com/Esri/raster-functions) to remove clouds from satellite imagery. "
44+
"In this notebook, we will detect and replace cloud contaminated regions of satellite imagery by combining a pre-trained deep learning model, available in living atlas, and an image processing technique, available in [raster functions](https://github.com/Esri/raster-functions)."
4545
]
4646
},
4747
{
@@ -62,7 +62,7 @@
6262
"outputs": [],
6363
"source": [
6464
"import matplotlib.pyplot as plt\n",
65-
"#import arcpy\n",
65+
"import arcpy\n",
6666
"from arcgis import GIS\n",
6767
"from arcgis.learn import prepare_data, Pix2PixHD, Pix2Pix"
6868
]
@@ -186,14 +186,14 @@
186186
"cell_type": "markdown",
187187
"metadata": {},
188188
"source": [
189-
"### Use cloud mask generation pre-trained model"
189+
"### Use the pre-trained cloud mask generation model"
190190
]
191191
},
192192
{
193193
"cell_type": "markdown",
194194
"metadata": {},
195195
"source": [
196-
"Cloud mask generation pre-trained model, trained on sentinel-L2A imagery is used to generate cloud mask for input raster. The cloud mask is used by Stepwise local radiometric adjustment (SLRA) raster function as guidance for removal of cloud-contaminated pixels in the target raster."
196+
"The pre-trained cloud mask generation model has been trained on sentinel-L2A imagery and is used to generate a cloud mask for an input raster. The cloud mask will be used by a Stepwise local radiometric adjustment (SLRA) raster function as guidance for removing cloud contaminated pixels from the target raster."
197197
]
198198
},
199199
{
@@ -238,14 +238,14 @@
238238
"cell_type": "markdown",
239239
"metadata": {},
240240
"source": [
241-
"### Reclassify cloud types in cloud mask"
241+
"### Reclassify cloud types in the cloud mask"
242242
]
243243
},
244244
{
245245
"cell_type": "markdown",
246246
"metadata": {},
247247
"source": [
248-
"Cloud are classfied into high, medium, and low density. As all types of clouds detected by the pre-trained model need to be removed. Hence, its reclassified into a single class."
248+
"The pre-trained cloud mask model will classify clouds into 3 classes. low, medium, and high density. As we want to remove all cloud contaminated regions, we will reclassify these 3 classes into one single class."
249249
]
250250
},
251251
{
@@ -305,21 +305,21 @@
305305
"cell_type": "markdown",
306306
"metadata": {},
307307
"source": [
308-
"## Use stepwise local radiometric adjustment raster function"
308+
"## Use the stepwise local radiometric adjustment raster function"
309309
]
310310
},
311311
{
312312
"cell_type": "markdown",
313313
"metadata": {},
314314
"source": [
315-
"This Python raster function is for blending areas using Stepwise Local Radiometric Adjustment algorithm [1](https://www.mdpi.com/517118). The stepwise local radiometric adjustment is undertaken to fill contaminated areas and is conducted on each mask region of the target image. This tool replaces those pixels which are covered with clouds using the replacement raster. \n",
315+
"Next, we will use the Python raster function to blend areas using a Stepwise Local Radiometric Adjustment algorithm [Li .et al, 2019](https://www.mdpi.com/517118). Stepwise Local Radiometric Adjustment is used to fill contaminated areas and is performed on each mask region of the target image. Using the replacement raster, the tool will replace pixels that are covered with clouds. \n",
316316
"\n",
317-
"The raster functions can be downloaded as python(.py) file from [raster-functions](https://github.com/Esri/raster-functions/blob/master/functions/StepwiseLocalRadiometricAdjustment.py), available inside the functions folder. StepwiseLocalRadiometricAdjustment.py can be opened using `Open Python Raster function` in pane. Then, it is saved using `Save As`. `Size of Window` and `Buffer Mask` can be experimented with values for varying results according to requirements and cloud coverage.\n",
317+
"The raster functions can be downloaded as a python(.py) file [raster-functions](https://github.com/Esri/raster-functions/blob/master/functions/StepwiseLocalRadiometricAdjustment.py) in the functions folder. StepwiseLocalRadiometricAdjustment.py can be opened using `Open Python Raster function`. Once opened, save it using `Save As`. `Size of Window` and `Buffer Mask` can be experimented with values for varying results according to requirements and cloud coverage. Next, you can experiment with different values for the Size of Window and Buffer Mask parameters, depending on the requirements and cloud coverage of your use case.\n",
318318
"\n",
319319
"- `Input Raster`: cloud covered imagery\n",
320320
"- `Input Replacement raster`: replacement raster\n",
321321
"- `Input Mask`: generated cloud mask\n",
322-
"- `Size of Window`: default set to 80, can be any multiples of 20\n",
322+
"- `Size of Window`: default set to 80, can be any multiple of 20\n",
323323
"- `Buffer Mask`: any value between 0-15, accordiong to coverage of cloud mask"
324324
]
325325
},
@@ -334,7 +334,7 @@
334334
"cell_type": "markdown",
335335
"metadata": {},
336336
"source": [
337-
"The saved raster function is exported as rft(raster function template). rft is used in `Generate Raster From Raster Function` tool to get the final results as this tool is designed for raster processing using multiple threads to help speed up the processing."
337+
"The saved raster function can then be exported as an rft(raster function template). rft is used in the `Generate Raster From Raster Function` tool to get the final results, as this tool is designed for raster processing using multiple threads to help speed up the processing."
338338
]
339339
},
340340
{
@@ -370,7 +370,7 @@
370370
"cell_type": "markdown",
371371
"metadata": {},
372372
"source": [
373-
"In this notebook, we demonstrated a way to remove clouds from satellite imagery with a combination of pre-trained deep learning model and esri raster function. It also revels how we can use our developed python raster functions in arcgis pro. "
373+
"In this notebook, we have demonstrated a method to remove clouds from satellite imagery with a combination of a pre-trained deep learning model and Esri raster functions. Further, it demonstrated how you can use your developed python raster functions in ArcGIS Pro."
374374
]
375375
},
376376
{

0 commit comments

Comments
 (0)