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

Preserving point count when snapping clsutered spatial units? #743

Open
adhamenaya opened this issue Jul 30, 2023 · 3 comments
Open

Preserving point count when snapping clsutered spatial units? #743

adhamenaya opened this issue Jul 30, 2023 · 3 comments
Assignees

Comments

@adhamenaya
Copy link

adhamenaya commented Jul 30, 2023

I have a large dataset with 300,000 observations representing points located at various locations on a network. To improve efficiency, I grouped or clustered these points into about 300 spatial units then I used network.snapobservations to snap these new observations to the network.

Now, I want to analyze the spatial patterns of these new spatial units using the network.Moran function. However, I still want to consider the original count of points (300,000) when performing the analysis.

Is there a way to achieve this, i.e., snap the new spatial units to the network while preserving the information about the original 300,000 points, so I can use this information in the networkMoran function?

@jGaboardi
Copy link
Member

Hi, @adhamenaya. Unfortunately, there is no way to perform this. All observations should be taking into consideration at one time.

@adhamenaya
Copy link
Author

@jGaboardi thank you for your reply. Any recommendations to optimize the use of the network.snapobservations for such large datasets?

@jGaboardi
Copy link
Member

@adhamenaya Sorry for not getting back to you sooner. Within spaghetti, I don't have any recommendations. However, @knaaptime Might have some insight on if this might be possible with a PySAL adjacent project: geosnap?

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

No branches or pull requests

2 participants