├── other.md ├── flexpart.md └── README.md /other.md: -------------------------------------------------------------------------------- 1 | ## grib_api 2 | 3 | mkdir build; cd build 4 | cmake ../ -DCMAKE_INSTALL_PREFIX=/disk2/xiaolh/software/grib_api 5 | make install 6 | 7 | ## LINPNG 1.6.29 8 | CPPFLAGS="-I/disk2/xiaolh/software/zlib/include" \ 9 | ./configure with_zlib_prefix=/disk2/xiaolh/software/zlib --prefix=/disk2/xiaolh/software/libpng 10 | make install 11 | 12 | ## expat 2.2.3 13 | 14 | ./configure --prefix=/disk2/xiaolh/software/expat 15 | make install 16 | 17 | ## ncview v2.1.7 # X11 18 | ./configure --with-nc-config=/disk2/xiaolh/software/netcdf/netcdf/bin/nc-config \ 19 | --with-png_incdir=/disk2/xiaolh/software/libpng/include --with-png_libdir=/disk2/xiaolh/software/libpng/lib \ 20 | --with-udunits2_incdir=/disk2/xiaolh/software/udunits/include --with-udunits2_libdir=/disk2/xiaolh/software/udunits/lib \ 21 | --prefix=/disk2/xiaolh/software/ncview 22 | make install 23 | -------------------------------------------------------------------------------- /flexpart.md: -------------------------------------------------------------------------------- 1 | ## FLEXPART 2 | 3 | ### 下载 4 | ``` bash 5 | https://www.flexpart.eu/ 6 | wget https://www.flexpart.eu/downloads/58 -O flexpart_wrf_3.3.2.tar.gz 7 | https://git.nilu.no/flexpart/flexpart/commits/dev 8 | ``` 9 | ### 解压 10 | tar -zxvf flexpart_v10.3beta.tar.g 11 | cd flexpart_v10.3beta5_348abf6/src 12 | 13 | ### 修改makefile 14 | 修改库的路径 15 | 16 | ``` bash 17 | xiaolh@Lnode5:~/software/usr$ pwd 18 | /disk2/xiaolh/software/usr 19 | xiaolh@Lnode5:~/software/usr$ tree 20 | . 21 | ├── include 22 | │?? ├── eccodes_config.h -> ../../eccodes/include/eccodes_config.h 23 | │?? ├── eccodes_ecbuild_config.h -> ../../eccodes/include/eccodes_ecbuild_config.h 24 | │?? ├── eccodes.h -> ../../eccodes/include/eccodes.h 25 | │?? ├── eccodes.mod -> ../../eccodes/include/eccodes.mod 26 | │?? ├── eccodes_version.h -> ../../eccodes/include/eccodes_version.h 27 | │?? ├── eccodes_windef.h -> ../../eccodes/include/eccodes_windef.h 28 | │?? ├── grib_api.h -> ../../eccodes/include/grib_api.h 29 | │?? ├── grib_api.mod -> ../../eccodes/include/grib_api.mod 30 | │?? ├── jasper -> ../../jasper/include/jasper 31 | │?? ├── netcdf4_f03.mod -> ../../netcdf/netcdff/include/netcdf4_f03.mod 32 | │?? ├── netcdf4_nc_interfaces.mod -> ../../netcdf/netcdff/include/netcdf4_nc_interfaces.mod 33 | │?? ├── netcdf4_nf_interfaces.mod -> ../../netcdf/netcdff/include/netcdf4_nf_interfaces.mod 34 | │?? ├── netcdf_f03.mod -> ../../netcdf/netcdff/include/netcdf_f03.mod 35 | │?? ├── netcdf_fortv2_c_interfaces.mod -> ../../netcdf/netcdff/include/netcdf_fortv2_c_interfaces.mod 36 | │?? ├── netcdf.inc -> ../../netcdf/netcdff/include/netcdf.inc 37 | │?? ├── netcdf.mod -> ../../netcdf/netcdff/include/netcdf.mod 38 | │?? ├── netcdf_nc_data.mod -> ../../netcdf/netcdff/include/netcdf_nc_data.mod 39 | │?? ├── netcdf_nc_interfaces.mod -> ../../netcdf/netcdff/include/netcdf_nc_interfaces.mod 40 | │?? ├── netcdf_nf_data.mod -> ../../netcdf/netcdff/include/netcdf_nf_data.mod 41 | │?? ├── netcdf_nf_interfaces.mod -> ../../netcdf/netcdff/include/netcdf_nf_interfaces.mod 42 | │?? └── typesizes.mod -> ../../netcdf/netcdff/include/typesizes.mod 43 | └── lib 44 | ├── libeccodes_f90.so -> ../../eccodes/lib/libeccodes_f90.so 45 | ├── libeccodes.so -> ../../eccodes/lib/libeccodes.so 46 | ├── libjasper.so -> ../../jasper/lib/libjasper.so 47 | ├── libjasper.so.4 -> ../../jasper/lib/libjasper.so.4 48 | ├── libjasper.so.4.0.0 -> ../../jasper/lib/libjasper.so.4.0.0 49 | ├── libnetcdff.a -> ../../netcdf/netcdff/lib/libnetcdff.a 50 | ├── libnetcdff.la -> ../../netcdf/netcdff/lib/libnetcdff.la 51 | ├── libnetcdff.so -> ../../netcdf/netcdff/lib/libnetcdff.so 52 | ├── libnetcdff.so.6 -> ../../netcdf/netcdff/lib/libnetcdff.so.6 53 | └── libnetcdff.so.6.2.1 -> ../../netcdf/netcdff/lib/libnetcdff.so.6.2.1 54 | 55 | ``` 56 | 57 | ## flexpart 58 | make -j serial ncf=yes 59 | 60 | ## flexpart-wrf 61 | make -f makefile.com serial 62 | 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flexpart安装教程 2 | 3 | > 记住你是在编译软件! 4 | 5 | ## ZLIB v1.2.11 6 | 7 | ### 下载 8 | ``` bash 9 | http://www.zlib.net/ 10 | wget http://www.zlib.net/zlib-1.2.11.tar.gz 11 | ``` 12 | 13 | ### 安装 14 | ``` bash 15 | mkdir -p /disk2/xiaolh/software/zlib 16 | tar -zxvf zlib-1.2.11.tar.gz 17 | cd zlib-1.2.11 18 | ./configure --prefix=/disk2/xiaolh/software/zlib 19 | make install 20 | ``` 21 | ### 检查 22 | 23 | ``` bash 24 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/zlib 25 | /disk2/xiaolh/software/zlib 26 | ├── include 27 | │   ├── zconf.h 28 | │   └── zlib.h 29 | ├── lib 30 | │   ├── libz.a 31 | │   ├── libz.so -> libz.so.1.2.11 32 | │   ├── libz.so.1 -> libz.so.1.2.11 33 | │   ├── libz.so.1.2.11 34 | │   └── pkgconfig 35 | │   └── zlib.pc 36 | └── share 37 | └── man 38 | └── man3 39 | └── zlib.3 40 | ``` 41 | ### 配置环境变量 42 | ``` bash 43 | vim ~/.bashrc 44 | #ZLIB 45 | export ZLIB=/disk2/xiaolh/software/zlib 46 | export LD_LIBRARY_PATH=$ZLIB/lib:$LD_LIBRARY_PATH 47 | ``` 48 | 49 | ## SZIP v2.1.1 50 | 51 | ### 下载 52 | 53 | ``` bash 54 | https://support.hdfgroup.org/doc_resource/SZIP/ 55 | wget https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz 56 | ``` 57 | ### 安装 58 | ``` bash 59 | mkdir -p /disk2/xiaolh/software/szip 60 | tar -zxvf szip-2.1.1.tar.gz 61 | cd szip-2.1.1 62 | ./configure --prefix=/disk2/xiaolh/software/szip 63 | make install 64 | ``` 65 | ### 检查 66 | 67 | ``` bash 68 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/szip 69 | /disk2/xiaolh/software/szip 70 | ├── include 71 | │   ├── ricehdf.h 72 | │   ├── szip_adpt.h 73 | │   └── szlib.h 74 | └── lib 75 | ├── libsz.a 76 | ├── libsz.la 77 | ├── libsz.so -> libsz.so.2.0.0 78 | ├── libsz.so.2 -> libsz.so.2.0.0 79 | └── libsz.so.2.0.0 80 | ``` 81 | 82 | ### 配置环境变量 83 | ``` bash 84 | vim ~/.bashrc 85 | 86 | # SZIP 87 | export SZIP=/disk2/xiaolh/software/szip 88 | export LD_LIBRARY_PATH=$SZIP/lib:$LD_LIBRARY_PATH 89 | ``` 90 | 91 | ## HDF5 v1.10.5 92 | 依赖C++编译器 93 | 94 | ### 下载 95 | ``` bash 96 | https://www.hdfgroup.org/downloads/hdf5/ 97 | wget https://s3.amazonaws.com/hdf-wordpress-1/wp-content/uploads/manual/HDF5/HDF5_1_10_5/source/hdf5-1.10.5.tar.gz 98 | ``` 99 | ### 安装 100 | ``` bash 101 | mkdir -p /disk2/xiaolh/software/hdf5 102 | tar -zxvf hdf5-1.10.5.tar.gz 103 | cd hdf5-1.10.5 104 | ./configure --with-zlib=/disk2/xiaolh/software/zlib -with-szlib=/disk2/xiaolh/software/szip --prefix=/disk2/xiaolh/software/hdf5 105 | make install 106 | ``` 107 | ### 检查 108 | 109 | ``` bash 110 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/hdf5 111 | /disk2/xiaolh/software/hdf5 112 | ├── bin 113 | │   ├── gif2h5 114 | │   ├── h52gif 115 | ├── include 116 | │   ├── H5ACpublic.h 117 | │   ├── H5api_adpt.h 118 | 119 | ├── lib 120 | │   ├── libhdf5.a 121 | │   ├── libhdf5_hl.a 122 | │   ├── libhdf5_hl.la 123 | │   ├── libhdf5_hl.so -> libhdf5_hl.so.100.1.2 124 | │   ├── libhdf5_hl.so.100 -> libhdf5_hl.so.100.1.2 125 | │   ├── libhdf5_hl.so.100.1.2 126 | │   ├── libhdf5.la 127 | │   ├── libhdf5.settings 128 | │   ├── libhdf5.so -> libhdf5.so.103.1.0 129 | │   ├── libhdf5.so.103 -> libhdf5.so.103.1.0 130 | │   └── libhdf5.so.103.1.0 131 | └── share 132 | └── hdf5_examples 133 | ├── c 134 | │   ├── h5_attribute.c 135 | ``` 136 | 137 | ### 配置环境变量 138 | ``` bash 139 | vim ~/.bashrc 140 | 141 | # HDF5 142 | export HDF5=/disk2/xiaolh/software/hdf5 143 | export PATH=$HDF5/bin:$PATH 144 | export LD_LIBRARY_PATH=$HDF5/lib:$LD_LIBRARY_PATH 145 | ``` 146 | 147 | ## netcdf-c v4.7.0 148 | ### 下载 149 | ``` bash 150 | https://www.unidata.ucar.edu/downloads/netcdf/index.jsp 151 | wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.0.tar.gz 152 | ``` 153 | ### 安装 154 | ``` bash 155 | mkdir -p /disk2/xiaolh/software/netcdf/netcdfc 156 | tar -zxvf netcdf-c-4.7.0.tar.gz 157 | cd netcdf-c-4.7.0 158 | CPPFLAGS="-I/disk2/xiaolh/software/hdf5/include -I/disk2/xiaolh/software/zlib/include"\ 159 | LDFLAGS="-L/disk2/xiaolh/software/hdf5/lib -L/disk2/xiaolh/software/zlib/lib -L/disk2/xiaolh/software/szip/lib" \ 160 | ./configure --prefix=/disk2/xiaolh/software/netcdf/netcdfc --disable-dap 161 | 162 | make install 163 | ``` 164 | ### 检查 165 | 166 | ``` bash 167 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/netcdf/netcdfc 168 | /disk2/xiaolh/software/netcdf/netcdfc 169 | ├── bin 170 | │   ├── nc-config 171 | │   ├── nccopy 172 | │   ├── ncdump 173 | │   ├── ncgen 174 | │   └── ncgen3 175 | ├── include 176 | │   ├── netcdf_aux.h 177 | │   ├── netcdf_filter.h 178 | │   ├── netcdf.h 179 | │   ├── netcdf_mem.h 180 | │   └── netcdf_meta.h 181 | ├── lib 182 | │   ├── libh5bzip2.la 183 | │   ├── libh5bzip2.so 184 | │   ├── libnetcdf.a 185 | │   ├── libnetcdf.la 186 | │   ├── libnetcdf.settings 187 | │   ├── libnetcdf.so -> libnetcdf.so.15.0.1 188 | │   ├── libnetcdf.so.15 -> libnetcdf.so.15.0.1 189 | │   ├── libnetcdf.so.15.0.1 190 | │   └── pkgconfig 191 | │   └── netcdf.pc 192 | └── share 193 | └── man 194 | ``` 195 | 196 | ### 配置环境变量 197 | ``` bash 198 | vim ~/.bashrc 199 | 200 | # NETCDF 201 | export NETCDF=/disk2/xiaolh/software/netcdf/netcdfc 202 | export PATH=$NETCDF/bin:$PATH 203 | export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH 204 | ``` 205 | 206 | ## netcdf-fortran v4.4.5 207 | ### 下载 208 | ``` bash 209 | https://www.unidata.ucar.edu/downloads/netcdf/index.jsp 210 | wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.4.5.tar.gz 211 | ``` 212 | ### 安装 213 | ``` bash 214 | mkdir -p /disk2/xiaolh/software/netcdf/netcdff 215 | tar -zxvf netcdf-fortran-4.4.5.tar.gz 216 | cd netcdf-fortran-4.4.5 217 | CPPFLAGS=-I/disk2/xiaolh/software/netcdf/netcdfc/include \ 218 | LDFLAGS=-L/disk2/xiaolh/software/netcdf/netcdfc/lib \ 219 | ./configure --prefix=/disk2/xiaolh/software/netcdf/netcdff 220 | 221 | make install 222 | ``` 223 | ### 检查 224 | 225 | ``` bash 226 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/netcdf/netcdff 227 | /disk2/xiaolh/software/netcdf/netcdff 228 | ├── bin 229 | │   └── nf-config 230 | ├── include 231 | │   ├── netcdf4_f03.mod 232 | │   ├── netcdf4_nc_interfaces.mod 233 | │   ├── netcdf4_nf_interfaces.mod 234 | │   ├── netcdf_f03.mod 235 | │   ├── netcdf_fortv2_c_interfaces.mod 236 | │   ├── netcdf.inc 237 | │   ├── netcdf.mod 238 | │   ├── netcdf_nc_data.mod 239 | │   ├── netcdf_nc_interfaces.mod 240 | │   ├── netcdf_nf_data.mod 241 | │   ├── netcdf_nf_interfaces.mod 242 | │   └── typesizes.mod 243 | ├── lib 244 | │   ├── libnetcdff.a 245 | │   ├── libnetcdff.la 246 | │   ├── libnetcdff.so -> libnetcdff.so.6.2.1 247 | │   ├── libnetcdff.so.6 -> libnetcdff.so.6.2.1 248 | │   ├── libnetcdff.so.6.2.1 249 | │   └── pkgconfig 250 | │   └── netcdf-fortran.pc 251 | └── share 252 | └── man 253 | └── man3 254 | └── netcdf_fortran.3 255 | ``` 256 | 257 | ### 配置环境变量 258 | ``` bash 259 | vim ~/.bashrc 260 | 261 | # NETCDFF 262 | export NETCDFF=/disk2/xiaolh/software/netcdff 263 | export LD_LIBRARY_PATH=$NETCDFF/lib:$LD_LIBRARY_PATH 264 | ``` 265 | 266 | ## cmake 267 | 268 | ### 下载 269 | ``` bash 270 | https://cmake.org/download/ 271 | wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1.tar.gz 272 | ``` 273 | ### 安装 274 | ``` bash 275 | mkdir -p /disk2/xiaolh/software/cmake 276 | tar -zxvf cmake-3.15.1.tar.gz 277 | cd cmake-3.15.1 278 | ./configure --prefix=/disk2/xiaolh/software/cmake 279 | make install 280 | ``` 281 | ### 检查 282 | 283 | ``` bash 284 | xiaolh@Lnode5:~/software/cmake$ tree /disk2/xiaolh/software/cmake/bin/ 285 | /disk2/xiaolh/software/cmake/bin/ 286 | ├── ccmake 287 | ├── cmake 288 | ├── cpack 289 | └── ctest 290 | ``` 291 | 292 | ### 配置环境变量 293 | ``` bash 294 | vim ~/.bashrc 295 | 296 | # CMAKE 297 | export CMAKE=/disk2/xiaolh/software/cmake 298 | export PATH=$CMAKE/bin:$PATH 299 | export LD_LIBRARY_PATH=$CMAKE/lib:$LD_LIBRARY_PATH 300 | ``` 301 | 302 | ## jasper 303 | 304 | ### 下载 305 | ``` bash 306 | https://www.ece.uvic.ca/~frodo/jasper/ 307 | wget https://www.ece.uvic.ca/~frodo/jasper/software/jasper-2.0.14.tar.gz 308 | ``` 309 | ### 安装 310 | ``` bash 311 | mkdir -p /disk2/xiaolh/software/jasper 312 | tar -zxvf jasper-2.0.14.tar.gz 313 | cd jasper-2.0.14 314 | mkdir tmp ; cd tmp 315 | cmake -G "Unix Makefiles" -H/disk2/xiaolh/software/Packages/jasper-2.0.14 \ 316 | -B/disk2/xiaolh/software/Packages/jasper-2.0.14/tmp -DCMAKE_INSTALL_PREFIX=/disk2/xiaolh/software/jasper 317 | make install 318 | ``` 319 | 320 | ### 检查 321 | 322 | ``` bash 323 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/jasper/lib 324 | /disk2/xiaolh/software/jasper/lib 325 | ├── libjasper.so -> libjasper.so.4 326 | ├── libjasper.so.4 -> libjasper.so.4.0.0 327 | ├── libjasper.so.4.0.0 328 | └── pkgconfig 329 | └── jasper.pc 330 | ``` 331 | 332 | ### 配置环境变量 333 | ``` bash 334 | vim ~/.bashrc 335 | 336 | # jasper 337 | export JASPER=/disk2/xiaolh/software/jasper 338 | export LD_LIBRARY_PATH=$JASPER/lib:$LD_LIBRARY_PATH 339 | ``` 340 | 341 | ## eccodes 342 | 343 | ### 下载 344 | ``` bash 345 | https://confluence.ecmwf.int/display/ECC/Releases 346 | wget https://confluence.ecmwf.int/download/attachments/45757961/eccodes-2.13.0-Source.tar.gz?api=v2 -O eccodes-2.13.0-Source.tar.gz 347 | ``` 348 | 349 | ### 安装 350 | ``` bash 351 | mkdir -p /disk2/xiaolh/software/eccodes 352 | tar -zxvf eccodes-2.13.0-Source.tar.gz 353 | cd eccodes-2.13.0-Source 354 | mkdir build ; cd build 355 | cmake -DCMAKE_INSTALL_PREFIX=/disk2/xiaolh/software/eccodes ../ 356 | 357 | make install 358 | ``` 359 | 360 | ### 检查 361 | 362 | ``` bash 363 | xiaolh@Lnode5:~/software/Packages$ tree /disk2/xiaolh/software/eccodes/lib/ -L 1 364 | /disk2/xiaolh/software/eccodes/lib/ 365 | ├── cmake 366 | ├── libeccodes_f90.so 367 | ├── libeccodes.so 368 | ├── pkgconfig 369 | └── python2.7 370 | ``` 371 | 372 | ## ncl 373 | ### 下载 374 | ``` bash 375 | https://www.earthsystemgrid.org/dataset/ncl.650.html 376 | wget https://www.earthsystemgrid.org/dataset/ncl.650.nodap/file/ncl_ncarg-6.5.0-Debian8.11_64bit_nodap_gnu492.tar.gz 377 | ``` 378 | 379 | ### 安装 380 | ``` bash 381 | mkdir -p /disk2/xiaolh/software/ncl 382 | mv ncl_ncarg-6.5.0-Debian8.11_64bit_nodap_gnu492.tar.gz /disk2/xiaolh/software/ncl 383 | tar -zxvf ncarg-6.5.0-Debian8.11_64bit_nodap_gnu492.tar.gz 384 | ``` 385 | 386 | ### 配置环境变量 387 | ``` bash 388 | vim ~/.bashrc 389 | 390 | #NCL 391 | export NCARG_ROOT=/disk2/xiaolh/software/ncl 392 | export PATH=$NCARG_ROOT/bin:$PATH 393 | export LD_LIBRARY_PATH=$NCARG_ROOT/lib:$LD_LIBRARY_PATH 394 | ``` 395 | 396 | 397 | 398 | 399 | 400 | --------------------------------------------------------------------------------