[gradsusr] Valid components of the substitution template for the TIME

Jeff Duda jeffduda319 at gmail.com
Mon Apr 8 13:30:45 EDT 2019


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://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Livre
>> de vírus. www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
>>
>> <#m_5949459222203155542_m_1186107660246592371_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
> --
> 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: <http://gradsusr.org/pipermail/gradsusr/attachments/20190408/0e952c8b/attachment-0001.html>


More information about the gradsusr mailing list