<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sakis,<br>
<br>
you missed to assign the lat and lon data to the variable CT, hence
<br>
NCL do not know the coordinate variable lat and lon and its units <br>
(that's what the error message is telling you). <br>
<br>
<tt> lat = fspan(30,60,512)</tt><tt><br>
</tt><tt> lon = fspan(10,50,724)</tt><tt><br>
</tt><tt> CT!0 = "lat"</tt><tt> ;-- set name of
CT dimension 0<br>
</tt><tt> CT!1 = "lon"</tt><tt> ;-- set name of
CT dimension 1<br>
</tt><tt><b> CT&lat = lat</b></tt><tt><b>
;-- assign lat array to CT<br>
</b></tt><tt><b> CT&lon = lon ;-- assign
lon array to CT<br>
</b></tt><tt></tt><tt> CT&lat@units = "degrees_north"</tt><tt>
;-- set the units of the named coordinate lat<br>
</tt><tt> CT&lon@units = "degrees_east"</tt><tt> ;-- set the
units of the named coordinate lon</tt><tt><br>
</tt><tt><br>
</tt><tt><br>
</tt>Bye,<br>
Karin<br>
<br>
<br>
<div class="moz-cite-prefix">Am 17.02.15 um 11:24 schrieb Athanasios
Karagiannidis:<br>
</div>
<blockquote cite="mid:DUB121-W130D118238D248CE1AF2E1C82F0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<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
Physicist, PhD Meteorology and Climatology
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:thankar@live.com">thankar@live.com</a></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a>
</pre>
</blockquote>
</body>
</html>