<p style="border:0; padding:0; margin:0; font-family:'돋움'; font-size:10pt; cursor: text;"><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"> <font face="Tahoma">Hello, </font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma"></font>&nbsp;</p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma">A variable for coordinate information&nbsp;doesn't need addtional metadata.</font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma">So I recommand remove paragraphs below and rerun your script.</font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma"></font>&nbsp;</p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Courier New">&nbsp; lon!0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "lon"&nbsp; </font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma"><font face="Courier New">&nbsp; level&amp;level&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = level</font><br>&nbsp;</font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: 돋움; font-size: 10pt; cursor: text;"><font face="Tahoma">Cheers,</font></p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: Tahoma; font-size: 10pt; cursor: text;">&nbsp;</p><p style="margin: 0px; padding: 0px; border: 0px currentColor; line-height: 1.5; font-family: Tahoma; font-size: 10pt; cursor: text;">Changhwan Kim.</p><!--korea.kr mail orgin start--><div style="color: rgb(0, 102, 204); font-family: 돋움,arial; font-size: 12px; font-weight: bold; margin-top: 30px; margin-left: 0.8em;">--------- 원본 메일 ---------</div><blockquote style="margin: 0pt 0pt 0pt 0.8em; padding-left: 1em; font-size: 12px; border-left-width: 2px; border-left-style: solid;"><div style="line-height: 1.5; font-family: arial,돋움;"><b>보낸사람</b> : "김가은" &lt;gaeun.kim0921@gmail.com&gt;<br><b>받는사람</b> :  &lt;ncl-talk@ucar.edu&gt;<br><b>받은날짜</b> : 2017년 Mar 14일(Tue) 14:42:10<br><b>제목</b> : [ncl-talk] A binary file contains 6 variables(3-dimensional)<br><!-- original content --><div style="margin-top: 5px;"><div dir="ltr">Hello, world!<div><br></div><div>I want to draw several plots with data which is a binary file contains 6 variables(3-dimensional) and made like below:</div><div><br></div><div>open(2,file=ofile,status='<wbr>unknown',form='unformatted')<br></div><div><div>&nbsp; &nbsp; &nbsp;write(2) (((hgtm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; &nbsp; &nbsp;write(2) (((ugrdm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; &nbsp; &nbsp;write(2) (((vgrdm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; &nbsp; &nbsp;write(2) (((vvelm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; &nbsp; &nbsp;write(2) (((tmpm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; &nbsp; &nbsp;write(2) (((rhm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div>&nbsp; close(2)</div></div><div><br></div><div>And then I wrote&nbsp;a NCL script to read and plot them.&nbsp;</div><div>Here is the prob:&nbsp;<br>fatal:No coordinate variable exists for dimension (level) in variable (hgt)</div><div><br></div><div>My script:</div><div><br></div><div><div>&nbsp; nlon = 659</div><div>&nbsp; nlat = 539</div><div>&nbsp; nlev = 17</div></div><div><br></div><div><div>&nbsp; dims &nbsp;= (/nlat,nlon,nlev/)</div><div>&nbsp; lat &nbsp; &nbsp; &nbsp;= fspan(slat,elat,nlat)</div><div>&nbsp; lon &nbsp; &nbsp; &nbsp;= fspan(slon,elon,nlon)</div><div>&nbsp;level = (/1000.,925.,850.,700.,600.,<wbr>500.,400.,300.,\</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;250.,200.,150.,100.,70.,50.,<wbr>30.,20.,10./)</div><div><br></div><div>&nbsp; hgt &nbsp; &nbsp; &nbsp; = fbindirread(path_prs, 0, dims, "float")</div><div>&nbsp; u &nbsp; &nbsp; &nbsp; = fbindirread(path_prs, 1, dims, "float")</div><div>&nbsp; v &nbsp; &nbsp; &nbsp; = fbindirread(path_prs, 2, dims, "float")</div><div>&nbsp; vvel &nbsp; &nbsp; &nbsp; = fbindirread(path_prs, 3, dims, "float")</div><div>&nbsp; temp &nbsp; &nbsp; &nbsp; = fbindirread(path_prs, 4, dims, "float")</div><div>&nbsp; rh &nbsp; &nbsp; &nbsp;= fbindirread(path_prs, 5, dims, "float")</div></div><div><br></div><div><div>&nbsp; lon!0 &nbsp; &nbsp; &nbsp; &nbsp; = "lon"</div><div>&nbsp; lon@long_name = "lon"</div><div>&nbsp; lon@units &nbsp; &nbsp; = "degrees_east"</div><div>&nbsp; lon&amp;lon &nbsp; &nbsp; &nbsp; = lon</div><div><br></div><div>&nbsp; lat!0 &nbsp; &nbsp; &nbsp; &nbsp; = "lat"</div><div>&nbsp; lat@long_name = "lat"</div><div>&nbsp; lat@units &nbsp; &nbsp; = "degrees_north"</div><div>&nbsp; lat&amp;lat &nbsp; &nbsp; &nbsp; = lat</div><div><br></div><div>&nbsp; level!0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "level"</div><div>&nbsp; level@units &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "hPa"</div><div>&nbsp; level@long_name &nbsp; &nbsp; &nbsp; &nbsp; = "isobaric_surface"</div><div>&nbsp; level&amp;level &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = level</div><div><br></div><div>hgt!0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "level"</div><div>hgt!1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "lat"</div><div>hgt!2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "lon"</div><div>hgt&amp;level &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = level &lt;--- this one makes error!</div><div>hgt&amp;lat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = lat</div><div>hgt&amp;lon &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = lon</div><div>hgt&amp;level@units &nbsp; &nbsp; &nbsp; &nbsp; = "hPa"</div><div>hgt&amp;lat@units &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "degrees_north"</div><div>hgt&amp;lon@units &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "degrees_east"</div><div>hgt@units &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "gpm"</div><div>hgt@long_name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "geopotential height"</div></div><div><br></div><div><br></div><div><br></div></div>
</div><!-- original content --><br></div></blockquote></p>
<img src='http://kmmbox.korea.kr/checkread/MTcwNTM4MTQ=/bmNsLXRhbGtAdWNhci5lZHU=/Mg==/MA==/' width='1px' height='1px' />