[ncl-talk] Converting shapefiles to netcdf using NCL_convert2nc

Krishna chandramouli chandrakrishna.90 at gmail.com
Mon Mar 6 02:08:27 MST 2017


Hi,

This worked for me,  when i tried to plot precipitation over TN.

load "./shapefile_utils.ncl"

.....

sname = "IND_adm0.shp"
print_shapefile_info(sname)
plot_shapefile(sname)

.....



Regards
-Krishna-

On Mon, Mar 6, 2017 at 2:27 PM, Sri Nandini <snandini at marum.de> wrote:

> Thank you
>
> MY idea is to use the shapefile as a .nc mask file to plot precipitation
> teleconnections over a basin.
> Since the shapefile is made up of many shapes, and attributes, i cannot
> make it visualize in NCL.
> SO i decided to create a .nc to overlay on my precipitation plots and mask
> the other regions out.
>
> On Mar 3, 2017 8:07:13 PM, Mary Haley wrote:
>
> Hi Sri,
>
> You can actually type:
>
>    ncl_convert2nc xxxx.shp
>
> Where "xxxx.shp" is the name of your shapefile, and it should create a "
> xxxx.nc" file.  You must also have the other files, xxxx.dbf and xxxx.shx
> in the same directory.
>
> I'm not sure if converting Shapefiles to NetCDF really buys you anything.
> If you plan to use this with a GIS application, then using the original
> shapefile is probably a better idea.
>
> --Mary
>
>
> On Thu, Mar 2, 2017 at 5:13 AM, Sri Nandini <snandini at marum.de> wrote:
>
> Hello
>
> I am trying to convert shapefile using NCL_convert2nc into netcdf and
> wondered if anyone has done this or knows of an example?
> http://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml
>
> On the above site it says its possible, but im not sure how to proceed.
> Could someone please confirm if this is possible to do with NCL?
>
> THank you
>
> Sri
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> _______________________________________________
> 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/20170306/33594224/attachment.html 


More information about the ncl-talk mailing list