scam2web main

scam2web.csh


This script controls the overall running of the model compile, build, namelist options, diagnostic output and web-page creation. The key variables that are required to be set are described below.

Environment variables
Options (0=yes; 1=no)
Directories
A note on directory structures below $SCAM_ROOT.
To facilitate a number of experiments with different IOP datasets at the running and diagnosing stages the directory structures are the following:

run_ctrl1 toga bld
runs--> run_test1--> arm95-->mods
... ... run
$SCAM_ROOT-->
run_test1-run_ctrl1 toga html
plots-->run_test2-run_ctrl2-->arm95-->
... ... plots

So that SCAM run builds in 'bld' with the mods copied to 'mods' and it runs in 'run. Diagnostics for the comparison of two runs are put in 'plots' and the web-pages created in 'html'.

scam_namelist.csh


The ultimate intention is that nothing will need to be changed in this file. However, it contains some default diagnostic output options as well as land initial condition options. The 'finidat' option contains the location of the land intiial conditions and there is an option for the first of every month in a particular year of a T42 global run with the 'vanilla' climate from a cam3_5_03 tag run. If finidat is not specified then SCAM will start with arbitrary initial conditions for the land.
The following land initial condition files are available from
/project/cms/rneale/cam/cam_mydata/inic/lnd

cam3_5_eul_ic4scam.clm2.r.0010-01-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-02-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-03-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-04-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-05-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-06-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-07-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-08-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-09-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-10-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-11-01-00000.nc
cam3_5_eul_ic4scam.clm2.r.0010-12-01-00000.nc

*** 17JUL07 *** As of cam3_5_03 SCAM is not able to read in a CAM land initial conditions ****

scam_plots.ncl


This ncl script lists the fields to be plotted, currently for 4 categories:

To include a timseries plot of the 1-D variable 'PRECT' the user would add the following line.

single_plot_ts (rnames,"PRECT", "mm/day", 86400*1000., 0, 80, 1,plot_name,ptrt,ptrc,"Prec", 86400*1000.,ptri)

User defined fields (in bold):

To include a timseries plot of the 2-D variable 'Q' the user would add the following line.

multi_plot_ts (rnames,"Q", "g/kg", 1000., 0,20,1, -5,5,1, 1,plot_name,ptrt,ptrc,"q", 1000., ptri)

User defined fields (in bold):
The equivalent routine calls for the mean diurnal cycle are available:

single_plot_dc (rnames,"PRECT", "mm/day", 86400*1000., 0, 20, 1,plot_name,ptrt,ptrc,"Prec", 86400*1000.,ptri)
multi_plot_dc (rnames,"Q", "g/kg", 1000., 0,20,1, -2,2,0.2, 1,plot_name,ptrt,ptrc,"q", 1000., ptri)


Only variables listed in the routine scam_plots.ncl will be produced and added to the webpage.

plot2web.csh


This script uses c-script logic to create a webpage set based on the postscript files present from the ncl output. The web page looks like the screen-shot below:



Currently tested machines
bangkok
setenv NCHOME /usr/local/netcdf-gcc-lf95
setenv INC_NETCDF ${NCHOME}/include
setenv LIB_NETCDF ${NCHOME}/lib
setenv PATH /usr/local/lf9562/bin:$PATH setenv LD_LIBRARY_PATH /usr/local/lf9562/lib