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

not important but would be cool: id numbers generated from centroid and start date #33

Open
admahood opened this issue Sep 18, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@admahood
Copy link
Collaborator

totally a random thought. what if we had a number for the start date (days since 1970) combined with the lat/long of the centroid as the seed to generate an alphanumeric code for the id number. that way independent iterations of firedpy would come up with the exact same id numbers for the same events.

examplecode from R.
library(tidyverse)

days_from_1970 <- Sys.Date() %>% as.numeric
my_house <- c(40.019786, -105.266943)

set.seed(sum(days_from_1970, my_house))
stringi::stri_rand_strings(n = 1, length = 10)
[1] "KrSDx6y6oU"

set.seed(sum(days_from_1970, my_house))
stringi::stri_rand_strings(n = 1, length = 10)
[1] "KrSDx6y6oU"

@admahood
Copy link
Collaborator Author

Another thought on this - use lat long for the centroid, that way it's more easily understood

@admahood
Copy link
Collaborator Author

like... id is just N40019786W105266943m6d22y1980

@mikoontz
Copy link

mikoontz commented Jul 9, 2021

It looks like this one was done? See also: #35

@admahood admahood added the enhancement New feature or request label May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants