#http://www.ncl.ucar.edu/Download/cygwin.shtml#InstallCygwinX
#https://www.earthsystemgrid.org/dataset/ncl.650.dap/file/ncl_ncarg-6.5.0-CYGWIN_NT-10.0-WOW_i686.tar.gz
https://cygwin.com/setup-x86.exe
http://mirrors.aliyun.com/cygwin/
./setup-x86.exe -m http://mirrors.aliyun.com/cygwin/ -q -P netcdf,autoconf,autoconf2.1,autoconf2.5,binutils,bison,byacc,flex,gcc-core,gcc-g++,gdb,make,openssl-devel,openssl,vim,ghostscript,ImageMagick,expat,libcurl4,libexpat-devel,libgfortran4,libidn-devel,libxml2,libtirpc,zlib,zlib-devel,libcurl-devel,libcurl4,tcsh,libX11-devel,libX11_6,libXaw-devel,libXaw7,libXm4,libXmu-devel,libXpm4,libXt-devel,libcairo-devel,libcairo2,libfontconfig-devel,libfontconfig1,libfreetype-devel,libfreetype6,libxcb-devel,xauth,xclock,xinit,xorg-server,xorg-server-common,xorg-server-devel,xorg-server-dmx,xorg-server-extra,xorg-server-xorg,xterm,wget
#https://www.earthsystemgrid.org/dataset/ncl.650.dap/file.html
cd /usr/local
wget https://www.earthsystemgrid.org/dataset/ncl.650.dap/file/ncl_ncarg-6.5.0-CYGWIN_NT-10.0-WOW_i686.tar.gz
gunzip ncl_ncarg-6.5.0-CYGWIN_NT-10.0-WOW_i686.tar.gz
tar -xvf ncl_ncarg-6.5.0-CYGWIN_NT-10.0-WOW_i686.tar
export NCARG_ROOT=/usr/local
export PATH=/usr/local/bin:$PATH
wget http://www.ncl.ucar.edu/Applications/Scripts/polyg_1.ncl
wget http://www.ncl.ucar.edu/Applications/Data/cdf/climdiv_polygons.nc
ncl polyg_1.ncl