
Linux
CHEN_BR
这个作者很懒,什么都没留下…
展开
-
安装nc4
./configure --prefix=/home/theo/netcdf4/zlib-1.2.11makemake checkmake install./configure --prefix=/home/theo/netcdf4/hdf-1.8.20 --with-zlib=/home/theo/netcdf4/zlib-1.2.11 CC=icc CXX=icpc --enable-cxx CFLAGS=-O3 CXXFLAGS=-O3 FC=ifort F77=ifort F90=ifort原创 2022-01-10 19:02:40 · 680 阅读 · 0 评论 -
vmware 虚拟机共享文件夹后找不到共享目录
执行一下这个命令vmhgfs-fuse /mnt/hgfs/ 再看 mnt 目录转载 2021-12-06 09:39:28 · 807 阅读 · 0 评论 -
通用Linux目录名称
目录 用法 / 虚拟目录的根目录。此处通常没有文件 /bin 二进制目录,存储许多GNU用户级别的实用程序 /boot 引导目录,储存引导文件 /dev 设备目录,Linux在该目录中创建设备节点 /etc 系统配置文件目录 /home 主目录,Linux在该目录中创建用户目录 /lib 库目录,存储系统和应用程序库文件 /media 媒体目录,可移动媒体设备常用的挂载点 /mnt 挂载目录,另一个可移动媒体设备原创 2021-01-15 14:17:01 · 224 阅读 · 1 评论 -
libappindicator-gtk3 被 sunloginclient-10.1.1.38139-1.x86_64 需要
yum install libappindicator-gtk3原创 2021-01-14 14:38:47 · 5440 阅读 · 2 评论 -
/var/run/yum.pid 已被锁定
网上的解决办法:直接在终端运行 rm -f /var/run/yum.pid 将该文件删除,然后再次运行yum原创 2021-01-14 14:14:09 · 241 阅读 · 0 评论 -
Installation instructions for VisIt
This document contains instructions for installing VisIt on Windows, MacOS X,and Unix systems. The Windows and MacOS X installation instructions are first,followed by the Unix installation instructions.Windows:========1. Download the visit3_1_3.w..原创 2020-11-06 20:35:20 · 229 阅读 · 0 评论 -
Netcdf安装
Netcdf4.4的安装过程(附netcdf4.1.3的安装过程)https://blog.youkuaiyun.com/schumacher2016/article/details/80850240原创 2020-11-04 19:42:15 · 918 阅读 · 0 评论 -
安装ncl
所有的NCL二进制源文件都在 Earth System Grid https://www.earthsystemgrid.org/dataset/ncl.html中列出。目前最新的版本是 NCL 6.4.0 binaries到你需要的版本,下载吧~ 如何安装NCL二进制文件? 首先需要确定的是,你想把文件安装在哪里。 比如你想安装在/usr/local/ncl-6.4.0这个文件夹中: 那么首先你需要创建这个文件夹: mkdir /usr/local/ncl-6.4.0原创 2020-11-04 15:29:07 · 835 阅读 · 0 评论 -
mt参数
原创 2020-10-30 13:26:34 · 400 阅读 · 0 评论 -
log记录
mpirun -np 20 ./fvcom --casename=zhoushan >&zhoushan.log&这样之后,就会后台运行了会给你显示一个jobid,记住他想停止他,就killkill后边跟那个id号如果想看任务跑的情况就tail-fzhoushan.log那个70498就是jobid如果想停止,kill70498tail了的话,又跳出来了如果不想看了就ctrl+c...原创 2020-10-27 15:43:51 · 195 阅读 · 0 评论 -
Flooding cell错误
!! --->name 2020-10-26, output of Flooding cell WHERE (H1 < 0.0) flooding_cell = ISWETC END WHERE CALL AEXCHANGE(EC,MYID,NPROCS,flooding_cell)!! <---name比如,在WET_JUDGE内你加的这一块内容,应该放在一个subroutine内否则这一段是游离在subroutine以外的...原创 2020-10-27 14:11:30 · 247 阅读 · 0 评论 -
如何备注修改后的代码
备注对于改代码是很好的习惯,否则时间长了,会忘记首先,不要有英文第二,对于这种单行的,你可以直接在末尾加先写上你的名字,毕竟这是你自己对代码的贡献然后可以简单标记日期和原因!! name 2020-10-26, output of Flooding cell如果你加的片段比较长,可以用以下格式框起来!! name 2020-10-26, output of Flooding cell。。。!! name或者!! --->name 2020-10...原创 2020-10-27 14:07:43 · 487 阅读 · 0 评论 -
生成潮位矩阵数据
clear;clcfor k=1:1:15 %% 此处的15记得修改,15个开边界点filename=sprintf("data_%d.mat",k);load(filename);Tidal(:,k)=TimeSeries(1,:);end%%输出fid=fopen("Elevation.dat","wt");[p,q] = size(Tidal)for i=1:1:p for j=1:1:q if j==q fprintf(fi.原创 2020-10-15 14:58:13 · 591 阅读 · 0 评论 -
加控制线和平滑地形
这个就是平滑因子,调大就更平滑,0-1取值,根据梯度我是画网格,然后平滑,然后再看要不要加控制线,要加就加上我看控制线的输入文件是xyz的水深那种呢?这个控制线的xyz文件是合并后的,不是平滑后的,应该是加完控制线然后平滑。控制线是黑点组成的加载进去,就能看到。其实意思就是你知道控制线了,然后你用refine加密那一部分sms里,选中需要加密的三角形部分,然后refine。一定要在sms格式的文件下弄...原创 2020-10-15 13:08:42 · 813 阅读 · 2 评论 -
FVCOM43安装
1. 进入source,搜索swmod2.F2.3.4.移动上去,删掉前面的在make的过程中就不会出现各种unrecognize了5. 然后修改libs里面的东西包括log还有cxx6.chmod777./untar.sh原创 2020-10-14 21:17:31 · 907 阅读 · 0 评论 -
linux安装GMT6.1
来源:https://docs.gmt-china.org/6.1/install/linux/RHEL/CentOSRHEL/CentOS 6/7/8 用户可以启用 GMT官方RPM仓库 以安装GMT最新版本。安装方式如下:# 安装 epel-releaseyum install epel-release# 启用 PowerTools 仓库 (仅限于 RHEL/CentOS 8 用户)yum config-manager --set-enabled PowerTools# 启原创 2020-10-14 18:45:49 · 1258 阅读 · 0 评论 -
GMT 4.5.18 在 Linux 下的安装
参考:https://blog.seisman.info/install-gmt4-under-linux/本文介绍如何在 Linux 下编译 GMT4 的最新版也是最终版本:GMT 4.5.18。下载官方 ftp:ftp://ftp.soest.hawaii.edu/gmt 国内镜像:http://mirrors.ustc.edu.cn/gmt/需要下载的包包括:gmt-4.5.18-src.tar.bz2 gshhg-gmt-2.3.7.tar.gz注:GMT 中的 tri.原创 2020-10-14 16:37:33 · 1136 阅读 · 0 评论 -
System Requirements
System Requirements:FigureGen relies on other software as it makes images from ADCIRC-related files. You will need to install these software packages on your system before using FigureGen.Generic Mapping Tools (GMT) is the software package that plots t原创 2020-10-14 14:47:44 · 428 阅读 · 0 评论 -
NOUTV——62
NOUTV,TOUTSV,TOUTFV,NSPOOLV=输出参数,用于控制为选定速度记录站的速度解提供的时间序列输出(fort.62输出)NOUTV= -3以netCDF格式在选定的速度记录站提供输出。热启动之后,将创建一个新的Fort.62.nc文件。NOUTV= -2以二进制格式在选定的速度记录站提供输出。热启动之后,将创建一个新的Fort.62文件。NOUTV= -1在选定的速度记录站以标准ascii格式提供输出。热启动之后,将创建一个新的Fort.62文件。NOUTV...原创 2020-10-14 13:00:02 · 317 阅读 · 0 评论 -
NOUTE——61
NOUTE,TOUTSE,TOUTFE,NSPOOLE=输出参数,用于控制在选定的海拔记录站为海拔解决方案提供的时间序列输出(fort.61输出)NOUTE= -3以netCDF格式在选定的海拔记录站提供输出。热启动之后,将创建一个新的Fort.61.nc文件。NOUTE= -2在选定的海拔记录站以二进制格式提供输出。热启动之后,将创建一个新的Fort.61文件。NOUTE= -1以标准ascii格式在选定的海拔记录站提供输出。热启动之后,将创建一个新的Fort.61文件。NO...原创 2020-10-14 12:56:15 · 325 阅读 · 0 评论 -
Linux下安装NCL最简单的方法:利用anaconda
conda listconda -V安装NCLconda create -n ncl_stable -c conda-forge ncl #完成之后输入下面的命令生效source activate ncl_stable #需要注意的是,每次重新要使用ncl,就输入这条命令激活nclng4ex xy05n -clean -W png #测试画图。 把grib或grib2转换成nc文件ncl_convert2nc gir..原创 2020-10-13 14:53:39 · 2772 阅读 · 0 评论 -
FES2014
在这些模拟中,ADCIRC在整个区域内和在具有四个主要半日(M2,N2,S2,K2)和四个主要日潮分量(K1,O1,P1,Q1)的开阔海洋边界上被迫通过潮汐均衡势和SAL项。开放边界高程取自TPXO9.1.(http://volkov.oce.orst.edu/tides/global.html)潮汐解;SAL项取自FES2014潮汐负荷解(ftp://ftp.legos.obs-mip.fr/pub/FES2012-project/data/LSA/FES2014/).。在这些模拟结果的评估原创 2020-10-12 15:59:16 · 2431 阅读 · 3 评论 -
Windows远程linux黑屏,但linux远程Windows却没问题
Windows远程linux黑屏,但linux远程Windows却没问题原创 2020-10-08 21:24:59 · 711 阅读 · 0 评论 -
Centos8 安装Teamviewer 安装 自动化安装过程如下
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf -y install wget wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm sudo dnf --enablerepo epel-playground install ./team...原创 2020-10-08 20:40:01 · 365 阅读 · 0 评论 -
2020-08-19
[theo@localhost ~]$ matlab/installterminate called after throwing an instance of 'std::runtime_error' what(): Unable to launch the MATLABWindow application已放弃 (核心已转储)[theo@localhost ~]$原创 2020-09-23 21:00:28 · 334 阅读 · 0 评论 -
在NetCDF文件中写入无限时间维度时,Matlab‘NC_UNLIMITED在错误的索引中‘
https://oomake.com/question/4815867无限维度Time需要是Matlab中的最后一个维度(Matlab与大多数其他NetCDF实现相反)。所以只需定义你的变量:varid_Q2D = netcdf.defVar(ncid,'Q2D','float',[west_east south_north Time]);原创 2020-09-23 21:00:11 · 778 阅读 · 1 评论 -
例子7错误
forrtl: error (78): process killed (SIGTERM)Image PC Routine Line Source padcirc 0000000000646574 for__signal_handl Unknown Unknownlibpthread-2.12.s 0000003889C0F7E0 Unknown ...原创 2020-09-23 20:41:16 · 2578 阅读 · 1 评论 -
version检查
邱师兄的我的原创 2020-09-23 10:31:44 · 269 阅读 · 0 评论 -
安装mpi错误
ld: warning: libimf.so, needed by ../../../ompi/.libs/libmpi.so, not found (try using -rpath or -rpath-link)ld: warning: libsvml.so, needed by ../../../ompi/.libs/libmpi.so, not found (try using -rpath or -rpath-link)ld: warning: libirng.so, needed by ..原创 2020-09-23 20:59:14 · 1197 阅读 · 2 评论 -
mpi
./configure --prefix=/opt/openmpi/4.0.3/intel CC=icc CXX=icpc FC=ifort F77=ifort --disable-vt原创 2020-09-21 15:36:08 · 216 阅读 · 0 评论 -
ex1并行错误
Determine the parameters MNPP and MNEPforrtl: severe (174): SIGSEGV, segmentation fault occurredfree(): invalid pointer已放弃 (核心已转储)原创 2020-09-21 10:32:15 · 340 阅读 · 0 评论 -
Linux下安装gcc后,那些C语言的库函数哪里找?
安装gcc库在哪里?函数库一般在/usr/lib/目录下头文件一般在/usr/include/目录下上面截图是安装文件函数库一般在/usr/lib/目录下头文件一般在/usr/include/目录下原创 2020-09-20 21:36:56 · 2591 阅读 · 0 评论 -
compiler=gnu
错误: 'norm2' declared INTRINSIC at (1) does not exist原创 2020-09-20 14:15:39 · 201 阅读 · 0 评论 -
在centos6.8安装gcc4.8.5(成功版本)
来源:http://www.voidcn.com/article/p-wwsxnpci-bmq.html1.获取gcc4.8.5的源码包(不同的版本,基本是只需要换掉后面的版本号即可更换下载地址)wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz22.解压压缩包tar -jxvf gcc-4.8.5.tar.bz23.进入解压后的目录cd gcc-4.8.54.下载、配置和安装需要的依赖库./contrib/download.原创 2020-09-20 11:58:14 · 1489 阅读 · 1 评论 -
vi,命令行下的文本编辑工具(cbr)
vi,命令行下的文本编辑工具。功能强大,要精通需要花很多时间,但学会基本操作,很容易。以下仅介绍最基本的操作。(1)启动vi(打开已有文件、创建新文件)vi filename(2)vi的三种模式普通模式、插入模式、命令行模式。进入vi后首先进入的是普通模式,vi等待编辑命令输入,也就是此时输入的字母都将被作为命令来解释。在普通模式下,输入命令i,o等进入插入模式,在插入模式下用户输入的任何字符都被vi当作文件内容保存起来,并显示在屏幕。在文本输入过程中,按ESC键返回普通模式。在普通模式下,输原创 2020-09-20 09:52:37 · 267 阅读 · 0 评论 -
加载共享文件夹(cbr)
加载共享文件夹df - hsu -mkdir /media/sharemount -t vboxsf share /media/sharedf -h原创 2020-09-20 09:51:18 · 121 阅读 · 0 评论 -
安装centos7虚拟机
然后启动系统后面就是内部安装启动原创 2020-09-20 08:38:45 · 136 阅读 · 0 评论 -
错误
You must specify a valid projection referenceand compile with PROJ to use files with latitude and longitue in cartesian mode您必须指定有效的投影参考 并与PROJ一起编译,以在笛卡尔模式下使用具有纬度和经度的文件...原创 2020-08-28 22:48:40 · 372 阅读 · 5 评论 -
arcgis和nc
原创 2020-08-23 13:50:01 · 221 阅读 · 0 评论 -
NetCDF 库在执行 ‘defVar‘ 函数期间遇到错误 - ‘Not a valid ID (NC_EBADID)‘。
参考:https://blog.youkuaiyun.com/weixin_41671327/article/details/103891131% if(ftbverbose); fprintf(['end : ' subname '\n']);end;>> air_pressure_varid=netcdf.defVar(nc,'air_pressure','NC_FLOAT',[time_dimid,node_dimid]);netcdf.putAtt(nc,air_pressure.原创 2020-08-20 22:00:53 · 2794 阅读 · 1 评论