[gradsusr] Plot first variable in ctl file when name is unknown

Jennifer M Adams jadams21 at gmu.edu
Mon Jan 15 16:20:55 EST 2018


You could also use the scripting language to parse the output from ‘q file’ or ‘q vars’ to get the names of the variables in an opened file. 
—Jennifer

> On Jan 15, 2018, at 5:51 AM, Davide Sacchetti <davide.sacchetti at arpal.gov.it> wrote:
> 
> if you don't mind the variable try: display lon
> otherwise you have to read file ctl ...
> Davide
> 
> On Fri, 2018-01-12 at 21:02 +0000, Brian Gaze wrote:
>> Hi,
>> 
>> Is there a way of plotting the first (or only) variable in a ctl file
>> using a .gs if you don't know its name?  
>> 
>> For example, if the ctl contains one variable called var0_0_qqqccc is
>> there a wildcard option like.. 
>> 
>> d * 
>> 
>> Alternatively can the variable be renamed when the .ctl is created
>> using alt_g2ctl.pl?
>> 
>> I know there is alt_g2ctl.pl -sub "A" "B" but I haven't been able to
>> work out a regex which would do something like...
>> 
>> alt_g2ctl.pl -sub "*.*" "Variable1" 
>> 
>> 
>> Thanks
>> 
>> Brian
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://secure-web.cisco.com/1f_xTJrL3ACwDMucNaxZyFVHLhEPYZ7lr8JcSIYeKVe3L-YTZWqv8GRvtiIcPFEAUSjK6c52AyeCuNIctFE-25y5Fnlshs1brU_D7Kay7KApEgYZoEJY0Hek8_FeJ4LeKEbNI7oaUbQESgDvl4xUFJtEnIDwx4ybfWAXRdb0jsuQHB_V_wI7NP1CLtVIxy4Sa5NRH8nnghp-hpz7pGF3Pd2096ACYLYc119K77ZjcbVi9OUnA6GZMwkHvOOZ-f8cQ-J7vFaMNU1iOPlzJf5fN8Qr2YHGdYJz2OZQpoCQtKCiC1Jj6SWwuNs_-wDcp1Vlgb_CoRL5vMJVDL45x6ykGdti5DxGmYLZKC0_rBuxobvtSRvEHpTA-lPTIOihwlsWCWSAZnM4d4_tOVOVScJB1oloMmhZZRcm0T_L7JWdRkq6jkLor_TJoX9f9yy3HNOK4/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1f_xTJrL3ACwDMucNaxZyFVHLhEPYZ7lr8JcSIYeKVe3L-YTZWqv8GRvtiIcPFEAUSjK6c52AyeCuNIctFE-25y5Fnlshs1brU_D7Kay7KApEgYZoEJY0Hek8_FeJ4LeKEbNI7oaUbQESgDvl4xUFJtEnIDwx4ybfWAXRdb0jsuQHB_V_wI7NP1CLtVIxy4Sa5NRH8nnghp-hpz7pGF3Pd2096ACYLYc119K77ZjcbVi9OUnA6GZMwkHvOOZ-f8cQ-J7vFaMNU1iOPlzJf5fN8Qr2YHGdYJz2OZQpoCQtKCiC1Jj6SWwuNs_-wDcp1Vlgb_CoRL5vMJVDL45x6ykGdti5DxGmYLZKC0_rBuxobvtSRvEHpTA-lPTIOihwlsWCWSAZnM4d4_tOVOVScJB1oloMmhZZRcm0T_L7JWdRkq6jkLor_TJoX9f9yy3HNOK4/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