|
68 | 68 | "outputs": [],
|
69 | 69 | "source": [
|
70 | 70 | "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" |
73 | 73 | ]
|
74 | 74 | },
|
75 | 75 | {
|
|
166 | 166 | "cell_type": "markdown",
|
167 | 167 | "metadata": {},
|
168 | 168 | "source": [
|
169 |
| - "## Down-sampling" |
| 169 | + "## Increasing resolution" |
170 | 170 | ]
|
171 | 171 | },
|
172 | 172 | {
|
|
250 | 250 | "cell_type": "markdown",
|
251 | 251 | "metadata": {},
|
252 | 252 | "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", |
254 | 254 | "\n",
|
255 | 255 | "`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."
|
256 | 256 | ]
|
|
259 | 259 | "cell_type": "markdown",
|
260 | 260 | "metadata": {},
|
261 | 261 | "source": [
|
262 |
| - "## Up-sampling" |
| 262 | + "## Decreasing resolution" |
263 | 263 | ]
|
264 | 264 | },
|
265 | 265 | {
|
|
320 | 320 | "cell_type": "markdown",
|
321 | 321 | "metadata": {},
|
322 | 322 | "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", |
324 | 324 | "\n",
|
325 | 325 | "`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)."
|
326 | 326 | ]
|
|
342 | 342 | "name": "python",
|
343 | 343 | "nbconvert_exporter": "python",
|
344 | 344 | "pygments_lexer": "ipython3",
|
345 |
| - "version": "3.6.2" |
| 345 | + "version": "3.6.6" |
346 | 346 | },
|
347 | 347 | "toc": {
|
348 | 348 | "nav_menu": {},
|
|
0 commit comments