Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lessons/landlab/landlab/overland_flow.ipynb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old way of reading an ESRI ASCII file. We should update this notebook to use the new way. But in another pull request.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, OK. I couldn't remember which was the new way. I only changed it because it was failing in the CI test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a future pr, the new way is something like,

from landlab.io import esri_ascii

with open("data/square-test-basin.asc") as stream:
    grid = esri_ascii.load(filepath, name="topographic__elevation")
z = grid.at_node["topographic__elevation"]

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"source": [
"import numpy as np\n",
"from landlab.components.overland_flow import OverlandFlow\n",
"from landlab.io.esri_ascii import read_esri_ascii\n",
"from landlab.io import read_esri_ascii\n",
"from matplotlib.pyplot import figure"
]
},
Expand Down