I'm trying to find the area of regularly spaced coordinate quads that intersect a country. I have a shape file of country boundaries that I am able to read in as well as latitude/longitude bounding pairs from a climate model grid (e.g. for a single quad in the model grid: latitude =[50.625 52.500] longitude = [0.000 1.875]). I need to find the intersected area between each quad in the model grid and each country.
I can get the country boundaris and quad coordinate data into geopolyshapes and then do the intersection with geoclip, but from there am unable to calculate the area of the clipped geopolyshape, nor can I extract the lat/lon coordinates to do it some other way.
The solutions I've seen focus on reading in shape files using "readgeotables", which I could do for the country boundaries but can't do for the climate model grid coordinates since they are being extracted from netCDF files that contain the data.
In the end, my objective is to calculate the spatially waited average of different climate variables acoss each country.
Any insight or help will be much appreciated. Thanks!