Time Settings for Data

Jeffrey Duda jdduda at IASTATE.EDU
Thu Jan 21 15:15:59 EST 2010


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.

On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda <jdduda at iastate.edu> wrote:

>
> Jason,
>
> Have you tried simply changing the TDEF line in the .ctl file to the time
> you want?
>
> Jeff Duda
>
>
> On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder <jmssnyder at ucdavis.edu>wrote:
>
>> 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
>> ga-'>set t 1
>>
>> I still get the date
>> Time values set: 2009:1:1:3 2009:1:1:3,
>>
>> where I would like it to be
>>
>> Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf
>> file has.
>>
>>
>> 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?
>>
>> Let me know.
>>
>> Thank,
>>
>> Jason
>>
>>
>> On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz <eliavs at gmail.com>wrote:
>>
>>>
>>>
>>> On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz <eliavs at gmail.com>wrote:
>>>
>>>>
>>>> Jason
>>>>
>>> Hi again
>>> i found the old script i wrote here is the part that turns string date to
>>> number:
>>> '
>>>   'q time'
>>> date=subwrd(result,3)
>>> hour=substr(date,1,3)
>>> day=substr(date,4,2)
>>> month=substr(date,6,3)
>>> year=substr(date,9,10)
>>> '!date -d 'date' +%m >> date.txt'
>>> a=read('date.txt')
>>> month1=sublin(a,2)
>>> '
>>>
>>>> eliav
>>>>
>>>
>>>
>>
>
>
> --
> Jeff Duda
> Iowa State University
> Meteorology Graduate Student
> 3134 Agronomy Hall
> www.meteor.iastate.edu/~jdduda <http://www.meteor.iastate.edu/%7Ejdduda>
>



-- 
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/622bd59d/attachment.html 


More information about the gradsusr mailing list