Joyce,<br>You have the general idea of templating down right, but you do have a few template strings that are not right. If the last four digits in the dates of your filenames are just four-digit UTC times, use %h200. If they're forecast hours, use %f30. Also, I think you should only have one file name listed in the DSET entry (i.e., don't double up on the file names, just leave the templated file name string there instead).<br>
<br>Unfortunately if that change doesn't work, that's as far as I can go to help you, as I don't use sdfopen and it could be an issue related to that. <br><br>Hope this helps.<br><br>Jeff Duda<br><br><div class="gmail_quote">
On Thu, Mar 10, 2011 at 6:58 PM, Joyce Meyerson <span dir="ltr"><<a href="mailto:hobo@atmos.ucla.edu">hobo@atmos.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">Hi All,<div><br></div><div>I am trying to write a control file to open multiple CMIP5 6hr .nc files.</div><div><br></div><div>I am running grads-2.0.a8 on Linux version 2.6.27.45-server-1mnb.</div>
<div><br></div><div>My files are 6h temperature in 3 month bundles and look like </div><div>ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_200512010600-200603010000.nc</div><div>ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_200603010600-200606010000.nc</div>
<div>ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_200606010600-200609010000.nc</div><div>...</div><div><br></div><div>They open fine individually with sdfopen. </div><div>All the examples I've seen on the user list and elsewhere more or less have names that are simple sequential (e.g., <a href="http://pr.1998.nc" target="_blank">pr.1998.nc</a>, <a href="http://pr.1999.nc" target="_blank">pr.1999.nc</a>, etc. or month, day, year, that kind of thing).</div>
<div><br></div><div>I'm not sure of the nomenclature with a time interval in the name like the above (xxx_%y4%m2%d2%t4-%y4%m2%d2%<a href="http://t4.nc" target="_blank">t4.nc</a>)</div><div><br></div><div>I tried %ch</div>
<div><div>DSET ^ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_%<a href="http://ch.nc" target="_blank">ch.nc</a></div><div>CHSUB 1 360 200512010600-200603010000</div><div>CHSUB 361 720 200603010600-200606010000</div><div>OPTIONS template</div>
<div>DTYPE netcdf</div><div>TDEF time 720 linear 6Z1dec2005 6hr</div></div><div> with the error message:</div><div><div>ga-> open test.ctl</div><div>Scanning description file: test.ctl</div><div>Open Error: Missing or invalid dimension size.</div>
<div> --> The invalid description file record is: </div><div> --> TDEF time 720 linear 6Z1dec2005 6hr</div><div> The data file was not opened.</div></div><div><br></div><div>I tried</div><div><div>DSET ^ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_200512010600-200603010000.nc ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_%y4%m2%d2%t4-%y4%m2%d2%<a href="http://t4.nc" target="_blank">t4.nc</a></div>
<div>OPTIONS template</div><div>TDEF time 1800 linear 6Z1dec2005 6hr</div><div>[opens just the first file]</div><div><br></div><div>and I tried</div><div><div>DSET ^ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_%y4%m2%d2%t4-%y4%m2%d2%<a href="http://t4.nc" target="_blank">t4.nc</a></div>
<div>OPTIONS template</div><div>TDEF time 1800 linear 6Z1dec2005 6hr</div></div><div>[gives error message: read_metadata: gaopfn failed (rc=-88888)</div><div>gadsdf: Couldn't ingest SDF metadata.</div><div>SDF Descriptor file test2.ctl was not successfully opened & parsed.]</div>
<div><br></div><div>I'm not the most adept grads/computer/scripting person. Please help.</div><div><br></div><div>Joyce</div></div><div><br></div><div><br></div><div> <div style="word-wrap: break-word;"><div style="word-wrap: break-word;">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">
<div>**************************</div><div><i>Joyce Meyerson</i></div><div><i>UCLA</i></div><div><i>Dept. of Oceanic & Atmospheric Sciences</i></div><div><span style="font-family: arial;"><i>7235 Math Science Bld.</i></span></div>
<div><font face="arial"><span><i>Los Angeles, CA 90095-1565</i></span></font></div><div><i><a href="mailto:hobo@atmos.ucla.edu" target="_blank">hobo@atmos.ucla.edu</a></i></div></div></span></div></div> </div><br></div><br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>