<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> </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 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> </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"> lon!0 = "lon" </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"> ...</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"> level&level = level</font><br> </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;"> </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> : "김가은" <gaeun.kim0921@gmail.com><br><b>받는사람</b> : <ncl-talk@ucar.edu><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> write(2) (((hgtm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> write(2) (((ugrdm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> write(2) (((vgrdm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> write(2) (((vvelm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> write(2) (((tmpm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> write(2) (((rhm(i,j,k),i=1,imx),j=1,<wbr>jmx),k=1,lx)</div><div> close(2)</div></div><div><br></div><div>And then I wrote a NCL script to read and plot them. </div><div>Here is the prob: <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> nlon = 659</div><div> nlat = 539</div><div> nlev = 17</div></div><div><br></div><div><div> dims = (/nlat,nlon,nlev/)</div><div> lat = fspan(slat,elat,nlat)</div><div> lon = fspan(slon,elon,nlon)</div><div> level = (/1000.,925.,850.,700.,600.,<wbr>500.,400.,300.,\</div><div> 250.,200.,150.,100.,70.,50.,<wbr>30.,20.,10./)</div><div><br></div><div> hgt = fbindirread(path_prs, 0, dims, "float")</div><div> u = fbindirread(path_prs, 1, dims, "float")</div><div> v = fbindirread(path_prs, 2, dims, "float")</div><div> vvel = fbindirread(path_prs, 3, dims, "float")</div><div> temp = fbindirread(path_prs, 4, dims, "float")</div><div> rh = fbindirread(path_prs, 5, dims, "float")</div></div><div><br></div><div><div> lon!0 = "lon"</div><div> lon@long_name = "lon"</div><div> lon@units = "degrees_east"</div><div> lon&lon = lon</div><div><br></div><div> lat!0 = "lat"</div><div> lat@long_name = "lat"</div><div> lat@units = "degrees_north"</div><div> lat&lat = lat</div><div><br></div><div> level!0 = "level"</div><div> level@units = "hPa"</div><div> level@long_name = "isobaric_surface"</div><div> level&level = level</div><div><br></div><div>hgt!0 = "level"</div><div>hgt!1 = "lat"</div><div>hgt!2 = "lon"</div><div>hgt&level = level <--- this one makes error!</div><div>hgt&lat = lat</div><div>hgt&lon = lon</div><div>hgt&level@units = "hPa"</div><div>hgt&lat@units = "degrees_north"</div><div>hgt&lon@units = "degrees_east"</div><div>hgt@units = "gpm"</div><div>hgt@long_name = "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' />