[ncl-talk] Problem with str_match

TYTECA Sophie sophie.tyteca at meteo.fr
Mon Mar 9 09:27:08 MDT 2015


Hello, 

I have a problem with str_match function and the NCL last version . 
the result gives "missing" in my string 

Here my machine: Linux x86_64 GNU/Linux 

ncl 
Copyright (C) 1995-2014 - All Rights Reserved 
University Corporation for Atmospheric Research 
NCAR Command Language Version 6.2.1 
The use of this software is governed by a License Agreement. 
See http://www.ncl.ucar.edu/ for more details. 
ncl 0> varname="rntcre" 
ncl 1> a=str_match(varname,"r[lsn][ats]cre") 
ncl 2> print (a) 

Variable: a 
Type: string 
Total Size: 8 bytes 
1 values 
Number of Dimensions: 1 
Dimensions and sizes: [1] 
Coordinates: 
Number Of Attributes: 1 
_FillValue : missing 
(0) missing 

this function works with NCL previous version: 

ncl 
Copyright (C) 1995-2012 - All Rights Reserved 
University Corporation for Atmospheric Research 
NCAR Command Language Version 6.1.0 
The use of this software is governed by a License Agreement. 
See http://www.ncl.ucar.edu/ for more details. 
ncl 0> varname="rntcre" 
ncl 1> a=str_match(varname,"r[lsn][ats]cre") 
ncl 2> print (a) 

Variable: a 
Type: string 
Total Size: 8 bytes 
1 values 
Number of Dimensions: 1 
Dimensions and sizes: [1] 
Coordinates: 
(0) rntcre 

Could you help me, please? 
Thank you very much 

----- Météo-France ----- 
TYTECA SOPHIE 
CNRM/GMGEC/VDR 
sophie.tyteca at meteo.fr 
Fixe : +33 561079379 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150309/473b2ca3/attachment.html 


More information about the ncl-talk mailing list