[ncl-talk] Compute Shapefile Area with NCL

Rick Brownrigg brownrig at ucar.edu
Tue Jun 6 13:49:00 MDT 2017


Hi,

Often times, for polygonal shapefiles, the area is given as a variable in
the shapefile.

Rick


On Tue, Jun 6, 2017 at 10:31 AM, Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> 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
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170606/ae8cb357/attachment.html 


More information about the ncl-talk mailing list