Calculate how many cells in longitude should be used, so that the search square is roughly 0.1 * 0.1 km^2
earthCircumfKm
Circumference of the Earth, in km
length1DegLatKm
Length of one degree of latitude, in km
resKm
Desired spatial resolution, in km
resDeg
Meridional spatial resolution, in degrees
nlat
Number of latitude cells that go from 90N to 90S
nlon
Number of longitude cells that go from 180W to 180E
lat
Array of latitudes (in decreasing order)
lon
Array of longitudes (in increasing order)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.