VIC运行笔记2019.05.01

可执行文件加入Linux默认路径的办法

如果需要临时的成为系统默认路径可以这样:
export PATH=/home/VIC/vic/drivers/classic:$PATH 
此处假设要加入的路径是usr/local/arm/bin,记住,可执行文件是位于bin下面,比如可执行文件是a.o路径不能是:usr/local/arm/bin/a.o,路径指向可执行文件的所在 文件夹。
这样添加是暂时的,在关闭终端后就失去作用。

另外一种长期的方法是:
把路径加到/etc/profile或者~/.bash_profile,添加完之后需要注销一下,或者转换一下用户也可以啦。
就是在PATH加上命令的搜索路径就可以了;

参数文件夹:


#######################################################################
# Land Surface Files and Parameters
#######################################################################
SOIL            /vic/vic.sample.stehekin-old/stehekin/params/vic/soil_param.STEHE    # Soil parameter path/file
ARC_SOIL        FALSE   # TRUE = read soil parameters from ARC/INFO ASCII grids
#SOIL_DIR        (soil param directory)   # Directory containing ARC/INFO ASCII grids of soil parameters - only valid if ARC_SOIL is TRUE
BASEFLOW    ARNO    # ARNO = columns 5-8 are the standard VIC baseflow parameters; NIJSSEN2001 = columns 5-8 of soil file are baseflow parameters from Nijssen et al (2001)
JULY_TAVG_SUPPLIED    FALSE    # TRUE = final column of the soil parameter file will contain average July air temperature, for computing treeline; this will be ignored if COMPUTE_TREELINE is FALSE; FALSE = compute the treeline based on the average July air temperature of the forcings over the simulation period
ORGANIC_FRACT    FALSE    # TRUE = simulate organic soils; soil param file contains 3*Nlayer extra columns, listing for each layer the organic fraction, and the bulk density and soil particle density of the organic matter in the soil layer; FALSE = soil param file does not contain any information about organic soil, and organic fraction should be assumed to be 0
VEGLIB            /vic/vic.sample.stehekin-old/stehekin/params/vic/veglib.LDAS    # Veg library path/file
VEGPARAM        /vic/vic.sample.stehekin-old/stehekin/params/vic/veg_param.STEHE    # Veg parameter path/file
ROOT_ZONES      3    # Number of root zones (must match format of veg param file)
VEGPARAM_LAI     TRUE    # TRUE = veg param file contains LAI information; FALSE = veg param file does NOT contain LAI information
LAI_SRC     LAI_FROM_VEGLIB    # LAI_FROM_VEGPARAM = read LAI from veg param file; LAI_FROM_VEGLIB = read LAI from veg library file
SNOW_BAND    5       /vic/vic.sample.stehekin-old/stehekin/params/vic/snowbands.STEHE    # Number of snow bands; if number of snow bands > 1, you must insert the snow band path/file after the number of bands (e.g. SNOW_BAND 5 my_path/my_snow_band_file)

在此处可以看出设置不设置动态植被!!!

一定注意各个文件引用路径是否对!,因为在linux里路径会发生更改。
[root@VM_0_15_centos src]# gcc *c -lm -o classic  -I/vic/vic/
  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Leon_124

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值