Jason,<br>Download the data either in netCDF or GRIB format. If you download into netCDF you can either run the WRF Post Processor or ARW Post on it to get a .ctl file. If you download it as GRIB data, then just run <a href="http://grib2ctl.pl">grib2ctl.pl</a> on it (i.e., ./<a href="http://grib2ctl.pl">grib2ctl.pl</a> (GRIB file) > (name of .ctl file you want to make). Then adjust the times in the TDEF line of the file, then save it and run gribmap -e -i (.ctl file). That will create a .idx file that will allow you to view the contents of the GRIB file in Grads. Feel free to send me a message individually if you have more questions on this. Hopefully this helps.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 2:21 PM, Jason Snyder <span dir="ltr"><<a href="mailto:jmssnyder@ucdavis.edu">jmssnyder@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I cannot find a .ctl file for this data set. I got it from the following website:</div>
<div> </div>
<div><a href="http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv" target="_blank">http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv</a></div>
<div> </div>
<div>I tried changing the hours from 3 to 0 there but I got buggy files that do not open in GrADS. I could not find a control file. Can I make one and redefine TDEF? If so how?<br><br></div><div><div></div><div class="h5">
<div class="gmail_quote">On Thu, Jan 21, 2010 at 12:15 PM, Jeffrey Duda <span dir="ltr"><<a href="mailto:jdduda@iastate.edu" target="_blank">jdduda@iastate.edu</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">I tried it out on one of my own .ctl files and it worked just fine. Realize that you won't be able to plot data outside the time range of the initial data, but it syncs up the times just fine.
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda <span dir="ltr"><<a href="mailto:jdduda@iastate.edu" target="_blank">jdduda@iastate.edu</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><br>Jason,<br><br>Have you tried simply changing the TDEF line in the .ctl file to the time you want?<br>
<br>Jeff Duda
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder <span dir="ltr"><<a href="mailto:jmssnyder@ucdavis.edu" target="_blank">jmssnyder@ucdavis.edu</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>I tried the script but how do I get it to turn the date to a number? I ran this script and it does not seem to do anything except create the text file date.txt, which shows the date as December 31 2008 0 hours. when I enter </div>
<div>ga-'>set t 1 </div>
<div> </div>
<div>I still get the date <br></div>
<div>Time values set: 2009:1:1:3 2009:1:1:3, </div>
<div> </div>
<div>where I would like it to be </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf file has.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Nothing has really changed in terms of the time settings when I used this script. How do I use it? Do I have to run it on both .nc files I want to use and then I can use them together?</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Let me know.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Thank,</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Jason</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz <span dir="ltr"><<a href="mailto:eliavs@gmail.com" target="_blank">eliavs@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr"><br><br>
<div class="gmail_quote">On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz <span dir="ltr"><<a href="mailto:eliavs@gmail.com" target="_blank">eliavs@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr"><br>Jason<br></div></blockquote>
<div>Hi again<br>i found the old script i wrote here is the part that turns string date to number:<br>'<br> 'q time'<br>date=subwrd(result,3)<br>hour=substr(date,1,3)<br>day=substr(date,4,2)<br>month=substr(date,6,3)<br>
year=substr(date,9,10)<br>'!date -d 'date' +%m >> date.txt'<br>a=read('date.txt')<br>month1=sublin(a,2)<br>' <br></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div dir="ltr">eliav<br></div></blockquote></div><br></div></blockquote></div><br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>
3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br></font></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/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br></div></div></blockquote></div><br>
</div></div></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>