Changeset 504 for trunk


Ignore:
Timestamp:
Jan 24, 2012, 6:35:35 PM (13 years ago)
Author:
aslmd
Message:

UTIL/PYTHON: updated README.PP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/README.PP

    r489 r504  
    1212**************************************
    1313
    14 *****************************************************************
    15 MAPMODE 1... MAPPING MODE... SIMPLE EXAMPLES on a SAMPLE GCM FILE
    16 *****************************************************************
     14************************************
     15SIMPLE EXAMPLES on a SAMPLE GCM FILE
     16************************************
    1717Goal: The simplest, most minimal example. Mapping topography.
    1818pp.py -f diagfired.nc
     
    5151pp.py -f diagfired.nc -v tauice -m 0.2 -M 0.9 -H -b vishires -p ortho
    5252
     53Goal: I want the same map, but projected on the sphere and centered on longitude 100°
     54pp.py -f diagfired.nc -v tauice -m 0.2 -M 0.9 -H -b vishires -p ortho --blon -100
     55
    5356Goal: I want the same map, but projected with north polar stereographic view
    5457pp.py -f diagfired.nc -v tauice -m 0.2 -M 0.9 -H -b vishires -p npstere
     
    6770
    6871Goal: I want to plot results for two different times in the file next to one another
    69 pp.py -f diagfi.nc -v tsurf --time 4 --time 7
     72pp.py -f diagfired.nc -v tsurf --time 0.5 --time 0.9
    7073
    7174Goal: I want to plot averaged results in the file from one time to another time
    72 pp.py -f diagfi.nc -v tsurf --time 4,7
     75pp.py -f diagfired.nc -v tsurf --time 0.5,0.9
    7376
    7477Goal: I want to plot the minimum/maximum value over times stored in the file
    75 pp.py -f diagfi.nc -v tsurf --redope mint
    76 pp.py -f diagfi.nc -v tsurf --redope maxt
     78pp.py -f diagfired.nc -v tsurf --redope mint
     79pp.py -f diagfired.nc -v tsurf --redope maxt
     80
     81Goal: I want to plot a section of temperature at longitude 0
     82pp.py -f diagfired.nc --var temp --lon 0 --time 0.5
     83
     84Goal: I want to plot a section of zonally-averaged temperature
     85pp.py -f diagfired.nc -v temp --lon -180,180 --time 0.5
     86
     87Goal: I want to plot a section of zonally-averaged temperature with contours of zonally-averaged zonal wind
     88pp.py -f diagfired.nc -v temp -w u --lon -180,180 --time 0.5
     89
     90Goal: I want to plot a section of zonally-averaged temperature and zonally-averaged zonal wind
     91pp.py -f diagfired.nc -v temp,u --lon -180,180 --time 0.5
    7792
    7893Goal: I want to plot a globally-averaged 1D temperature profile
    79 pp.py -f diagfi.nc -v temp --time 4 --lat -90,90 --lon -180,180
     94pp.py -f diagfired.nc -v temp --time 0.5 --lat -90,90 --lon -180,180
    8095
    8196Goal: I want to overplot few globally-averaged 1D temperature profiles at different times
    82 pp.py -f diagfi.nc -v temp --time 4 --time 7 --lat -90,90 --lon -180,180
    83 
    84 [only mesoscale for the moment]
     97pp.py -f diagfired.nc -v temp --time 0.5 --time 0.9 --lat -90,90 --lon -180,180
     98
     99Goal: I want to overplot lat=0,lon=0 1D temperature profiles at different times
     100pp.py -f diagfired.nc -v temp --time 0.5 --time 0.9 --lat 0 --lon 0 --ymax 20 --xmin 180.
     101
     102******************** [specific mesoscale]
     103
    85104Goal: I want to plot results for two different LOCAL times in the file next to one another
    86 pp.py -f wrfout**** -v TSURF --time 4 -- time 7 --axtime lt
     105pp.py -f wrfout_d01_2024-05-03_01:00:00 -v TSURF --time 4 --time 7 --axtime lt
     106
     107Goal: I want to plot a section of temperature at longitude -120 between AMR altitudes 0 km and 30 km with 50 levels
     108pp.py -f wrfout_d01_2024-05-03_01:00:00 -v tk --time 4 --axtime lt --lon -120 -i 3 -l 0,30,50
     109
     110Goal: I want to plot a section of temperature at longitude -120 between ALS altitudes 0 km and 30 km with 50 levels
     111pp.py -f wrfout_d01_2024-05-03_01:00:00 -v tk --time 4 --axtime lt --lon -120 -i 4 -l 0,30,50
    87112
    88113***********************************************************************************
     
    152177                relaxed towards prescribed GCM fields.
    153178
     179
    154180***********************************************************************************
    155181Simple 2D plot: Zonal mean.
     
    158184Goal:
    159185
    160 Plot the zonal mean temperature from a netcdf fiel representing one month.
    161 
    162 Command:
    163 
    164 gcm.py -f POLAR_NIGHT_RUN/diagfi16.nc --var temp --lon 180,-180 --time 0,65
     186Plot the zonal mean temperature from a netcdf field representing one month.
     187
     188Command:
     189
     190pp.py -f POLAR_NIGHT_RUN/diagfi16.nc --var temp --lon 180,-180 --time 0,65
    165191
    166192Note:
     
    180206Command:
    181207
    182 gcm.py -f POLAR_NIGHT_RUN/diagfi16.nc --var temp --lon -180,180 --time 0,65 -i 4
     208pp.py -f POLAR_NIGHT_RUN/diagfi16.nc --var temp --lon -180,180 --time 0,65 -i 4
    183209
    184210Note:
     
    199225Command:
    200226
    201 gcm.py -f POLAR_NIGHT_RUN/stats16.nc --var temp --lon -180,180 --time 1 -i 4 --fref POLAR_NIGHT_REF/stats16.nc --operation - --mope -2 --Mope 2 --title "Polar temperatures with new parametrizations" --titleref "Reference run"
     227pp.py -f POLAR_NIGHT_RUN/stats16.nc --var temp --lon -180,180 --time 1 -i 4 --fref POLAR_NIGHT_REF/stats16.nc --operation - --mope -2 --Mope 2 --title "Polar temperatures with new parametrizations" --titleref "Reference run"
    202228
    203229Note:
     
    207233One can combine this command with projections and means, so that for example, to compare co2 depletion at the south pole:
    208234
    209 gcm.py -f POLAR_NIGHT_RUN/start16.nc --var co2 --vert 0,150 --proj spstere --time 1 -i 4 --fref POLAR_NIGHT_REF/start16.nc --operation - --mope -0.5 --Mope 0.5 --title "Polar co2 with new parametrizations" --titleref "Reference run"
     235pp.py -f POLAR_NIGHT_RUN/start16.nc --var co2 --vert 0,150 --proj spstere --time 1 -i 4 --fref POLAR_NIGHT_REF/start16.nc --operation - --mope -0.5 --Mope 0.5 --title "Polar co2 with new parametrizations" --titleref "Reference run"
    210236
    211237***********************************************************************************
     
    219245Command:
    220246
    221 gcm.py -f TES.MappedClimatology.nadir.MY25.nc --var T_nadir_day --lat -76. --time 90 --ymin 500 --ymax 1 -m 128 -M 148 -H
     247pp.py -f TES.MappedClimatology.nadir.MY25.nc --var T_nadir_day --lat -76. --time 90 --ymin 500 --ymax 1 -m 128 -M 148 -H
    222248
    223249Note:
Note: See TracChangeset for help on using the changeset viewer.