I have two datasets (shp files (converted into csv)) in which one contains fire history and the other lightning strikes. Both data sets have latitude and longitude coordinates (same projection) and year of fire/lightning strike. I want to be able to select the lightning strike that caused the fire a certain year. Thus, I need to... 1) select the lightning strikes within a certain radius of the fire 2) from these lightning strikes select those within the same year.
Additional: I need it for every fire area (1300 areas) so yes automated as manual selection would take way too long. Further, I have included all lightning strikes of a fire area within a buffer of 1 km from the outer parts of the fire area. So in terms of coordinates, we are not talking about changes of more than .1 or .2 The temporal uncertainty can be bigger, as the lightning dataset varies largely within itself. Let's say 3 to 4 weeks of uncertainty. Oh, and output is less important, preferably a shape file. Thank you for your interest. –
I have tried with gpd.sjoin, however, this only joins the two data sets.