<font size="4"><font face="
Times New Roman
">Hello,</font></font><br><font size="4"><font face="
Times New Roman
">I am looking for a way to <font face="
Times New Roman
"><font face="
Times New Roman
">call a<font face="
Times New Roman
"> series of variables</font></font></font> through their names (string) in NCL<font face="
Times New Roman
">.</font></font></font><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
">These variables are of different sizes,so <font face="
Times New Roman
"><font face="
Times New Roman
">they</font> can't be set as an array iz(k) of<font face="
Times New Roman
"> fixed size. <font face="
Times New Roman
"> <font face="
Times New Roman
">A<font face="
Times New Roman
">nd <font face="
Times New Roman
">I</font></font></font> <font face="
Times New Roman
">don't know how to do loop <font face="
Times New Roman
">and </font></font></font></font></font></font></font></font></font></font></font></font></font><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
">some other operation<font face="
Times New Roman
">s </font></font></font></font></font></font></font></font></font>based on these similar names<font face="
Times New Roman
"> <font face="
Times New Roman
">since <font face="
Times New Roman
">(<font face="
Times New Roman
">"iz"+<font face="
Times New Roman
">i) can't be identified as a<font face="
Times New Roman
"> variable</font></font></font></font></font></font></font></font></font></font></font></font> in</font> the following script</font></font></font></font></font>.<font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"> </font></font></font></font></font></font><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"><font size="4"><font face="
Times New Roman
"><font face="
Times New Roman
"> </font>Can anyone help?</font></font></font><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><font face="
Times New Roman
"><br>.................................................<font face="
Times New Roman
">....................................................................</font><br></font></font></font></font></font> <br>fieldf(0,:) = asciiread(fi,-1,"<font face="
Times New Roman
">float</font>")<br> iz1=ind(fieldf(0,:).ge.0.and.fieldf(0,:).lt.1.5) <br> iz2=ind(fieldf(0,:).ge.1.and.fieldf(0,:).lt.2.2) <br> iz3=ind(fieldf(0,:).ge.2.<font face="
Times New Roman
">2</font>.and.fieldf(0,:).lt.3)<br> iz4=ind(fieldf(0,:).ge.3.and.fieldf(0,:).lt.4.2) <br> iz5=ind(fieldf(0,:).ge.4.2<font face="
Times New Roman
">.</font>and.fieldf(0,:).lt.5.6) <br> iz6=ind(fieldf(0,:).ge.5.6.and.fieldf(0,:).lt.6) <br> iz7=ind(fieldf(0,:).ge.6.and.fieldf(0,:).lt.7) <br> iz8=ind(fieldf(0,:).ge.7.and.fieldf(0,:).lt.8) <br> iz9=ind(fieldf(0,:).ge.8.and.fieldf(0,:).lt.9.1) <br> iz10=ind(fieldf(0,:).ge.9.<font face="
Times New Roman
">1<font face="
Times New Roman
">.</font></font>and.fieldf(0,:).lt.10) <br> iz11=ind(fieldf(0,:).ge.10.and.fieldf(0,:).lt.11) <br> iz12=ind(fieldf(0,:).ge.11.and.fieldf(0,:).lt.12) <br> iz13=ind(fieldf(0,:).ge.12.and.fieldf(0,:).lt.13) <br><br> do i=<font face="
Times New Roman
">1</font>,1<font face="
Times New Roman
">3</font><br> print(dimsizes("iz"+i))<br> end do<br><font face="
Times New Roman
">..............................................................................</font></font></font><font size="4"><font face="
Times New Roman
">......................<br> <br>Thanks very much,<br> <br><font face="
Times New Roman
">Zoey</font></font></font><br>