爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 任性小王子

学习WRFDA安装测试官网观测数据(这里还没有加入辐射数据同化)

[复制链接]
 楼主| 发表于 2024-11-11 20:31:01 | 显示全部楼层
Samantha 发表于 2024-11-11 10:55
按照这个步骤安装的:
tar xzvf netcdf-c-4.7.2.tar.gz  
cd netcdf-c-4.7.2

这样安装肯定报错呀
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-11-11 20:34:16 | 显示全部楼层
Samantha 发表于 2024-11-11 10:55
按照这个步骤安装的:
tar xzvf netcdf-c-4.7.2.tar.gz  
cd netcdf-c-4.7.2

https://www2.mmm.ucar.edu/wrf/On ... _tutorial.php#STEP1
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-11-13 10:14:45 | 显示全部楼层
本帖最后由 任性小王子 于 2024-11-13 10:17 编辑
Samantha 发表于 2024-11-11 10:55
按照这个步骤安装的:
tar xzvf netcdf-c-4.7.2.tar.gz  
cd netcdf-c-4.7.2


1. 安装zlib
./configure --prefix=$DIR/grib2
make
make install

2. 安装jasper
./configure --prefix=$DIR/grib2
make
make install

3. 安装libpng
./configure --prefix=$DIR/grib2
make
make install
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export JASPERINC=$DIR/grib2/include
export JASPERLIB=$DIR/grib2/lib

4. 安装hdf5
./configure --prefix=$DIR/hdf5 --enable-fortran --with-zlib=$DIR/grib2
make
make install

5. 安装netcdf-c
CPPFLAGS="-I$DIR/hdf5/include" LDFLAGS="-L$DIR/hdf5/lib" ./configure --prefix=$DIR/netcdf --disable-dap
make
make install

6. 安装netcdf-fortran
./configure --prefix=$DIR/netcdf CPPFLAGS="-I$DIR/netcdf/include" LDFLAGS="-L$DIR/netcdf/lib"
make
make install
四、配置bashrc
# for all software
export DIR=/home/changmh/apps

# for hdf5
export LD_LIBRARY_PATH=$DIR/hdf5/lib:$LD_LIBRARY_PATH

# for netcdf
export NETCDF=$DIR/netcdf
export PATH=$NETCDF/bin:$PATH
export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH

# for openmpi(这个库直接用安装好的,搜一下which mpirun/mpich)
export PATH=$DIR/mpich/bin:$PATH

# for grib2

export JASPERINC=$DIR/grib2/include
export JASPERLIB=$DIR/grib2/lib


希望对你有帮助



密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2025-2-19 08:51:12 | 显示全部楼层
任性小王子 发表于 2024-11-13 10:14
1. 安装zlib
./configure --prefix=$DIR/grib2
make

感谢楼主!抱歉这么晚才回复,之前我试过了是我们服务器问题无法安装,只能生成四个exe文件。最近我们新增加了超算账号,试着按照楼主方法又安装了一遍,出来了十几个exe,估计还是并行带不起来的原因吧
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-2-19 11:22:45 | 显示全部楼层
Samantha 发表于 2025-2-19 08:51
感谢楼主!抱歉这么晚才回复,之前我试过了是我们服务器问题无法安装,只能生成四个exe文件。最近我们新 ...

可以把你的编译文件,搜索一下第一error发个截图看一看
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2025-2-19 12:17:47 | 显示全部楼层
任性小王子 发表于 2025-2-19 11:22
可以把你的编译文件,搜索一下第一error发个截图看一看

da_wrf_interfaces.f(157): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DA_MODULE_DOMAIN]
        use da_module_domain, only : domain
------------^
da_wrf_interfaces.f(158): error #6406: Conflicting attributes or multiple declaration of name.   [DOMAIN]
        type(domain), pointer :: grid
-------------^
da_wrf_interfaces.f(157): error #6580: Name in only-list does not exist or is not accessible.   [DOMAIN]
        use da_module_domain, only : domain
-------------------------------------^
da_wrf_interfaces.f(204): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DA_MODULE_DOMAIN]
         use da_module_domain, only : domain
-------------^
da_wrf_interfaces.f(205): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DA_MODULE_CONFIGURE]
         use da_module_configure, only : grid_config_rec_type
-------------^
da_wrf_interfaces.f(206): error #6457: This derived type name has not been declared.   [DOMAIN]
         type (domain),               intent(in) :: grid
---------------^
da_wrf_interfaces.f(207): error #6406: Conflicting attributes or multiple declaration of name.   [GRID_CONFIG_REC_TYPE]
         type (grid_config_rec_type), intent(in) :: config_flags
---------------^
da_wrf_interfaces.f(204): error #6580: Name in only-list does not exist or is not accessible.   [DOMAIN]
         use da_module_domain, only : domain
--------------------------------------^
da_wrf_interfaces.f(205): error #6580: Name in only-list does not exist or is not accessible.   [GRID_CONFIG_REC_TYPE]
         use da_module_configure, only : grid_config_rec_type
-----------------------------------------^
compilation aborted for da_wrf_interfaces.f (code 1)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-2-19 15:40:35 | 显示全部楼层
本帖最后由 任性小王子 于 2025-2-19 15:41 编辑
Samantha 发表于 2025-2-19 12:17
da_wrf_interfaces.f(157): error #7002: Error in opening the compiled module file.  Check INCLUDE p ...

库的头文件的问题呐,可以把编译的文件第一个error的内容往前取一下,我看看
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2025-2-19 17:05:31 | 显示全部楼层
任性小王子 发表于 2025-2-19 15:40
库的头文件的问题呐,可以把编译的文件第一个error的内容往前取一下,我看看

make[1]: 进入目录“/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/var/build”
da.make:316: warning: overriding recipe for target `da_update_bc.o'
da.make:309: warning: ignoring old recipe for target `da_update_bc.o'
makefile:58: warning: overriding recipe for target `.f90.o'
../../configure.wrf:412: warning: ignoring old recipe for target `.f90.o'
make[1]: “depend”是最新的。
make[1]: 离开目录“/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/var/build”
make[1]: 进入目录“/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/var/build”
da.make:316: warning: overriding recipe for target `da_update_bc.o'
da.make:309: warning: ignoring old recipe for target `da_update_bc.o'
makefile:58: warning: overriding recipe for target `.f90.o'
../../configure.wrf:412: warning: ignoring old recipe for target `.f90.o'
rm -f da_control.o
/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/tools/standard.exe da_control.f90 > da_control.b
rm -f da_wrf_interfaces.o
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_FUNC  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DCRTM -DHDF5 -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT   -I/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/inc da_control.b  > da_control.f
/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/tools/standard.exe da_wrf_interfaces.f90 > da_wrf_interfaces.b
/lib/cpp -P -nostdinc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=1 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=8 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_FUNC  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -DBUFR   -DFFTPACK -DNORESHAPE -DDM_PARALLEL -DNETCDF -DCRTM -DHDF5 -DVAR4D -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=0 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT   -I/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/inc da_wrf_interfaces.b  > da_wrf_interfaces.f
rm -f da_control.b
rm -f da_wrf_interfaces.b
COMPILING da_control.f90 for 4DVAR
COMPILING da_wrf_interfaces.f90 for 4DVAR
if fgrep -iq '!$OMP' da_wrf_interfaces.f ; then \
          if [ -n "" ] ; then echo COMPILING da_wrf_interfaces.f90 WITH OMP ; fi ; \
  time mpif90 -f90=ifort -o da_wrf_interfaces.o -c -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian    -r8        -real-size `expr 8 \* 8` -i4 da_wrf_interfaces.f ; \
        else \
          if [ -n "" ] ; then echo COMPILING da_wrf_interfaces.f90 WITHOUT OMP ; fi ; \
  time mpif90 -f90=ifort -o da_wrf_interfaces.o -c -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian   -r8        -real-size `expr 8 \* 8` -i4 da_wrf_interfaces.f ; \
        fi
da_wrf_interfaces.f(157): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DA_MODULE_DOMAIN]
        use da_module_domain, only : domain
------------^
da_wrf_interfaces.f(158): error #6406: Conflicting attributes or multiple declaration of name.   [DOMAIN]
        type(domain), pointer :: grid
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2025-2-20 09:01:43 | 显示全部楼层
任性小王子 发表于 2025-2-19 15:40
库的头文件的问题呐,可以把编译的文件第一个error的内容往前取一下,我看看

还有想请教楼主一个WRFDA的问题。就是我在做地面观测数据前处理的时候,下载了区域范围内的数据处理成littleR格式的,执行./obsproc.exe后显示所有数据在区域外,但是数据显示都读入进去了,检查了namelist.obsproc和namelist.wps的区域设置是相同的,想问下楼主可能是哪里出问题了呢?
namelist.wps如下:
&share
wrf_core             = 'ARW'
max_dom              = 2
start_date           = '2023-07-09_00:00:00','2023-07-09_00:00:00'
end_date             = '2023-07-19_00:00:00','2023-07-19_00:00:00'
interval_seconds     = 21600
io_form_geogrid      = 2
debug_level          = 0
/

&geogrid
parent_id            = 1, 1
parent_grid_ratio    = 1, 3
i_parent_start       = 1, 160
j_parent_start       = 1, 130
e_we                 = 304, 304
e_sn                 = 304, 304
geog_data_res        = 'default','default'
dx                   = 9000
dy                   = 9000
map_proj             = 'lambert'
ref_lat              = 38
ref_lon              = 89
truelat1             = 39
truelat2             = 41
stand_lon            = 89
geog_data_path       = '/lza/g1/xbrcnwp/MODEL/WPS_GEOG'
/

&ungrib
out_format           = 'WPS'
prefix               = 'FILE'
/

&metgrid
fg_name              = 'FILE','GFSFILE'
io_form_metgrid      = 2
/





namelist.obsproc如下:
&record1
obs_gts_filename = 'fort.2023070906',
obs_err_filename = 'obserr.txt',
FG_FORMAT = 'LITTLE_R',
gts_from_mmm_archive = .false.,
/

&record2
time_window_min  = '2023-07-09_05:45:00',
time_analysis    = '2023-07-09_06:00:00',
time_window_max  = '2023-07-09_06:15:00',
/

&record3
max_number_of_obs        = 400000,
fatal_if_exceed_max_obs  = .TRUE.,
/

&record4
qc_test_vert_consistency = .TRUE.,
qc_test_convective_adj   = .TRUE.,
qc_test_above_lid        = .TRUE.,
remove_above_lid         = .false.,
domain_check_h           = .true.,
Thining_SATOB            = .false.,
Thining_SSMI             = .false.,
Thining_QSCAT            = .false.,
calc_psfc_from_qnh       = .true.,
/

&record5
print_gts_read           = .TRUE.,
print_gpspw_read         = .TRUE.,
print_recoverp           = .TRUE.,
print_duplicate_loc      = .TRUE.,
print_duplicate_time     = .TRUE.,
print_recoverh           = .TRUE.,
print_qc_vert            = .TRUE.,
print_qc_conv            = .TRUE.,
print_qc_lid             = .TRUE.,
print_uncomplete         = .TRUE.,
/

&record6
ptop =  5000.0,
base_pres       = 100000.0,
base_temp       = 290.0,
base_lapse      = 50.0,
base_strat_temp = 215.0,
base_tropo_pres = 20000.0
/

&record7
IPROJ = 1,
PHIC  = 38,
XLONC = 89,
TRUELAT1= 39,
TRUELAT2= 41,
MOAD_CEN_LAT = 38,
STANDARD_LON = 89,
/

&record8
IDD    =   1,
MAXNES =   1,
NESTIX =  304,
NESTJX =  304,
DIS    =  9,
NUMC   =    1,
NESTI  =    1,
NESTJ  =    1,
/

&record9
PREPBUFR_OUTPUT_FILENAME = 'prepbufr_output_filename',
PREPBUFR_TABLE_FILENAME = 'prepbufr_table_filename',
OUTPUT_OB_FORMAT = 2
use_for          = '3DVAR',
num_slots_past   = 3,
num_slots_ahead  = 3,
write_synop = .true.,
write_ship  = .true.,
write_metar = .true.,
write_buoy  = .true.,
write_pilot = .true.,
write_sound = .true.,
write_amdar = .true.,
write_satem = .true.,
write_satob = .true.,
write_airep = .true.,
write_gpspw = .true.,
write_gpsztd= .true.,
write_gpsref= .true.,
write_gpseph= .true.,
write_ssmt1 = .true.,
write_ssmt2 = .true.,
write_ssmi  = .true.,
write_tovs  = .true.,
write_qscat = .true.,
write_profl = .true.,
write_bogus = .true.,
write_airs  = .true.,
/
&RECORD10
WIND_SD = T,
WIND_SD_SYNOP   = T,
WIND_SD_SHIPS   = F,
WIND_SD_METAR   = F,
WIND_SD_BUOY    = F,
WIND_SD_SOUND   = F,
WIND_SD_QSCAT   = F,
WIND_SD_PILOT   = F,
WIND_SD_AIREP   = F,
WIND_SD_GEOAMV  = F,
WIND_SD_TAMDAR  = F,
WIND_SD_PROFILER        = F
/

密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-2-20 16:45:00 | 显示全部楼层
Samantha 发表于 2025-2-19 17:05
make[1]: 进入目录“/public/home/gscma_test/NewEnergy/WRF/model/yanwj/WRFPLUS/var/build”
da.make: ...

抱歉这么晚回复,export WRFPLUS_DIR=${your_source_code_dir}/WRFPLUS,这个执行了吗?再试一下编译,如果还有问题,把你的compile.out文件再给我发一下,我看一看。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表