Skip to content

Commit 5d24901

Browse files
authored
Merge pull request #407 from jmp75/fix/update_notebooks
Update examples/Numpy.ipynb
2 parents b902e81 + 48e85f4 commit 5d24901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/Numpy.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"metadata": {},
6767
"outputs": [],
6868
"source": [
69-
"url = 'http://earlywarning.usgs.gov/hydrodata/sa_30s_zip_grid/sa_acc_30s_grid.zip'\n",
69+
"url = 'https://edcintl.cr.usgs.gov/downloads/sciweb1/shared/hydrosheds/sa_30s_zip_grid/sa_acc_30s_grid.zip'\n",
7070
"filename = os.path.basename(url)\n",
7171
"name = filename[:filename.find('_grid')]\n",
7272
"adffile = name + '/' + name + '/w001001.adf'\n",
@@ -130,7 +130,7 @@
130130
"\n",
131131
"with rasterio.Env():\n",
132132
" rows, cols = acc.shape\n",
133-
" src_transform = list(dataset.affine)\n",
133+
" src_transform = list(dataset.transform)\n",
134134
" src_transform[0] *= shrink\n",
135135
" src_transform[4] *= shrink\n",
136136
" src_transform = Affine(*src_transform[:6])\n",
@@ -283,9 +283,9 @@
283283
"name": "python",
284284
"nbconvert_exporter": "python",
285285
"pygments_lexer": "ipython3",
286-
"version": "3.6.3"
286+
"version": "3.7.3"
287287
}
288288
},
289289
"nbformat": 4,
290-
"nbformat_minor": 2
290+
"nbformat_minor": 4
291291
}

0 commit comments

Comments
 (0)