WRF和WPS安装和编译时遇到的问题

WRF和安装过程中问题

报错原因多来自于路径为配置好,参考官网配置过程,注意配置完bashrc要:

source ~/.bashrc

WPS安装过程中问题

出现your versions of fortran and netcdf are not consistent

检查是否自己netcdf和Fortran编译器一致
如果没问题且wrf已成功编译,考虑重新

source ~/.bashrc

未能成功生成ungrid.exe

报错如下:

enc_jpeg2000.c(5): catastrophic error: cannot open source file "jasper/jasper.h"
  #include "jasper/jasper.h"

解决办法:修改configure.wps里的路径

COMPRESSION_LIBS = -L/path/lib -ljasper -
COMPRESSION_INC = -L/path/include -ljasper -

path修改为jasper在的路径

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
下面是一个WRFWPS的配置样例,用于全球等经纬度投影,分辨率为0.25度: WPS配置文件(namelist.wps): ``` &share wrf_core = 'ARW', max_dom = 1, start_date = '2022-01-01_00:00:00', end_date = '2022-01-02_00:00:00', interval_seconds = 21600, io_form_geogrid = 2, / &geogrid parent_id = 1, parent_grid_ratio = 1, i_parent_start = 1, j_parent_start = 1, e_we = 1440, e_sn = 720, dx = 0.25, dy = 0.25, map_proj = 'latlong', ref_lat = 0.0, ref_lon = 0.0, truelat1 = 0.0, truelat2 = 0.0, stand_lon = 0.0, geog_data_res = '10m', opt_geogrid_tbl_path = '/path/to/geog_data/GEOGRID.TBL', / &ungrib out_format = 'WPS', prefix = 'FILE', / &metgrid fg_name = 'FILE', io_form_metgrid = 2, opt_metgrid_tbl_path = '/path/to/metgrid_data/METGRID.TBL', / ``` WRF配置文件(namelist.input): ``` &time_control run_days = 0, run_hours = 24, run_minutes = 0, run_seconds = 0, start_year = 2022, 2022, 2022, start_month = 01, 01, 01, start_day = 01, 02, 02, start_hour = 00, 00, 00, end_year = 2022, 2022, 2022, end_month = 01, 01, 01, end_day = 02, 02, 03, end_hour = 00, 00, 00, interval_seconds = 21600, input_from_file = .true.,.true.,.true., history_interval = 60, 60, 60, frames_per_outfile = 1, 1, 1, restart = .false., restart_interval = 5000, io_form_history = 2, io_form_restart = 2, io_form_input = 2, io_form_boundary = 2, debug_level = 0, / &domains time_step = 120, time_step_fract_num = 0, time_step_fract_den = 1, max_dom = 1, e_we = 1440, e_sn = 720, e_vert = 33, p_top_requested = 5000, num_metgrid_levels = 27, num_metgrid_soil_levels = 4, dx = 0.25, dy = 0.25, grid_id = 1, parent_id = 0, i_parent_start = 1, j_parent_start = 1, parent_grid_ratio = 1, parent_time_step_ratio = 1, feedback = 1, smooth_option = 0, / &physics mp_physics = 8, ra_lw_physics = 1, ra_sw_physics = 1, radt = 30, sf_sfclay_physics = 1, sf_surface_physics = 2, bl_pbl_physics = 1, bldt = 0, cu_physics = 0, cudt = 5, isfflx = 1, ifsnow = 0, icloud = 1, surface_input_source = 1, num_soil_layers = 4, / &fdda / &dynamics w_damping = 0, diff_opt = 1, km_opt = 4, diff_6th_opt = 0, diff_6th_factor = 0.12, base_temp = 290., damp_opt = 0, zdamp = 5000., dampcoef = 0.2, khdif = 0, kvdif = 0, non_hydrostatic = .true., moist_adv_opt = 1, scalar_adv_opt = 1, / &bdy_control spec_bdy_width = 5, spec_zone = 1, relax_zone = 4, specified = .true., .false.,.false., nested = .false., .true., .true., / &namelist_quilt nio_tasks_per_group = 0, nio_groups = 1, / ``` 请将以上配置文件中的路径替换为你本地的路径,并根据需要进行其他修改。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值