[gradsusr] (no subject)
James T. Potemra
jimp at hawaii.edu
Tue Apr 14 20:21:47 EDT 2020
Hi Evgeny,
One way to do it is to add this as an arg to your grads script. For example,
function get_gfs(args)
datenow = subwrd ( args, 1 )
'sdfopen
https://nomads.ncep.noaa.gov/dods/gfs_0p25/gfs'datenow'/gfs_0p25_12z'
Then when you run the script,
set datenow = `date +%Y%m%d`
grads -lcb "run my_script.gs datenow"
Jim
On 4/8/20 12:52 PM, Evgeny Gavrilov wrote:
> In GrADS script how to automatically change date and time in URL?
>
> https://nomads.ncep.noaa.gov/dods/gfs_0p25/gfs20200408/gfs_0p25_12z
>
> gfs*20200408*/gfs_0p25_*12*z
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200414/48927476/attachment.html>
More information about the gradsusr
mailing list