It is possible to create control files for each data file, but I don't see why you would ever want to do that. It would be much easier and take much less time to change the DSET entry in your one control file instead. For the templating, you only have to match up the pattern of the data file name. See <a href="http://www.iges.org/grads/gadoc/templates.html">this page about templates</a> for more information. THe warning is just a warning. The only reason it appears is because you have the keyword "options template" in your control file, yet you have no template symbols in the DSET entry of your control file. Change your DSET line to this: DSET %y4/mld%y4%m2%d2.gpv to be able to use the one control file to open all data files. Again, make sure you run this from the directory that contains those directories or else you will get errors from the control file being unable to find the data.<br>
<br>The message you will get when Grads successfully displays data is something like what you said: Contouring: 50 to 450 interval 50<br>Possible reasons for why you couldn't see it:<br>1) Did you open a display window?<br>
2) Is your data defined over a different geographical region than the one specified in the control file? If the dimension environment completely misses the region over which the data are defined, you won't see anything even though Grads will display it.<br>
<br>You said someone else made these files. I suggest talking to them about how they made them to determine how to display the data if you continue to have problems.<br><br>Jeff<br><br><div class="gmail_quote">On Mon, Jul 30, 2012 at 11:40 PM, irene alabia <span dir="ltr"><<a href="mailto:irenealabia@gmail.com" target="_blank">irenealabia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Thank you for walking me through the process. the folder 1981 exists, but the files were renamed to mld19810101.gpv by an external script. I tried to change the data file to mld19810101.gpv in an attempt to open the first file and it gives me a warning message:<div class="im">
<br>
<br>ga-> open mld.ctl<br>Scanning description file: mld.ctl<br></div>Warning: OPTIONS keyword "template" is used, but the <br> DSET entry contains no substitution templates.<br>Data file mld19810101.gpv is open as file 1<div class="im">
<br>
LON set to 99.5 285 <br>LAT set to -15.5 65 <br>LEV set to 0.5 0.5 <br>Time values set: 1981:1:1:0 1981:1:1:0 <br>E set to 1 1<br><br></div>Is it possible to create .ctl file corresponding to each datafile? I also tried to do "d mld" and gives me a message <br>
Contouring: 50 to 450 interval 50. However, data were not displayed. Thanks much.<div><div class="h5"><br><br><br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 1:09 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your control file has time templated. The time index defaults to 1 when you first open the control file. So check if the file 1981/mld.19810101_0000 exists. I guessed the name of this file based off of the DSET entry in the control file (which tells Grads where to look for the data files) and the TDEF entry. Since the path I just mentioned seems relative, make sure you run Grads from the directory that contains these files. Otherwise the control file will not find the data and you'll get that error. So check on that first.<span><font color="#888888"><div>
<br></div></font></span><div><span><font color="#888888">Jeff</font></span><div><div><br><br><div class="gmail_quote">On Mon, Jul 30, 2012 at 11:03 PM, irene alabia <span dir="ltr"><<a href="mailto:irenealabia@gmail.com" target="_blank">irenealabia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When i run the open mld.ctl, I get the following lines:<div><br><br>ga-> open mld.ctl <br>
Scanning description file: mld.ctl<br>Data file %y4/mld.%y4%m2%d2_%h2%n2 is open as file 1<br>LON set to 99.5 285 <br>
LAT set to -15.5 65 <br>LEV set to 0.5 0.5 <br>Time values set: 1981:1:1:0 1981:1:1:0 <br>E set to 1 1 <br><br></div>and running the d mld gives an error msg.<br>ga-> d mld <br>Cannot contour grid - all undefined values <br>
<span><font color="#888888">
<br>Irene</font></span><div><div><br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 12:46 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What happens when you run the commands<div>'open mld.ctl'</div><div>'d mld'</div><div>Any error messages? Do the data display?</div><span><font color="#888888"><div><br></div></font></span><div>
<span><font color="#888888">Jeff</font></span><div><div><br><br><div class="gmail_quote">On Mon, Jul 30, 2012 at 10:36 PM, irene alabia <span dir="ltr"><<a href="mailto:irenealabia@gmail.com" target="_blank">irenealabia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>Thank you for the quick reply. Attached is the entire control file.<br><br>Thanks much<div><div>
<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 12:13 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please show the entire control file.<div><br></div><div>Jeff Duda<br><br><div class="gmail_quote"><div><div>
On Mon, Jul 30, 2012 at 10:04 PM, irene alabia <span dir="ltr"><<a href="mailto:irenealabia@gmail.com" target="_blank">irenealabia@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Dear Grads-users,<br><br>I am working with data files which I believed are created using Fortran code. I am new to Grads and I tried the basic commands to explore the data files but cant get past the opening phase. the file has a control file which looks like this:<br>
<br>ga-> open mld.ctl <br>Scanning description file: mld.ctl<br>Data file %y4/mld.%y4%m2%d2_%h2%n2 is open as file 1<br>LON set to 99.5 285 <br>LAT set to -15.5 65 <br>LEV set to 0.5 0.5 <br>Time values set: 1981:1:1:0 1981:1:1:0 <br>
E set to 1 1 <br><br>ga-> q file<br>File 1 : Mixed layer depth (delta_sigma = 0.05)<br> Descriptor: mld.ctl<br> Binary: %y4/mld.%y4%m2%d2_%h2%n2<br> Type = Gridded<br> Xsize = 372 Ysize = 162 Zsize = 54 Tsize = 1080 Esize = 1<br>
Number of Variables = 2<br> mld 1 99 Mixed layer depth (unit in m ; d_sigma=0.05)<br> rsig 1 99 Surface density<br><br> Any help to read and save the files for each Zlevels is very much appreciated. Thanks in advance.<br>
<br>Best regards,<br>Irene<br></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
<br>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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></div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>
</div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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></div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>
</div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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></div></div></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>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>