[gradsusr] dset and option template

Jennifer M Adams jadams21 at gmu.edu
Sat Nov 18 16:46:00 EST 2017


Hi, Ivana — 
You can specify the initial time of a forecast by inserting an “i” into the temple substitution strings, e.g.
     DSET /mnt/data/hindcast/%iy2%im2%id200/data_%f3 
This is mention in the documentation on templating: http://cola.gmu.edu/grads/gadoc/templates.html
-Jennifer

> On Nov 14, 2017, at 5:05 AM, Ivana Kordic <ivanakordic2207 at gmail.com> wrote:
> 
> Hi Jeff,
> Thanks for your reply.
> Those last 3 digits are forecast hours, from 000 to 030. But that was not the problem, %f3 works fine for me. The problem was this part in folder that represents year, month, day and modelrun %y2%m2%d200 (%y2%m2%ch00).
> I solved this by using script to copy data to temporary folder, where I just execute maps.
> But I am still interested in whether is it possible to set up date in control file in GrADS to be initial date, and not changing with  time step?
> Thanks.
> Ivana   
> 
> On Mon, Nov 13, 2017 at 5:21 PM, Jeff Duda <jeffduda319 at gmail.com> wrote:
> Did you try 0%h2 instead of %f3? What number do those last 3 digits truly represent?
> 
> On Mon, Nov 13, 2017 at 4:27 AM, Ivana Kordic <ivanakordic2207 at gmail.com> wrote:
> Hi all,
> 
> I have list of data in folders like this (I have whole year of data) this is just example for one day:
> 
> /mnt/data/hindcast/17110300/data_000
> /mnt/data/hindcast/17110300/data_001
> /mnt/data/hindcast/17110300/data_002
> .
> .
> .
> /mnt/data/hindcast/17110300/data_030
> 
> 
> I want my ctl file reads files from these folders. I am using option template function
> and it look like this:
> 
> dset  /mnt/data/hindcast/%y2%m2%d200/data_%f3
> 
> this works but only for first 24 hour of forecast (not for all 30 hours), this is because after 23rd hour day is changed to 04
> this is the error that I get:
>  grib1map:  opening GRIB file: /mnt/data/hindcast/17110300/data_023 
>  grib1map:  opening GRIB file: /mnt/data/hindcast/17110400/data_024 
>  grib1map warning: could not open GRIB file: /mnt/data/hindcast/17110400/latlon_024
> 
> I also tried this 
> 
> dset  /mnt/data/hindcast/%y2%m2%ch00/data_%f3
> 
> chsub 1 31 03
> 
> And this works for all 30 hours. But not for every day of month and leap year.
> 
> Does someone know how to use option template to solve this?
> Thanks in advance.
> Ivana
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> 
> 
> -- 
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University






More information about the gradsusr mailing list