72 #Change PE layers 73 ./xmlchange NTASKS_ATM=480 74 ./xmlchange NTHRDS_ATM=1 75 ./xmlchange ROOTPE_ATM=0 76 77 ./xmlchange NTASKS_LND=240 78 ./xmlchange NTHRDS_LND=1 79 ./xmlchange ROOTPE_LND=120 80 81 ./xmlchange NTASKS_ICE=120 82 ./xmlchange NTHRDS_ICE=1 83 ./xmlchange ROOTPE_ICE=0 84 85 ./xmlchange NTASKS_OCN=96 86 ./xmlchange NTHRDS_OCN=1 87 ./xmlchange ROOTPE_OCN=480 88 89 ./xmlchange NTASKS_CPL=120 90 ./xmlchange NTHRDS_CPL=1 91 ./xmlchange ROOTPE_CPL=360 92 93 ./xmlchange NTASKS_GLC=240 94 ./xmlchange NTHRDS_GLC=1 95 ./xmlchange ROOTPE_GLC=0 96 97 ./xmlchange NTASKS_ROF=120 98 ./xmlchange NTHRDS_ROF=1 99 ./xmlchange ROOTPE_ROF=240 100 101 ./xmlchange NTASKS_WAV=120 102 ./xmlchange NTHRDS_WAV=1 103 ./xmlchange ROOTPE_WAV=360
When used in conjunction with an NCL script, command line arguments can set a variable’s value, help determine initial conditions, and so forth:
% cat modelRun.ncl
begin
[...]
if (.not. isvar("nyrStrt")) then ; is nyrStrt on command line?
nyrSrt = 1960
end if
if (.not. isvar("nyrLast")) then ; is nyrLast on command line?
nyrLast = 2002;
end if
print(nyrStrt) ; for illustrative purposes
print(nyrLast)
[...]
end
(Variables nyrStrt and nyrLast are set on the command line)
% ncl nyrStrt=1900 nyrLast=1968 modelRun.ncl
Variable: nyrStrt
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 1900
Variable: nyrStrt
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 1968
Consider the following
ncl nyrStrt=1930 'fName="Model*"' gravity=9.8 opt=True cyclic=False latS=-30 latN=30 lonL=130 lonR=290 modelRun.ncl
When the number of CLOs is large, it might be clearer to enter only one or two per line. The Unix line continuation character, </b>, can be used to accomplish this:
ncl nyrStrt=1930 \
'fName="Model*"' \
gravity=9.8 \
latS=-30 latN=30 \
lonL=130 lonR=290 \
modelRun.ncl
equity n. 产权,股票; 公正
shift away 移走
box office 票房
The U.S. Federal Reserve 美联储