[ncl-talk] convert polyline shapefile to netcdf via ncl_convert2nc

Lyndz olagueralyndonmark429 at gmail.com
Fri Apr 6 23:30:29 MDT 2018


Dear NCL experts,

I would like to convert the following shapefile to a netcdf file.
I created the shapefile from a csv file containing jtwc tc tracks (see
attached csv2shp.py)
Also attached is the csv file.

When I used the ncl_convert2nc the netcdf file has no lat-lon dimension.
Here's the output of the ncdump. Is it also possible to divide the TC
categories by dividing the Vmax values?


I'll appreciate any suggestion on how to do this correctly.


netcdf par_jtwc_above_ts_1979-1993 {
dimensions:
geometry = 2 ;
segments = 2 ;
num_features = 1050 ;
num_segments = 1050 ;
num_points = 2100 ;
variables:
int geometry(num_features, geometry) ;
int segments(num_segments, segments) ;
double x(num_points) ;
double y(num_points) ;
int SN(num_features) ;
int CY(num_features) ;
int Y1(num_features) ;
int M1(num_features) ;
int D1(num_features) ;
int H1(num_features) ;
int VMax1(num_features) ;
int Y2(num_features) ;
int M2(num_features) ;
int D2(num_features) ;
int H2(num_features) ;
int VMax2(num_features) ;

// global attributes:
:segs_numPnts = 1 ;
:segs_xyzIndex = 0 ;
:geom_numSegs = 1 ;
:geom_segIndex = 0 ;
:geometry_type = "polyline" ;
:layer_name = "par_jtwc_above_ts_1979-1993" ;
:creation_date = "Sat Apr  7 14:11:24 JST 2018" ;
:NCL_Version = "6.4.0" ;
:system = "Linux localhost.localdomain 3.10.0-327.36.3.el7.x86_64 #1 SMP
Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux" ;
:Conventions = "None" ;
:title = "NCL: convert-OGR-to-netCDF" ;
}


Sincerely,

Lyndz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.prj
Type: application/octet-stream
Size: 143 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.dbf
Type: application/x-dbf
Size: 114868 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.shx
Type: application/octet-stream
Size: 8500 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.shp
Type: application/octet-stream
Size: 92500 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csv2shp.py
Type: text/x-python
Size: 2904 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.csv
Type: text/csv
Size: 43826 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0001.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: par_jtwc_above_ts_1979-1993.png
Type: image/png
Size: 125796 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180407/1137a377/attachment-0001.png>


More information about the ncl-talk mailing list