Re: [idvusers] Generating Forecast Hour for Model Graphics in ISL

Hi Brendon-

There isn't a way to do this now. The forecast hour in the display list is really a manufactured time. It is the time of an individual timestep minus the first time in the sequence.

We are waiting for the underlying netcdf-java library to provide the runtime information so we can provide more accurate forecast hour information. At that point, we could look into adding a macro that would allow you to define the forecast hour in ISL. However, it might not be an easy thing to add because right now the time information is gotten from the animation time, not the data time.

Don

On 3/5/14 6:51 AM, Brendon Hoch wrote:
Hello,

We would like to generate images from GFS in IDV using ISL scripts.
Currently, ISL allows the user to put the valid time for the image as
part of the filename saved using built in time macro:

<image file="${islpath}/gfs${time:yyyyMMMddHH}.png">

Are there any elegant solutions for adding the forecast hour as part of
the file name?  For example, if I was making the 24 hour GFS forecast,
it would be great to be able to do something like this:

<image file="${islpath}/gfs${time:yyyyMMMddHH-FFF}.png">

or

<image file="${islpath}/gfs${fx:HHH}.png">

which would generate a filename of gfs2014Mar0400-024 or gfs024.png


I could probably write something in ISL to do this based on the time of
executing the script, but I would have to keep it current depending on
whether NWS changes model run times & modify it based on different model
runs/types (GFS, NAM, RR, etc.); it would be easier (& probably more
useful to others) if the functionality was built in to ISL.  Any
developers on this list ;)

Thanks,
Brendon


--
Don Murray
NOAA/ESRL/PSD and CU-CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: