<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Jennifer. Looks like I'm getting close.<div>After I removed "time" in TDEF it complained and wanted xdef, ydef, etc. I input that info and can now "open" the file with no errors but cannot display anything. "Entire Grid Undefined".<div><br></div><div>Control file now looks like</div><div><br></div><div><div>DSET ^ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_%y4%m2%d2%h200-%y4%m2%d2%h200.nc</div><div>TITLE Air Temperature</div><div>UNDEF 1.e+20f</div><div>OPTIONS template</div><div>xdef 192 linear 0 1.875</div><div>ydef 145 linear -90 1.25</div><div>zdef 38 levels 20.000337600708 80.001350402832 179.999114990234 320.00146484375 500.000579833984 720.000366210938 980.000854492188 1279.998046875 1619.99987792969 1999.99841308594 2420.00170898438 2880.00146484375 3379.99829101562 3919.99951171875 4500.00146484375 5120 5779.99951171875 6479.99951171875 7220 8000.00146484375 8820 9679.9990234375 10579.998046875 11519.998046875 12499.9990234375 13520.0009765625 14580.7998046875 15694.6396484375 16875.310546875 18138.626953125 19503.009765625 20990.1875 22626.08203125 24458.28515625 26583.640625 29219.080078125 32908.69140625 39254.83203125</div><div>TDEF 1800 linear 6Z1dec2005 6hr</div><div>VARS 3</div><div>b 38 0 vertical coordinate formula term: b(k)</div><div>orog 38 0 Surface Altitude m</div><div>ta 38 0 Air Temperature K</div><div>ENDVARS</div><div><br></div><div>???</div><div>Joyce</div><div><br></div><div><div>On Mar 10, 2011, at 6:30 PM, Jennifer Adams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Joyce, <div>Take the 'time' keyword out of your TDEF statement -- that is for 'xdfopen' style descriptors, and you are using 'open'. </div><div>--Jennifer</div><div><br><div><br><div><div>On Mar 10, 2011, at 8:57 PM, Joyce Meyerson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Jeff,<div><br><div>Unfortunately, when I tried</div><div><div>DSET ^ta_6hrLev_HadGEM2-ES_rcp45_r1i1p1_%y4%m2%d2%h200-%y4%m2%d2%h200.nc</div><div>OPTIONS template</div><div>TDEF time 1800 linear 6Z1dec2005 6hr</div><div><br></div><div>I get the message</div><div><div>ga-> open test2.ctl</div><div>Scanning description file: test2.ctl</div><div>Open Error: Missing or invalid dimension size.</div><div> --> The invalid description file record is: </div><div> --> TDEF time 1800 linear 6Z1dec2005 6hr</div><div> The data file was not opened.</div></div><div><br></div><div>Joyce</div><div><br></div><div><div>On Mar 10, 2011, at 5:19 PM, Jeffrey Duda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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> <span><ATT00001..txt></span></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>**************************</div><div><i>Joyce Meyerson</i></div><div><i>UCLA</i></div><div><i>Dept. of Oceanic & Atmospheric Sciences</i></div><div><span class="Apple-style-span" style="font-family: arial; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>7235 Math Science Bld.</i></span></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>Los Angeles, CA 90095-1565</i></span></font></div><div><i><a href="mailto:hobo@atmos.ucla.edu">hobo@atmos.ucla.edu</a></i></div></div></div></div> </div><br></div></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div><span><ATT00001..txt></span></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-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; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-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; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>**************************</div><div><i>Joyce Meyerson</i></div><div><i>UCLA</i></div><div><i>Dept. of Oceanic & Atmospheric Sciences</i></div><div><span class="Apple-style-span" style="font-family: arial; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>7235 Math Science Bld.</i></span></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>Los Angeles, CA 90095-1565</i></span></font></div><div><i><a href="mailto:hobo@atmos.ucla.edu">hobo@atmos.ucla.edu</a></i></div></div></span></div></span></div></span> </div><br></div></div></body></html>