[gradsusr] Is there a way to query which particular file in a template is being used at a given time step?

Jennifer M Adams jadams21 at gmu.edu
Thu Aug 30 21:14:10 EDT 2018


Hi, Bob — 
You can use the general string substitution %ch in your template and then add CHSUB entries to specify exactly which time indexes map to particular string sequences in each filename. An example is below. These doc  pages should explain in more detail:
http://cola.gmu.edu/grads/gadoc/templates.html
http://cola.gmu.edu/grads/gadoc/descriptorfile.html#CHSUB

DSET /path/ts_Amon_GFDL-CM2p1_historical_r1i1p1_%ch.nc
OPTIONS template
TDEF time 420 linear 01jan1861 1mo
CHSUB 1 60 186101-186512
CHSUB 61 120 186601-187012
CHSUB 121 180 187101-187512
CHSUB 181 240 187601-188012
CHSUB 241 300 188101-188512
CHSUB 301 360 188601-189012
CHSUB 361 420 189101-189512
—Jennifer

> On Aug 30, 2018, at 11:05 AM, Robert Kuligowski <bob.kuligowski at noaa.gov> wrote:
> 
> All,
> 
>     I'm using a template to plot a time series of files which, sadly, do not have the exact same time interval between them. Since there's no way I know of to get TDEF to handle non-constant time intervals, I tried a kludge of using the query command in the script to grab the time stamp from the names of the individual files in the template as they are used. However, I can't seem to find a way to make the query command do this; 'query file' just returns the name of the file template with the wildcards.
> 
>     Any thoughts on a reasonably elegant way forward?  Thanks!
> 
> Cheers,
> 
> -- 
> Bob Kuligowski, Ph.D.
> Meteorologist
> NOAA/NESDIS/Center for Satellite Applications and Research (STAR)
> 
> Mailing Address:
> National Oceanic and Atmospheric Administration
> NESDIS STAR/SMCD
> Bob Kuligowski
> NCWCP E/RA2
> 5830 University Research Court
> 2nd Floor, Office #2828
> College Park, MD 20740-3818
> 
> Phone:  (301) 683-3593
> Fax  :  (301) 683-3616
> 
> http://secure-web.cisco.com/1kasKwGQUloNW7-oaovh5VKEZXeUojExtAV-kA_o09sn9poDcZorZdym9KvAnYcrmltnm2JsonGayNrDcz9lWiLFrids1bJ_CYPwHsHYhWwgSCIBkc__dxaNWhqNjnbq9daTAypKg6h3lc7JZejUYkrsGm5MbLKYOyyD_GacXZKHV23ScXdHEseKoK4yVET27IUHe5pDh8KrugPF73cb4EmC8Nox6hxbw2cRwrZhExB70IerSJqyxhrjkkoRCpMP8XblrGiqIH-S3s67SsBWRCFYcxSG5GEUoq9Ya9p1QFocuznhmvE4yfrecpwkafUABFHNSa9UiS_PWNjDhNK0menXBYE-eQOwPgAr8GbkTt1mh9pnF-wIIYny2NhgoBEJ70gGcww8x4cE-55D6CJrU5ijW4bD1OGj0zaAcisnna14l11VRg1bXHMBR9meYev5mH4WBN7dE4JUacd5HBoAgtg/http%3A%2F%2Fwww.star.nesdis.noaa.gov%2Fstar%2FKuligowski_B.php
> http://secure-web.cisco.com/1w7Qf0N7ZMl2U1U8c9uMLy5Vm5-D10Y68c61c75mK32zJtnLNPSRHo7PR3sLQKIRkTpQ7llZNnqE74z9dZ_SuJG_yGpEsFv42bfsTmgPuuY4tiu8Wtf0xBnua5IwBpU9jYLcR1N2qgfQ0Xn0wJlG47tUYSMehWIrUs7wSX-3NbcCup3Gb1AzkmjaJC__SJCagZXIaX1GJyZAs_pTZO8n_-rDi6-0wNoIYjbV-Ro7UFs8s_9N-gX5QBkdkKcSmvIl5U1aJjhWZz1hO8ER3R8Hzb0eRHwE1WH06Wwkqr3y3rvPtpFAemtmaKSUgo8o5VzkQYOM0XYG4F5IdxYl1jYUjr-dArgAyjX22WYcETwUrvQSf01UZ4geZrdYInv5dWEtYcQ77kLjmyeg5TIjtG-O8Ft4QrhC9SIW4A-G2_8S-wAv3DO0iVj5rUOfNb0gKanZRRNB-tl9EPPI3uCGJygDozg/http%3A%2F%2Fwww.star.nesdis.noaa.gov%2Fsmcd%2Femb%2Fff%2Findex.php
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1l2jscsuTpnj8JXJ5m9LqKMQ-_jPn7GLvNQEUsVqpvVaWmcJQ8ceEtpHHZ6rd01imEVZLMU_G-S9seqyP3ftSAHrbLRZ0cYORwozKV1Viytrn9jwxAO9BmglO85KbWjA7xCNPM6TCw5H9C25B5qpndKARV8hf2qQEG-1JffvUDybTk8ldjZMv6uZOo0SVEier-iPxJPZW8IhmR6FokC592us-ShG6eRWx44d_DlFMrnWXYXxKwTVXB7EfkfT-WE4lOTi-lLCOgXESyprfE321lfpRGQNGpPay9biIQejW6qtgo0Hj4VSqmCIe63vW9I9j4atD8s-iAXt0QnPq3ooZu2YqIm-7z9hbPpBN7WgRkix4CEH61RXHScPTy1_Ghm8ASIdBc0BH6CjcU6qS_z1ZqYfK0Juyq56AzH75iWleTkxjpgOGiPnjp4kFrCIWoU9i/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr

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






More information about the gradsusr mailing list