NCL Home> Application examples> Models || Data files for some examples

Example pages containing: tips | resources | functions/procedures

COAMPS (Wind Forcing)

How these scripts work

Each script is a stand alone entity that produces a particular type of plot, vector only, contour only, vectors on contours, panels etc. Your first task is to determine what type of plot you want.

At the top of each script, is an area where the user is allowed to make selections, such as which variables, which periods etc. to plot. These are your scripts, so you certainly are allowed to change the underlying NCL code. The current format was designed so that non-NCL users can use the scripts.

The following is an example of the user's parameters for the contour only script

    ;*****************************************************
    ; User's parameters
    ;*****************************************************
       date       = "2002030800"
       period     = (/3/) 
                         ; some variables are every 3 hrs,
                         ; others every 6 hrs. This varies
                         ; by region.

       var_name   = "pres"
			 ; "pres","dwpt_dprs","vpr_pres"
                         ; "snsb_heat_flux", "snsb_ltnt_heat_flux"
                         ; "ir_flux","ttl_heat_flux","ir_flux"
                         ; "ttl_prcp","sol_rad" 
                         ; "grnd_sea_temp", "air_temp"

       region      = "europe"
                         ; "southwest_asia", " cen_amer", "e_pac",
                         ; "europe", "europe2","w_atl", "w_pac"

    ; -1 means let NCL determine range of data. Note fluxes have hard-wired
    ; ranges to ensure colormap centered on zero.  
       mincn      =  -1        ; min contour
       maxcn      =  -1        ; max contour
       cnint      =  -1        ; contour interval
    ; 
       linesOn    = False      ; turn on contour lines
       output     = "x11"      ; can be "ps","eps","epsi","x11",or "ncgm"
All these scripts call func_coamps.ncl

coamps_1.ncl: Creates single pane images of scalar variables, one period per pane. As many periods as desired may be chosen. Each period is a separate frame in a postscript or X11 file. Example of the European Region

coamps_2.ncl: Creates single pane images of vector variables, one period per pane. As many periods as desired may be chosen. Each period is a separate frame in a postscript or X11 file. Choose between wind and curl. Example of East Pacific Region.

coamps_3.ncl: Creates single pane images of vector over scalar variables, one period per pane. As many periods as desired may be chosen. Each period is a separate frame in a postscript or X11 file. Example of Southeast Asia Region.

coamps_4.ncl: Creates panel plots of scalar variables, up to four plots per page. This example demonstrates the configuration of two plots. Example of Western Pacific Region

coamps_5.ncl: Creates panel plots of vector variables, up to four plots per page. This example demonstrates the configuration of three plots. Example of Central American Region.

coamps_6.ncl: Creates panel plots of vector over scalar variables, up to four plots per page. This example demonstrates the configuration of 4 plots. Example of the Western Atlantic Region.