Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinError 10054] An existing connection was forcibly closed by the remote host #76

Open
frederikvand opened this issue Mar 8, 2024 · 1 comment

Comments

@frederikvand
Copy link

In my production script I always get [WinError 10054] An existing connection was forcibly closed by the remote host. This issue does not reproduce in a different clean script. Same environment, same terminal, same package. Why is richdem calling a remote host? Its a small raster and I have 64 gb of ram. I didn't have this problem a couple days ago and no idea what what changed. The error occurs when TerrainAttribute is called.

Tot_height_rd = rd.rdarray(Tot_height, no_data=np.nan)

get slope = rd.TerrainAttribute(
height_array, attrib="slope_degrees"
) # slope_riserun

If I load exactly the same packages in the clean script and use TerrainAttribute it still works. Can't find the cause at all.

@frederikvand
Copy link
Author

It only seems to occur when transforming the array with Tot_height_rd = rd.rdarray(Tot_height, no_data=np.nan)
When I write the matrix to disk and then load it with richdem_raster = rd.LoadGDAL(dem_path), the error seems solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant