<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello to all.<br><br>I'm quite new to ncl, so I'm really sorry if i bother you with something trivial, but i can not find a way to solve my problem.<br><br>I'm trying to visualize the vars of an h5 file representing for example cloud top heigh over an area.<br><br>The print VarSummary yields the following.<br><br><b><i>ncl 3> printVarSummary(CT) <br><br>Variable: CT<br>Type: ubyte<br>Total Size: 370688 bytes<br> 370688 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [DIM_000 | 512] x [DIM_001 | 724]<br>Coordinates: <br>Number Of Attributes: 11<br> CLASS : IMAGE_INDEXED<br> ID : CTTH_HEIGHTED<br> IMAGE_COLORMODEL : RGBH_HEIGHTED<br> IMAGE_SUBCLASS : IMAGE_INDEXED<br> IMAGE_VERSION : 1.0GE_INDEXED<br> N_COLS : 724<br> N_LINES : 512<br> OFFSET : -2000<br> PALETTE : ��8�3<br> PRODUCT : CTTHE_INDEXED<br> SCALING_FACTOR : 200<br></i></b><br>It is clear that there is no lat-lon info.<br><br>The script I'm trying to use is <br><br><i><b>begin<br>cdf_file = addfile("SAFNWC_MSG2_CTTH_200812121100_Greece______.h5","r")<br>CT = cdf_file->CTTH_HEIGHT(:,:)<br><br> res = True<br><br><br><br>lat = fspan(30, 60, 512)<br>lon = fspan(10, 50, 724)<br> CT!0="lat"<br> CT!1="lon"<br> CT&lat@units="degrees_north"<br> CT&lon@units="degrees_east"<br><br><br> res@tiMainString = "Default Color" ; main title<br> res@cnFillOn = True ; turn on color fill<br><br><br>xwks = gsn_open_wks("pdf","CloudTops")<br>plot = gsn_csm_contour_map(xwks,CT,res)<br>end<br></b></i><br>When i execute i get <br><br><i><b>fatal:No coordinate variable exists for dimension (lat) in variable (CT)<br>fatal:(lat) is not coordinate variable in variable(CT).<br>fatal:["Execute.c":8578]:Execute: Error occurred at or near line 13 in file TestScript_2.ncl</b></i><br><br>Can someone help me with this? I also tried <br>CT!DIM_000="lat"<br>CT!DIM_001="lon"<br>It did not work either!<br><br><br>Sakis<br><br><pre>Athanasios F. Karagiannidis<br>Physicist, PhD Meteorology and Climatology<br>E-mail: thankar@live.com</pre>                                            </div></body>
</html>