Skip to content

Commit c123a5b

Browse files
committed
Remove "downsampling" and "upsampling" in doc to avoid confusion
Fix #40
1 parent 6dfb843 commit c123a5b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/Compare_algorithms.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
"outputs": [],
6969
"source": [
7070
"ds_in = xe.util.grid_global(20, 15) # input grid\n",
71-
"ds_fine = xe.util.grid_global(4, 4) # for down-sampling\n",
72-
"ds_coarse = xe.util.grid_global(30, 20) # for up-sampling"
71+
"ds_fine = xe.util.grid_global(4, 4) # high-resolution target grid\n",
72+
"ds_coarse = xe.util.grid_global(30, 20) # low-resolution target grid"
7373
]
7474
},
7575
{
@@ -166,7 +166,7 @@
166166
"cell_type": "markdown",
167167
"metadata": {},
168168
"source": [
169-
"## Down-sampling"
169+
"## Increasing resolution"
170170
]
171171
},
172172
{
@@ -250,7 +250,7 @@
250250
"cell_type": "markdown",
251251
"metadata": {},
252252
"source": [
253-
"When regridding from low-resolution to high-resolution (down-sampling), `bilinear` and `patch` will produce smooth results, while `conservative` and `nearest_s2d` will preserve the original coarse grid structure (although the data is now defined on a finer grid.). \n",
253+
"When regridding from low-resolution to high-resolution, `bilinear` and `patch` will produce smooth results, while `conservative` and `nearest_s2d` will preserve the original coarse grid structure (although the data is now defined on a finer grid.). \n",
254254
"\n",
255255
"`nearest_d2s` is quite different from others: One source point can be mapped to **only one destination point**. Because we have far less source points (on a low-resolution grid) than destination points (on a high-resolution grid), most destination points cannot receive any data so they just have zero values. Only the destination points that are closest to source points can receive data."
256256
]
@@ -259,7 +259,7 @@
259259
"cell_type": "markdown",
260260
"metadata": {},
261261
"source": [
262-
"## Up-sampling"
262+
"## Decreasing resolution"
263263
]
264264
},
265265
{
@@ -320,7 +320,7 @@
320320
"cell_type": "markdown",
321321
"metadata": {},
322322
"source": [
323-
"When regridding from high-resolution to low-resolution (up-sampling), all methods except `nearest_d2s` produce similar results here. But that's largely because the input data is smooth. For real-world data, it is generally recommended to use `conservative` for up-samplig, because it takes average over small source grid boxes, while `bilinear` and `nearest_s2d` effectively throw away most of source grid boxes.\n",
323+
"When regridding from high-resolution to low-resolution, all methods except `nearest_d2s` produce similar results here. But that's largely because the input data is smooth. For real-world data, it is generally recommended to use `conservative` for upscaling, because it takes average over small source grid boxes, while `bilinear` and `nearest_s2d` effectively throw away most of source grid boxes.\n",
324324
"\n",
325325
"`nearest_d2s` is again different: **Every** source point **has to be** mapped to a destination point. Because we have far more source points (on a high-resolution grid) than destination points (on a low-resolution grid), a single destination point will receive data from multiple source points, which can accumulate to a large value (notice the colorbar range)."
326326
]
@@ -342,7 +342,7 @@
342342
"name": "python",
343343
"nbconvert_exporter": "python",
344344
"pygments_lexer": "ipython3",
345-
"version": "3.6.2"
345+
"version": "3.6.6"
346346
},
347347
"toc": {
348348
"nav_menu": {},

0 commit comments

Comments
 (0)