Generating random selection of points by date?

1247
1
07-08-2012 01:48 PM
MeganJennings
New Contributor
I have a large dataset where point locations for individual animals are serially autocorrelated (many locations/pts in one day). For each individual animal, I would like to randomly subsample one location from each day for all the days sampled, but haven't found a way to automate the selection. There appear to be tools to generate a random sample my points, but not to stipulate that I want one from each day for each animal.

Any help would be much appreciated.

Megan
0 Kudos
1 Reply
CPoynter
Occasional Contributor III
Hi Megan,

You could maybe use the random number generator function of Python, setting an upper and lower range for the random sample to be selected from. For each unique animal select all of it's records and then using the Pythong random number generator select a value from the initial selection.

Regards,

Craig
0 Kudos