python - The inverse of maskoceans in basemap -


long story short: determining how big percentage of area of either open ocean or fjord covered lat/long points. determine area covered lat/long points planning on computing minimum bounding geometry or using cell based approach. https://gis.stackexchange.com/questions/154202/how-to-quantify-the-coverage-area

however, know how of space covered in %, need know how large water area/fjord in total. see basemap has maskoceans function (http://matplotlib.org/basemap/api/basemap_api.html#mpl_toolkits.basemap.maskoceans) recon gives land area area. however, opposite maskland function, or other function water area in python?

any other suggestions water area in python appreciated.

i think you're looking in matplotlib.basemap:

is_land(xpt, ypt)

returns true if given x,y point (in projection coordinates) on land, false otherwise. definition of land based upon gshhs coastline polygons associated class instance. points on lakes inside land regions not counted land points.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -