从10月20号换了一个新方向,但现在已经一个月了。这个月真是忙的可以,主要是压力真的很大。
在忙什么?项目,TOEFL,出国申请,还有感情。
项目进展得不是很快,前期还可以,后面就不给力了,到现在没弄清WRF的各个参数,虽然能跑这个模式了,但跑得糊里糊涂。照理应该系统地看一下说明文档,只是没有时间,等过了这段时间,一定把它啃下来。
TOEFL,一听这个我就头大,满肚子的不自信。不知为什么,一接触他我就感觉压力倍增,可能是以前的印象太坏,甚至都留下了阴影。到现在也没怎么开始准备,只稍微练了下口语,这次口语成绩非常重要。
出国申请可能是最费时间的了。这么多学校、这么多老师,我上哪找和我相近的老师?最后只找了3个老师。试试看吧。
11/17/2011
11/05/2011
WRF Introduction and Compilation
Recently (2011/10/20) I've started a new research project about air pollution simulation. In the research we are going to use atmospheric models as input and air pollutants dispersion models as the simulation tool. As a GISer, I have no idea about these models. So these three weeks is not a long time to get familiar with these concepts and configure and run the models.
WRF (Weather Research and Forecasting Model) is "mesoscale numerical weather prediction model designed to provide a common framework for both operational numerical weather prediction and atmospheric research". Although WRF is designed to solve mesoscale, or regional problems, it can also be used for smaller scales like local scales by means of nesting.
WRF consists of three components:
1. WRF itself
2. WPS, pre-processing system, to get in static data like terrain and gridded data
3. ARWPost, post-processing system, for data format transforming
This is the WRF system structure:
Compilation:
My environment: Ubuntu 11.10, 32bit
Fortran compiler: gFortran
To install WRF, you have to install NetCDF library first, which is a common shared library for scientific data access and sharing.
Note: NetCDF 3.6.3 is required (ARWPost does not agree with NetCDF 4)
1. Download and install NetCDF, set environment variable NETCDF
2. Download WRF, configure and compile, according to specific cases.
3. Download WPS, configure and compile
4. Download ARWPost. ARWPost is used to transform WRF output (wrfout_d*_*) to files (.dat and .tcl) that GrADS can read. And it has stopped to update, instead, NCL is used to directly read WRF output and visualize data, which is also more professional and accurate than GrADS. However, as more people nearby use GrADS, I choose it as well.
Everything is done.
Trouble shoot:
During the compilation, various errors and problems may rise up, mostly because of a lack of related libraries or environment variables. It is advised to redirect the compilation log to a log file:
./compile your_case >& compile.logThen search the log file for such key words as "error" "ignored" "no such file" "missing" "not found" "can't find", etc. You are not to complete the compilation until you can run wrf.exe and ideal.exe or real.exe in the run/ dir.
Below is some problems and solutions I came across when compiling:
1. Unknown command m4. Install m4: sudo apt-get install m4
2. Wrong with libcgool-ppl0. Install libcgool-ppl0: sudo apt-get install libcgool-ppl0
3. When compiling module_cu_g3.o, input seed invalid. Edit module_cu_g3.F90,revise dimension (8) to dimension (12). (It is strange, beyond my understanding)
2. Wrong with libcgool-ppl0. Install libcgool-ppl0: sudo apt-get install libcgool-ppl0
3. When compiling module_cu_g3.o, input seed invalid. Edit module_cu_g3.F90,revise dimension (8) to dimension (12). (It is strange, beyond my understanding)
Subscribe to:
Posts (Atom)