Closed joeroe closed 3 months ago
oceanJSON
endpoint to check if coordinates are in the ocean. Requires signing up for a free GeoNames account.PostGIS with PostgreSQL:
Without PostGIS:
GeoJSON Files with rgeo
:
Download GeoJSON files for land and ocean polygons.
Use the rgeo
gem to load the GeoJSON data and perform point-in-polygon checks.
Shapefiles with ruby-shapefile
and rgeo
:
Download shapefiles for land and ocean polygons.
Use the ruby-shapefile
gem to read the shapefiles.
Use the rgeo
gem to perform point-in-polygon checks.
I don't know what I was thinking with the former title: the question is not whether the site is in the sea, but where the sample came from. MarineCal is for samples from a marine environment and most of these show up on terrestrial sites. Conversely, samples from submarine sites (if people do radiocarbon dating of them??) are likely terrestrial in origin and should use IntCal/SHCal.
In that case, to my knowledge, there is no way of telling this directly from the data that are usually published with the date itself. The only logic, that I can think of, would be, if we have a Delta C13 value, and that value indicates a marine influence, then we could suggest to use it to use the marine curves. Do you have any other ideas?
Yeah I agree, it's not feasible to do this reliably. Defaulting to IntCal or SHCal, and giving the user the option to switch to MarineCal, seems fine.
We can detect whether to use the northern or southern hemisphere curve easily enough (if we have a latitude coordinate), but how can we know whether to use MarineCal?