[gradsusr] gradsusr Digest, Vol 110, Issue 6
Minella Martins
minella.martins at hotmail.com
Mon Apr 8 14:03:16 EDT 2019
Thanks, Jeff Duda. Using %ch it works well.
All the best
Minella
________________________________
De: gradsusr <gradsusr-bounces at gradsusr.org> em nome de gradsusr-request at gradsusr.org <gradsusr-request at gradsusr.org>
Enviado: segunda-feira, 8 de abril de 2019 14:30
Para: gradsusr at gradsusr.org
Assunto: gradsusr Digest, Vol 110, Issue 6
Send gradsusr mailing list submissions to
gradsusr at gradsusr.org
To subscribe or unsubscribe via the World Wide Web, visit
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684822456&sdata=A0tTxvt3FzvyYnzFREmHthPh%2FgG0cCnYOD1e0MTFMwI%3D&reserved=0
or, via email, send a message with subject or body 'help' to
gradsusr-request at gradsusr.org
You can reach the person managing the list at
gradsusr-owner at gradsusr.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gradsusr digest..."
Today's Topics:
1. Re: Valid components of the substitution template for the
TIME (Jeff Duda)
2. Re: Valid components of the substitution template for the
TIME (Jeff Duda)
----------------------------------------------------------------------
Message: 1
Date: Mon, 8 Apr 2019 11:30:11 -0600
From: Jeff Duda <jeffduda319 at gmail.com>
To: GrADS Users Forum <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] Valid components of the substitution template
for the TIME
Message-ID:
<CAAig09BHymuHu_veZNy9hchooL6Y_tVdoOkD6O8q5EyHB6-XFQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Minella,
I hope someone else can settle the root cause for you, but I have a
suggestion you can use to "brute force" this issue. Use %ch for your
forecast hour string and manually type in the value of each time increment
in the control file using CHSUB. That is,
dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin
options template
CHSUB 1 1 24
CHSUB 2 2 48
CHSUB 3 3 72
...
...
...
CHSUB 214 214 5136
CHSUB 215 215 5160
undef 9999.0
title c3s data
xdef 320 linear 310.0000000 0.05
ydef 440 linear -22.0000000 0.05
zdef 1 linear 1 1
tdef 5160 linear 00z01Jan2001 24hr
vars 1
tp 0 99 Total precipitation [m]
endvars
That is clearly very intensive work, so you would probably instead just
write a simple script in whatever language (FORTRAN, Python, Linux shell
etc.) to write out those lines for you and re-construct the control file.
That should at least serve as a temporary workaround.
Best of luck!
Jeff Duda
On Mon, Apr 8, 2019 at 9:22 AM Minella Martins <minella.martins at hotmail.com>
wrote:
> Hello everyone,
>
> I am trying to use the %f3 as a substitution component for the forecast
> hours. However, my forecast time varies from 0024 to 5160 hours and %f3
> does not work for more than 3 digits, even though the Grads tutorial says
> that it works when "more digits added for hours >999; hour values
> increase indefinitely".
>
> In other words, it works for forecast hours above 1032 hours but does not
> work for those below.
> Has anyone faces this kind of problem and could help me??
>
> My template file is like that:
>
> dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin
> options template
> undef 9999.0
> title c3s data
> xdef 320 linear 310.0000000 0.05
> ydef 440 linear -22.0000000 0.05
> zdef 1 linear 1 1
> tdef 5160 linear 00z01Jan2001 24hr
> vars 1
> tp 0 99 Total precipitation [m]
> endvars
>
> My files are like:
> northeast_c3s_ecmwf_20010101_t00z_f0024_m000_tp.bin
> northeast_c3s_ecmwf_20010101_t00z_f0048_m000_tp.bin
>
>
> Thanks in advance
> Minella
>
>
>
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684822456&sdata=to8iqkeBmORK5a4uoTARW7D9St4yj4ER0h5yKoV29yY%3D&reserved=0> Livre
> de v?rus. https://eur02.safelinks.protection.outlook.com/?url=www.avast.com&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684822456&sdata=bPil2aQSV2Jb0VOJ9gJC9qPVhJ%2BQ2DhwHh4vpmp%2Bwzs%3D&reserved=0
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684822456&sdata=to8iqkeBmORK5a4uoTARW7D9St4yj4ER0h5yKoV29yY%3D&reserved=0>.
> <#m_1186107660246592371_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684822456&sdata=A0tTxvt3FzvyYnzFREmHthPh%2FgG0cCnYOD1e0MTFMwI%3D&reserved=0
>
--
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fpipermail%2Fgradsusr%2Fattachments%2F20190408%2F922853cb%2Fattachment-0001.html&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=ec62UI4LtSkRZNV3lce90Q3Pg%2B1f2xMljTscRKMFVN0%3D&reserved=0>
------------------------------
Message: 2
Date: Mon, 8 Apr 2019 11:30:45 -0600
From: Jeff Duda <jeffduda319 at gmail.com>
To: GrADS Users Forum <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] Valid components of the substitution template
for the TIME
Message-ID:
<CAAig09Bm4Fgj++vtpAs0C0gTXJCjfp2H-cgz5Owpzy4u76xqoA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I forgot to edit your DSET line:
dset ^./northeast_c3s_ecmwf_20010101_t00z_f*%ch*_m000_tp.bin
On Mon, Apr 8, 2019 at 11:30 AM Jeff Duda <jeffduda319 at gmail.com> wrote:
> Minella,
> I hope someone else can settle the root cause for you, but I have a
> suggestion you can use to "brute force" this issue. Use %ch for your
> forecast hour string and manually type in the value of each time increment
> in the control file using CHSUB. That is,
>
> dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin
> options template
> CHSUB 1 1 24
> CHSUB 2 2 48
> CHSUB 3 3 72
> ...
> ...
> ...
> CHSUB 214 214 5136
> CHSUB 215 215 5160
> undef 9999.0
> title c3s data
> xdef 320 linear 310.0000000 0.05
> ydef 440 linear -22.0000000 0.05
> zdef 1 linear 1 1
> tdef 5160 linear 00z01Jan2001 24hr
> vars 1
> tp 0 99 Total precipitation [m]
> endvars
>
> That is clearly very intensive work, so you would probably instead just
> write a simple script in whatever language (FORTRAN, Python, Linux shell
> etc.) to write out those lines for you and re-construct the control file.
> That should at least serve as a temporary workaround.
>
> Best of luck!
>
> Jeff Duda
>
> On Mon, Apr 8, 2019 at 9:22 AM Minella Martins <
> minella.martins at hotmail.com> wrote:
>
>> Hello everyone,
>>
>> I am trying to use the %f3 as a substitution component for the forecast
>> hours. However, my forecast time varies from 0024 to 5160 hours and %f3
>> does not work for more than 3 digits, even though the Grads tutorial says
>> that it works when "more digits added for hours >999; hour values
>> increase indefinitely".
>>
>> In other words, it works for forecast hours above 1032 hours but does not
>> work for those below.
>> Has anyone faces this kind of problem and could help me??
>>
>> My template file is like that:
>>
>> dset ^./northeast_c3s_ecmwf_20010101_t00z_f%f3_m000_tp.bin
>> options template
>> undef 9999.0
>> title c3s data
>> xdef 320 linear 310.0000000 0.05
>> ydef 440 linear -22.0000000 0.05
>> zdef 1 linear 1 1
>> tdef 5160 linear 00z01Jan2001 24hr
>> vars 1
>> tp 0 99 Total precipitation [m]
>> endvars
>>
>> My files are like:
>> northeast_c3s_ecmwf_20010101_t00z_f0024_m000_tp.bin
>> northeast_c3s_ecmwf_20010101_t00z_f0048_m000_tp.bin
>>
>>
>> Thanks in advance
>> Minella
>>
>>
>>
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=4Q%2BSj9BVhE8OhBMHhqILQFPoYACLUkzRIIsQG6MMz%2FY%3D&reserved=0> Livre
>> de v?rus. https://eur02.safelinks.protection.outlook.com/?url=www.avast.com&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=RTG9hd%2FDWd0bP6uL4n7aVO3iuEyRCVckzNQza3hwoF0%3D&reserved=0
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=4Q%2BSj9BVhE8OhBMHhqILQFPoYACLUkzRIIsQG6MMz%2FY%3D&reserved=0>.
>>
>> <#m_5949459222203155542_m_1186107660246592371_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=cHyCwfeCXxbhSyjzAGWTclQtxrVA%2FjHVGcFpG53GA%2BU%3D&reserved=0
>>
>
>
> --
> Jeff Duda, Research Scientist
> University of Colorado Boulder
> Cooperative Institute for Research in Environmental Sciences
> NOAA/OAR/ESRL/Global Systems Division
> Boulder, CO
>
--
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fpipermail%2Fgradsusr%2Fattachments%2F20190408%2F0e952c8b%2Fattachment.html&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=mLdmcmi7CJdJyMpzKHulzbmvCVflA2n97NTyrKTlc%2F0%3D&reserved=0>
------------------------------
Subject: Digest Footer
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&data=02%7C01%7C%7C83b33c1311864942814108d6bc4836ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636903415684832461&sdata=cHyCwfeCXxbhSyjzAGWTclQtxrVA%2FjHVGcFpG53GA%2BU%3D&reserved=0
------------------------------
End of gradsusr Digest, Vol 110, Issue 6
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190408/007508c0/attachment-0001.html>
More information about the gradsusr
mailing list