# To set up the workspace on HPC for SRW App experiment run cd /work2/noaa/epic/prpillai/UFS/ mkdir SRWTutorial_2 export work=/work2/noaa/epic/prpillai/UFS/SRWTutorial_2 cd SRWTutorial_2 ls -lrt module load contrib module show contrib ls /apps/contrib/modulefiles module load noaatools module show noaatools saccount_params # To clone UFS SRW App from GitHub repository git clone -b release/public-v3.0.0 https://github.com/ufs-community/ufs-srweather-app.git ls -lrt export SRW=$work/ufs-srweather-app cd ufs-srweather-app git status -b git branch -a ls -lrt ls manage_externals/ ./manage_externals/checkout_externals # To Build SRW App uname -n ./devbuild.sh -p=Hercules module use $SRW/modulefiles module load wflow_hercules conda activate srw_app # To include composite reflectivity plotting update lradar: True in line #508 of parm/FV3.input.yml cd parm vi FV3.input.yml [esc] [:508] and [Enter] to navigate to line #508 [i] lradar: True [Esc] [:wq] to save and exit # Steps to configure the experiment cd ush ls -lrt config*.yaml cp config.community.yaml config.yaml # Update SRW App configuration file, "config.yaml" for user provided initial condition. lateral boundaru condition files, setting plotting parameters etc. vi config.yaml [i] user: RUN_ENVIR: community MACHINE: hercules ACCOUNT: epic workflow: USE_CRON_TO_RELAUNCH: true CRON_RELAUNCH_INTVL_MNTS: 3 task_get_extrn_ics: USE_USER_STAGED_EXTRN_FILES: true EXTRN_MDL_SOURCE_BASEDIR_ICS: /work2/noaa/epic/prpillai/hercules/inputData/input_model_data/FV3GFS/grib2/2019061518 task_get_extrn_lbcs: USE_USER_STAGED_EXTRN_FILES: true EXTRN_MDL_SOURCE_BASEDIR_LBCS: /work2/noaa/epic/prpillai/hercules/inputData/input_model_data/FV3GFS/grib2/2019061518 task_plot_allvars: COMOUT_REF: "" PLOT_FCST_INC: 4 PLOT_FCST_START: 1 PLOT_DOMAINS: ["regional"] rocoto: tasks: taskgroups: '{{ ["parm/wflow/prep.yaml", "parm/wflow/coldstart.yaml", "parm/wflow/post.yaml", "parm/wflow/plot.yaml"]|include }}' # Generate the Rocoto workflow ./generate_FV3LAM_wflow.py # Monitor the status of the work from "test_community" directory cd /work2/noaa/epic/prpillai/UFS/SRWTutorial_2/expt_dirs/test_community rocotostat -w FV3LAM_wflow.xml -d FV3LAM_wflow.db -v 10 # Monitor the status of the work from any directory rocotostat -w /work2/noaa/epic/prpillai/UFS/SRWTutorial_2/expt_dirs/test_community/FV3LAM_wflow.xml -d /work2/noaa/epic/prpillai/UFS/SRWTutorial_2/expt_dirs/test_community/FV3LAM_wflow.db -v 10 # Outputs and Plots Quick Walkthrough # switch to compute node and load the necessary modules for data srun -N 1 --x11 --pty bash hostname #Explore SRW App intermediate files and final outputs to see the file formats ls -lrt grid ls -lrt orog ls -lrt sfc_climo ls -lrt fix_lam ls -lrt log #Explore the content of a log file vi log/FV3LAM_wflow.log :q cd 2019061518 ls -lrt ls -lrt RESTART/ cd postprd ls -lrt # To view the header of netCDF file one page at a time on the terminal screen module avail netcdf module load netcdf-c ncdump -h dynf007.nc | more # To view the content of grib2 file one page at a time on the terminal screen module avail wgrib module load wgrib2 wgrib2 srw.t18z.prslev.f011.rrfs_conus_25km.grib2 | more # To convert a *,grib2 file to ".nc", netCDF file and view its header wgrib2 srw.t18z.prslev.f011.rrfs_conus_25km.grib2 -netcdf srw_try.nc | more ncdump -h srw_try.nc # To view the PNG image files module avail image module load imagemagick display refc_regional_f004.png display 2mt_regional_f008.png display qpf_regional_f012.png # To compare two netCDF files module avail nccmp module list nccmp -d phyf008.nc phyf008.nc nccmp -d phyf008.nc phyf009.nc | more nccmp -dfqS phyf008.nc phyf009.nc | more nccmp --help