Ubuntu18.04亲测可用,分享一波!
白嫖党 附上转载链接
NCL官网
centos和Ubuntu安装NCL哔哩哔哩视频:
https://www.bilibili.com/video/BV1DW411n72f
按照B站视频安装,配置环境变量,测试
Ubuntu测试时可能会报错,比如出现bin/csh:解释器错误:没有那个文件或目录
,一般是缺少对应的工具
安装对应的工具:sudo apt-get install csh
如果时其他错误,请根据错误提示安装相应的包
博客地址:
https://ipsec.in/2018-12-27/Ubuntu-18-%E5%AE%89%E8%A3%85ncl-Linux-%E5%AE%89%E8%A3%85ncl.html
.hluresfile文件
可直接复制粘贴
!=========================================
! This is a sample .hluresfile. It should
! go in your home directory.
!
! Comments for ".res" files are preceded by a "!".
! Remember quotations are not used in .res files.
! White background/black foreground, these are the default in V6.1.0
*wkForegroundColor : (/0.,0.,0./)
*wkBackgroundColor : (/1.,1.,1./)
! Have a favorite colormap that you use for everything? You can
! make it your default here (note the name is NOT in quotes).
!
! In Version 6.1.0, the default is "ncl_default":
! http://www.ncl.ucar.edu/Document/Graphics/ColorTables/ncl_default.shtml
!
! For all available color maps, see
! http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
*wkColorMap : BlueWhiteOrangeRed
! Font - this is the default in V6.1.0.
! Use times-roman to get the pre-V6.1.0 default.
*Font : helvetica
! Function code - this is the default in V6.1.0.
! Use ':' to get the pre-V6.1.0 default.
*TextFuncCode : ~
! Make default X11 window larger (the default is 512x512)
!*windowWorkstationClass*wkWidth : 1000
!*windowWorkstationClass*wkHeight : 1000
! Make default PNG window larger (the default is 1024x1024)
!*imageWorkstationClass*wkWidth : 2500
!*imageWorkstationClass*wkHeight : 2500
! Note, if you just set wkWidth/wkHeight, this will affect both
! X11 window AND PNG image size
!*wkWidth : 1500
!*wkHeight : 1500
! Increase the default (16mb) contour memory.
! The default is 100000000.
! For example, if you have gridded data that
! is larger than 500 x 500, you may need this.
! *wsMaximumSize: 300000000
!==========================================
也可以到官网查看
http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml