[ncl-talk] converting shapefile to netcdf

Rick Brownrigg brownrig at ucar.edu
Tue Nov 26 16:44:29 MST 2019


Hi Amy,

Attached is a very hurried plot of the shapefile. You say you want to get
"tresh(lon,lat)". What would lon,lat be in each case -- the centroid of the
region?

Rick

On Tue, Nov 26, 2019 at 3:51 PM Amy Hendricks via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Hello NCL geniuses,
>
> I am trying to write a shapefile to netcdf. The shapefile consists of
> circumpolar Treshnikov regions, and I would like to create a netCDF file
> that has the region values like tresh(lon,lat) = [region# from shapefile]
> on the ERA5 grid. All the examples I'm finding are for creating binary
> masks, and the ncl_convert2nc does not seem to work, at least it doesn't
> return anything useable.
>
> Attached are the ERA5 netCDF file, Treshnikov shapefile, as well as the
> result of ncl_convert2nc.
>
> Thank you in advance,
>
> Amy
>
> --
> Amy Hendricks
> Graduate Research Assistant
> Department of Atmospheric Sciences
> University of Alaska Fairbanks
> IARC 343-E
> 907-388-9893
> ashendricks at alaska.edu
> _______________________________________________
> 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/20191126/f146fe97/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tresh.png
Type: image/png
Size: 33875 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191126/f146fe97/attachment.png>


More information about the ncl-talk mailing list