------2022/04/06 ---------------------- LK41WN2wwGD5h4o1 --------------GRADS on Cactus----------------------- (1) grads module on Cactus module use /apps/test/lmodules/core module load core/GrADS/2.2.1 which grads ----- not working-------- which: no grads in (/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/bin: /opt/cray/pe/mpich/8.1.7/ofi/intel/19.0/bin:/opt/cray/pe/craype/2.7.8/bin: /pe/intel/compilers_and_libraries_2020.4.304/linux/bin/intel64: /pe/intel/compilers_and_libraries_2020.4.304/linux/bin: /pe/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/bin:/pe/intel/debugger_2020/gdb/intel64/bin: /opt/cray/libfabric/1.11.0.0./bin:/opt/clmgr/sbin:/opt/clmgr/bin:/opt/sgi/sbin:/opt/sgi/bin:/usr/local/bin: /usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/pbs/bin:/sbin:.:/u/Jiayi.Peng/bin:/opt/cray/pe/bin) module show core/GrADS/2.2.1 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /apps/test/lmodules/core/GrADS/2.2.1: ---- the module has problems-------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- whatis("The Grid Analysis and Display System (GrADS) is an interactive desktop tool that is used for easy access, manipulation, and visualization of earth science data. GrADS has two data models for handling gridded and station data. GrADS supports many data file formats, including binary (stream or sequential), GRIB (version 1 and 2), NetCDF, HDF (version 4 and 5), and BUFR (for station data). ") prepend_path("PATH","/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/bin") prepend_path("LIBRARY_PATH","/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/lib") prepend_path("LD_LIBRARY_PATH","/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/lib") prepend_path("CMAKE_PREFIX_PATH","/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/") prepend_path("XLOCALEDIR","/apps/spack/libx11/1.6.7/gcc/10.2.0/lajmv2hfzw2tnrlasemp4flma7yxwfyf/share/X11/locale") setenv("GADDIR","/apps/spack/grads/2.2.1/gcc/10.2.0/3adazff5qbcttsqgf5wmtbiintbun3ry/data") help([[The Grid Analysis and Display System (GrADS) is an interactive desktop tool that is used for easy access, manipulation, and visualization of earth science data. GrADS has two data models for handling gridded and station data. GrADS supports many data file formats, including binary (stream or sequential), GRIB (version 1 and 2), NetCDF, HDF (version 4 and 5), and BUFR (for station data). ]]) (2) Define the env by myself /lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/test_4_GRADS/testgrads.sh ------- #!/bin/bash export GADDIR=/apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd/data #setenv GASHP $HOME/grads/shapefiles #setenv GASCRP "$HOME/grads/scripts /opt/local/share/grads/library" #export GAUDPT=/apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd/data/udpt export GAUDPT=/lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/test_4_GRADS/udpt /apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd/bin/grads ------ (3) working on GRADS display *.png/*.gif ----- not working ------------- To see the plots: scp track.gif jpeng@emcrzdm.ncep.noaa.gov:/home/people/emc/ftp/gc_wmb/jpeng/cactus https://ftp.emc.ncep.noaa.gov/gc_wmb/jpeng/cactus cd /lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/grads_gfsV ./plot_ccpp_AL062018.sh ---- updated ---- export GADDIR=/apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd/data export GAUDPT=/lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/test_4_GRADS/udpt export GRADS='/apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd/bin/grads -d Cairo -h GD' export nhoursx=/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/ndate mgplot_AL062018ccpp.gs ---- updated ----- _rundir="/lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/grads_gfsV/ outdir='/lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/grads_gfsV/'_ymdh'/' '!/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/ndate 'fhr' 'ymdh' > 'hrfile /lfs/h2/emc/vpppg/noscrub/Jiayi.Peng/save/grads_test/test/read_track make -f makefile ---- re-compile -------- (4) submit real-time job: /lfs/h2/emc/vpppg/save/Jiayi.Peng/postN/gfs_00z.sh ---- GFS 00Z plotting ------- (5)module show prod_util/2.0.13 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /apps/ops/prod/nco/modulefiles/core/prod_util/2.0.13: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- whatis("This module loads and sets environment variables for the NCEP Central Operations production utilities. ") conflict("prod_util") setenv("UTILROOT","/apps/ops/prod/nco/core/prod_util.v2.0.13") setenv("MDATE","/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/mdate") setenv("NDATE","/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/ndate") setenv("NHOUR","/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/nhour") setenv("FSYNC","/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/fsync_file") setenv("COMDATEROOT","/lfs/h1/ops/prod/com") setenv("COMLISTROOT","/lfs/h1/ops/prod/config") setenv("COMLOGSROOT","/lfs/h1/ops/prod/com") prepend_path("PATH","/apps/ops/prod/nco/core/prod_util.v2.0.13/ush") prepend_path("PYTHONPATH","/apps/ops/prod/nco/core/prod_util.v2.0.13/ush") help([[Set environment variables for production utilities (99) the installed GRADS on Cactus: /apps/spack/grads/2.2.1/gcc/10.2.0/th6qy2zizkorat4m3qgewu5rkprs7wvd bin: total 3900 drwxr-sr-x 2 root root 2048 May 4 2021 . drwxr-sr-x 6 root root 2048 May 4 2021 .. -rwxr-xr-x 1 root root 107488 May 4 2021 bufrscan -rwxr-xr-x 1 root root 2613872 May 4 2021 grads -rwxr-xr-x 1 root root 235008 May 4 2021 grib2scan -rwxr-xr-x 1 root root 413496 May 4 2021 gribmap -rwxr-xr-x 1 root root 237864 May 4 2021 gribscan -rwxr-xr-x 1 root root 361904 May 4 2021 stnmap data: total 2020 drwxr-sr-x 3 root root 2048 May 4 2021 . drwxr-sr-x 6 root root 2048 May 4 2021 .. -rw-r--r-- 1 root root 2794 Jan 15 2003 font0.dat -rw-r--r-- 1 root root 5082 Jan 15 2003 font1.dat -rw-r--r-- 1 root root 5362 Jan 15 2003 font2.dat -rw-r--r-- 1 root root 5102 Jan 15 2003 font3.dat -rw-r--r-- 1 root root 8507 Jan 15 2003 font5.dat -rw-r--r-- 1 root root 1746985 Jan 15 2003 hires -rw-r--r-- 1 root root 51318 Jan 15 2003 lowres -rw-r--r-- 1 root root 179044 Jan 15 2003 mres drwxr-sr-x 2 root root 10240 May 4 2021 tables -rw-r--r-- 1 root root 218 May 4 2021 udpt -rw-r--r-- 1 root root 86 May 4 2021 udpt~ -rw-r--r-- 1 root root 15180 Jan 15 2003 udunits.dat lib: total 3084 drwxr-sr-x 2 root root 4096 May 4 2021 . drwxr-sr-x 6 root root 2048 May 4 2021 .. lrwxrwxrwx 1 root root 19 May 4 2021 libgradspy.so -> libgradspy.so.0.1.0 lrwxrwxrwx 1 root root 19 May 4 2021 libgradspy.so.0 -> libgradspy.so.0.1.0 -rwxr-xr-x 1 root root 2564560 May 4 2021 libgradspy.so.0.1.0 lrwxrwxrwx 1 root root 20 May 4 2021 libgxdCairo.so -> libgxdCairo.so.0.1.0 lrwxrwxrwx 1 root root 20 May 4 2021 libgxdCairo.so.0 -> libgxdCairo.so.0.1.0 -rwxr-xr-x 1 root root 125208 May 4 2021 libgxdCairo.so.0.1.0 lrwxrwxrwx 1 root root 19 May 4 2021 libgxdummy.so -> libgxdummy.so.0.0.0 lrwxrwxrwx 1 root root 19 May 4 2021 libgxdummy.so.0 -> libgxdummy.so.0.0.0 -rwxr-xr-x 1 root root 24520 May 4 2021 libgxdummy.so.0.0.0 lrwxrwxrwx 1 root root 18 May 4 2021 libgxdX11.so -> libgxdX11.so.0.1.0 lrwxrwxrwx 1 root root 18 May 4 2021 libgxdX11.so.0 -> libgxdX11.so.0.1.0 -rwxr-xr-x 1 root root 238392 May 4 2021 libgxdX11.so.0.1.0 lrwxrwxrwx 1 root root 20 May 4 2021 libgxpCairo.so -> libgxpCairo.so.0.1.0 lrwxrwxrwx 1 root root 20 May 4 2021 libgxpCairo.so.0 -> libgxpCairo.so.0.1.0 -rwxr-xr-x 1 root root 86648 May 4 2021 libgxpCairo.so.0.1.0 lrwxrwxrwx 1 root root 17 May 4 2021 libgxpGD.so -> libgxpGD.so.0.1.0 lrwxrwxrwx 1 root root 17 May 4 2021 libgxpGD.so.0 -> libgxpGD.so.0.1.0 -rwxr-xr-x 1 root root 45960 May 4 2021 libgxpGD.so.0.1.0