<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello to everyone,<br><br>I have problem to concatenate the whole years from 1995 to 2005 into one ctl file.<br><br>The script which i am using to concatenate these years is given below;<br><br><b>cdo cat year1995,year1996,year1997...............,year2005</b><br><br><b>before these commands, i used the above command</b><br><br>cdo dv2uv echam_yearout9508 echam_yearout9508_dv2uv.grb <b>[To change it from divergence and vorticity to horizontal wind u,v] </b><br><br>cdo selcode,130,131,132,133,134,142,144,147,157,182,223 echam_yearout9508_dv2uv.grb echam_yearout9508_dv2uv_TUVP.grb <b>[To include the variables generated by the model].</b><br><br>cdo sp2gp echam_yearout9508_dv2uv_TUVP.grb echam_yearout9508_dv2uv_TUVP_grid.grb <b>[Change from Spectral to gridpoint]</b><br><br>cdo ml2pl,100000,80000,50000,20000,10000 echam_yearout9508_dv2uv_TUVP_grid.grb echam_yearout9508_dv2uv_TUVP_grid_press.grb <b>[To Include the Pressure Level before this it was using the hybrid level]<br><br></b>cdo gradsdes2 echam_yearout9508_dv2uv_TUVP_grid_press.grb <b>[To create the ctl file]</b><br><br>And this cdo stuff then generated the ctl file which looks much perfect however as i opened it. It only showed my the 1995:01:01 to last time step 1995:12:31<br><br>I then changed the tdef in the ctl file by using the text editor, instead of this it does not work. It showed me the message that memory dump.<br><br><b>* Generated by CDO version 1.5.0<br>*</b><br>DSET ^echam_yearout9508_dv2uv_TUVP_grid_press.grb<br>DTYPE GRIB<br>INDEX ^echam_yearout9508_dv2uv_TUVP_grid_press.gmp<br>XDEF 192 LINEAR 0.000000 1.875000<br>YDEF 96 LEVELS -88.572 -86.723 -84.862 -82.999 -81.135 -79.271 <br> -77.406 -75.541 -73.676 -71.811 -69.946 -68.081 <br> -66.216 -64.351 -62.486 -60.620 -58.755 -56.890 <br> -55.025 -53.160 -51.294 -49.429 -47.564 -45.699 <br> -43.833 -41.968 -40.103 -38.238 -36.372 -34.507 <br> -32.642 -30.777 -28.911 -27.046 -25.181 -23.316 <br> -21.450 -19.585 -17.720 -15.855 -13.989 -12.124 <br> -10.259 -8.394 -6.528 -4.663 -2.798 -0.933 <br> 0.933 2.798 4.663 6.528 8.394 10.259 <br> 12.124 13.989 15.855 17.720 19.585 21.450 <br> 23.316 25.181 27.046 28.911 30.777 32.642 <br> 34.507 36.372 38.238 40.103 41.968 43.833 <br> 45.699 47.564 49.429 51.294 53.160 55.025 <br> 56.890 58.755 60.620 62.486 64.351 66.216 <br> 68.081 69.946 71.811 73.676 75.541 77.406 <br> 79.271 81.135 82.999 84.862 86.723 88.572 <br>ZDEF 5 LEVELS 1000 800 500 200 100 <br><b>TDEF 16068 LINEAR 18:00Z01jan1995 6hr</b> <b>[after 1705 time step round about 2006:03:30, it gave the message memory dumped]</b><br>TITLE echam_yearout9508_dv2uv_TUVP_grid_press.grb T63 grid<br>OPTIONS yrev<br>UNDEF -9e+33<br>VARS 11<br>var130 5 130,100 var130<br>var133 5 133,100 var133<br>var134 0 134,1 var134<br>var142 0 142,1 var142<br>var144 0 144,1 var144<br>var147 0 147,1 var147<br>var157 5 157,100 var157<br>var182 0 182,1 var182<br>var223 5 223,100 var223<br>var131 5 131,100 var131<br>var132 5 132,100 var132<br>ENDVARS<br><b><br>And now as i read in the user manual of grads that we can extend the number of year through this way, Can anybody tell me where should i have to use those lines???</b><br><br>Multiple file time series<br>GrADS now allows you to handle many actual data files as one GrADS file, if the individual data<br>files are in a GrADS readable format, and if the files are split along time. In the initial<br>implementation, the time(s) that are in each file are indicated by the file name.<br>An example of this might be hourly data, where each 24 hours has been placed in a separate file.<br>Each file is named this way:<br>1may92.dat<br>2may92.dat<br>etc.<br>You indicate to GrADS that there are multiple files in this time series by giving a substitution<br>template as the file name:<br><br><b>dset %d1%mc%y2.dat [Where should i have to write this command and will it works then for ctl file as well]</b><br><br><b>What more things i have to include in this script as i simulated the 6 hourly data??</b><br><br><br>and giving an options record that looks like:<br>100<br>options template<br>and specifying the time range and increment in the tdef record:<br>tdef 72 linear 0z1may1993 1hr<br>GrADS will figure out automatically that there are 24 times in each file, and what file names<br>correspond to what times. As you display data, GrADS will only open one file at a time. As you<br>change times such that another file is referred to, the open file is closed, and the new file is opened.<br>Valid substitutions are:<br><br><b>%y2 - 2 digit year (last 2 digits)<br>%y4 - 4 digit year<br>%m1 - 1 or 2 digit month<br>%m2 - 2 digit month (leading zero if needed)<br>%mc - 3 character month abbreviation<br>%d1 - 1 or 2 digit day<br>%d2 - 2 digit day<br>%h1 - 1 or 2 digit hour<br>%h2 - 2 digit hour<br>%h3 - 3 digit hour (e.g., 120 or 012)<br>%f2 - 2 or 3 digit forecast hour<br>%f3 - 3 digit forecast hour<br>%n2 - 2 digit minute (leading zero if needed)<br>for specifying the initial time (e.g., NWP model output from NMC and FNMOC)<br>%iy2 - initial 2 digit year (last 2 digits)<br>%iy4 - initial 4 digit year<br>%im1 - initial 1 or 2 digit month<br>%im2 - initial 2 digit month (leading zero if needed)<br>%in2 - initial 2 minute (leading zero if needed)<br>%imc - initial 3 character month abbreviation<br>%id1 - initial 1 or 2 digit day<br>%id2 - initial 2 digit day<br>%ih1 - initial 1 or 2 digit hour<br>%ih2 - initial 2 digit hour<br>%ih3 - initial 3 digit hour<br>(time increment must be hours)</b><br>This support works on all supported GrADS data types (GrADS gridded, GRIB, GrADS station<br>data). If you specify file format options, the options must apply equally to each file.<br>The real-time data on DECstations makes use of this new feature. See the data descriptor files:<br>/data/wx/grads/sa.ctl<br>/data/wx/grads/sareps.ctl<br>/data/wx/grads/wx.ctl<br>for additional examples.<br><br><br><div><div id="SkyDrivePlaceholder"></div>Kind Regards,<br><br>Kaleem<br><br>PhD Student<br>Uni-Bonn Germany<br></div>                                            </div></body>
</html>