MiKatt / openSTARS

open source implementation of the STARS ArcGIS toolbox
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0239237
Other
46 stars 13 forks source link

calc_prediction_sites {openSTARS} one site per segment/edge #33

Closed KGBrennan closed 1 year ago

KGBrennan commented 1 year ago

Hi, is it possible to use calc_prediction_sites {openSTARS} to generate one site placed on the center of each edge or stream segment?

Thanks.

MiKatt commented 1 year ago

Sorry, so far it is only possible to distibute the sites with approximatelly the same distance between each other. If you have a look at the code of the fuction, you may come up with a looping algorithm yourself. If you have any questions about the details for that, just let me know

KGBrennan commented 1 year ago

Thanks,

A work around is used was to export edges as spatial lines in R and generate centroid points for each edge, then when they are snaped they are usually close enough yet might not work for all river networks. Should double check edges and developed center prediction points.


From: MiKatt @.> Sent: Thursday, November 10, 2022 1:06 PM To: MiKatt/openSTARS @.> Cc: Kyle Brennan @.>; Author @.> Subject: Re: [MiKatt/openSTARS] calc_prediction_sites {openSTARS} one site per segment/edge (Issue #33)

Sorry, so far it is only possible to distibute the sites with approximatelly the same distance between each other. If you have a look at the code of the fuction, you may come up with a looping algorithm yourself. If you have any questions about the details for that, just let me know

— Reply to this email directly, view it on GitHubhttps://github.com/MiKatt/openSTARS/issues/33#issuecomment-1310834328, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWKFAKAESN5WNUSWHUJWA53WHVIS5ANCNFSM6AAAAAARZJYJAQ. You are receiving this because you authored the thread.Message ID: @.***>