[ncl-talk] Compute Shapefile Area with NCL

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Tue Jun 6 10:31:54 MDT 2017


Alan,

It looks like the NCL function area_poly_sphere does this.  I have never
tried it.  See the documentation.

The category "Lat/lon functions" is a good place to search for
functionality for shapefile-related data structures, such as spherical
polygons.

--Dave


On Tue, Jun 6, 2017 at 9:44 AM, Alan Rhoades <alan.m.rhoades at gmail.com>
wrote:

> Hello,
>
> I was curious if NCL currently supports a function that could compute a
> shapefile's area?  I noticed that the function "print_shapefile_info" from
> https://www.ncl.ucar.edu/Applications/Scripts/shapefile_utils.ncl can
> print certain metadata (i.e., geometry types, # of features, min/max
> lat/lon, etc.), but it doesn't seem to support the computation of the
> shapefile's total area.
>
> I currently use toolsets in QGIS to compute the shapefile area, but since
> I use NCL primarily in my workflows I thought it might be a useful function
> to create (if it hasn't already been).
>
> Thanks in advance!
>
> AR
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170606/356b4173/attachment-0001.html 


More information about the ncl-talk mailing list