Skip to content

Commit

Permalink
simplify paredown_history script
Browse files Browse the repository at this point in the history
only pull out variables you need

Use fewer times and change cross section example to use new
time range.

extract ugrd in cross section code block, not tmp.
  • Loading branch information
ahijevyc committed Aug 9, 2023
1 parent a94f8ec commit e9adb5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Binary file modified docs/Users_Guide/figure/ugrd_28.0N-120.0E-26.0N-75.0E.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/Users_Guide/fv3_physics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ Vertical Cross Section
--vmax VMAX color bar maximum (overrides robust=True) (default: None)

Generate vertical cross section of u-wind tendencies from 28°N 120°W to 26°N 75°W over one-hour
time window ending 23z June 15, 2019.
time window ending 20z June 15, 2019.

.. code-block:: bash
python cross_section_vert.py $CONFIG $WORKING_DIR/fv3_history.nc $WORKING_DIR/grid_spec.nc tmp \
-t 1 -v "2019-06-15 23" -s 28 -120 -e 26 -75 --nofineprint
python cross_section_vert.py $CONFIG $WORKING_DIR/fv3_history.nc $WORKING_DIR/grid_spec.nc ugrd \
-t 1 -v "2019-06-15 20" -s 28 -120 -e 26 -75 --nofineprint
.. image:: figure/ugrd_28.0N-120.0E-26.0N-75.0E.png

Expand Down
7 changes: 5 additions & 2 deletions metplotpy/contributed/fv3_physics_tend/pare_down_history.csh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
module load nco

set historyfile=/glade/scratch/mwong/dave/sample_cases/CONUS_25km_GFSv15p2/2019050412/fv3_history.nc
set historyfile=/glade/campaign/mmm/parc/ahijevyc/METplotpy/DavidA_fv3_history_etc_files/fv3_history.nc

set gridspec=/glade/scratch/mwong/dave/sample_cases/CONUS_25km_GFSv15p2/2019050412/grid_spec.nc
set gridspec=/glade/campaign/mmm/parc/ahijevyc/METplotpy/DavidA_fv3_history_etc_files/grid_spec.nc

ncks -x -v phalf,refl_10cm,hgtsfc,pressfc,grle,snmr,rwmr,icmr,dzdt,delz,dpres,o3mr,clwmr,zsurf -d time,0,1 $historyfile `basename $historyfile`
ncks -v grid_xt,grid_yt,grid_lont,grid_latt,area $gridspec
# extract variables
ncks -v pfull,time,spfh,dtend_qv_pbl,dtend_qv_deepcnv,dtend_qv_shalcnv,dtend_qv_mp,dtend_qv_phys,dtend_qv_nophys,tmp,dtend_temp_lw,dtend_temp_sw,dtend_temp_pbl,dtend_temp_deepcnv,dtend_temp_shalcnv,dtend_temp_mp,dtend_temp_orogwd,dtend_temp_cnvgwd,dtend_temp_phys,dtend_temp_nophys,ugrd,dtend_u_pbl,dtend_u_orogwd,dtend_u_deepcnv,dtend_u_cnvgwd,dtend_u_shalcnv,dtend_u_phys,dtend_u_nophys,vgrd,dtend_v_pbl,dtend_v_orogwd,dtend_v_deepcnv,dtend_v_cnvgwd,dtend_v_shalcnv,dtend_v_phys,dtend_v_nophys -d time,0,2 $historyfile `basename $historyfile`
ncks -v grid_xt,grid_yt,grid_lont,grid_latt,area $gridspec $gridspec

0 comments on commit e9adb5e

Please sign in to comment.