Changes between Version 33 and Version 34 of WRF4GTutorial


Ignore:
Timestamp:
Sep 27, 2012 7:25:22 PM (10 years ago)
Author:
carlos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WRF4GTutorial

    v33 v34  
    150150}}}
    151151
    152 == How to use WRF4G's CLI ==
    153 
    154 In order to master '''WRFG4''', we are going to explain some examples using [wiki:WRF4GCommandLineInterface WRF4G's CLI].
    155 
    156 1. You want to modify the features of your experiment that you created it before. The new experiment will have the same name and different features that the old experiment.
    157 {{{
    158 #!sh
    159 [user@mycomputer~]$ wrf4g_prepare
    160 Warning: You are using resources.wrf4g located in the /home/user/WRF4G/etc/ directory.
    161 Preparing namelist...
    162 WRFV3/run/namelist.input
    163 WRF Check Warning: CAM radiation selected but paerlev/levsiz/cam_abs_dim1/cam_abs_dim2 was not set. Fixing...
    164 WRF Check Warning: radt is shorter than dx (0.500000)
    165 
    166 ---> Single params run
    167 ---> Continuous run
    168         ---> cycle_chunks: test 2011-08-28_12:00:00 2011-09-01_00:00:00
    169                 ---> chunks 1: test 2011-08-28_12:00:00 2011-08-29_00:00:00
    170                 ---> chunks 2: test 2011-08-29_00:00:00 2011-08-29_12:00:00
    171                 ---> chunks 3: test 2011-08-29_12:00:00 2011-08-30_00:00:00
    172 
    173 [user@mycomputer~]$ wrf4g_prepare
    174 Warning: You are using resources.wrf4g located in the /home/carlos/WRF4G/etc/ directory.
    175 Experiment already exists
    176 }}}
    177 
    178  You need to execute `wrf4g_prepare --reconfigure`.
    179 {{{
    180 #!sh
    181 [user@mycomputer~]$ cat experiment.wrf4g | grep "end_date="\"
    182 end_date="2011-08-30_00:00:00"
    183 
    184 [user@mycomputer~]$ cat experiment.wrf4g | grep "end_date="\"
    185 end_date="2011-09-01_00:00:00"
    186 
    187 [user@mycomputer~]$ wrf4g_prepare --reconfigure
    188 Warning: You are using resources.wrf4g located in the /home/carlos/WRF4G/etc/ directory.
    189 Preparing namelist...
    190 WRFV3/run/namelist.input
    191 WRF Check Warning: CAM radiation selected but paerlev/levsiz/cam_abs_dim1/cam_abs_dim2 was not set. Fixing...
    192 WRF Check Warning: radt is shorter than dx (0.500000)
    193 
    194 ---> Single params run
    195 ---> Continuous run
    196         ---> cycle_chunks: test 2011-08-28_12:00:00 2011-09-01_00:00:00
    197                 ---> chunks 1: test 2011-08-28_12:00:00 2011-08-29_00:00:00
    198                 ---> chunks 2: test 2011-08-29_00:00:00 2011-08-29_12:00:00
    199                 ---> chunks 3: test 2011-08-29_12:00:00 2011-08-30_00:00:00
    200                 ---> chunks 4: test 2011-08-30_00:00:00 2011-08-30_12:00:00
    201                 ---> chunks 5: test 2011-08-30_12:00:00 2011-08-31_00:00:00
    202                 ---> chunks 6: test 2011-08-31_00:00:00 2011-08-31_12:00:00
    203                 ---> chunks 7: test 2011-08-31_12:00:00 2011-09-01_00:00:00
    204 
    205 }}}
    206 
    207 2. The experiment '''test''' has finished with an error and you want to run the experiment again. What should you execute on shell?
    208 {{{
    209 #!sh
    210 [user@mycomputer~]$ wrf4g_submit --rerun -f -e test
    211 Submitting realization: "test"
    212         Submitting Chunk 1:     2011-08-28_12:00:00     2011-08-29_00:00:00
    213         Submitting Chunk 2:     2011-08-29_00:00:00     2011-08-29_12:00:00
    214         Submitting Chunk 3:     2011-08-29_12:00:00     2011-08-30_00:00:00
    215 }}}
    216 
    217 
    218 3. Imagine, you want to resubmit the chunk number '''1''' of the realization '''test'''. In this case, it is highly recommended that you use the option `--dry-run` of `wrf4g_submit` command before you submit your chunk. If you want to make sure you are submitting that chunk.
    219 {{{
    220 #!sh
    221 [user@mycomputer~]$ wrf4g_submit --dry-run --rerun -c 1 -f -r test
    222 Submitting realization: "test"
    223         Submitting Chunk 1:     2011-08-28_12:00:00     2011-08-29_00:00:00
    224 
    225 [user@mycomputer~]$ wrf4g_submit --rerun -c 1 -f -r test
    226 Submitting realization: "test"
    227         Submitting Chunk 1:     2011-08-28_12:00:00     2011-08-29_00:00:00
    228 }}}
    229 
    230152== What should you do if your experiment finishes with an error? ==
    231153
     154||= Variable =||= Value =||
     155||ERROR_MISSING_EXPERIMENTSWRF4G||20||
     156||ERROR_MISSING_RESOURCESWRF4G||21||
     157||ERROR_MISSING_WRF4GSRC||40||
     158||ERROR_MISSING_WRF4GBIN||41||
     159||ERROR_MISSING_NAMELIST||42||
     160||ERROR_ACCESS_DB||43||
     161||ERROR_VCP_FAILED||44||
     162||ERROR_LOW_GW_RESTARTED||45||
     163||ERROR_CANNOT_ACCESS_LOCALDIR||46||
     164||ERROR_MISSING_WRF4GCNF||58||
     165||ERROR_MISSING_WRFINPUT||59||
     166||ERROR_MISSING_WRFCHUNK||60||
     167||ERROR_PREPROCESSOR_FAILED||61||
     168||ERROR_UNGRIB_FAILED||62||
     169||ERROR_METGRID_FAILED||63||
     170||ERROR_REAL_FAILED||64||
     171||ERROR_WRF_FAILED||65||
     172||ERROR_RST_DOWNLOAD_FAILED||66||
     173||ERROR_VCP_FAILED||67||
     174||ERROR_CANNOT_ACCESS_LOCALDIR||68||
     175||ERROR_GETDATERST_FAILED||69||
     176||ERROR_REGISTER_FAILED||70||
     177||ERROR_UNEXPECTED_WRF_TERMINATION||71||
     178||ERROR_GETTING_WPS||72||
     179||EXIT_WRF4G_NOT_WORKING||88||
     180||EXIT_CANNOT_CONTACT_DB||89||
     181||EXIT_RESTART_MISMATCH||90||
     182||EXIT_CHUNK_ALREADY_FINISHED||91||
     183||EXIT_CHUNK_SHOULD_NOT_RUN||92||
     184||EXIT_PREVIOUS_CHUNK_NOT_FINISHED_CORRECT||93||
     185||EXIT_RESTART_MISMATCH||94||