<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I want to plot the GRAUPEL WATER CONTENT at a LAT/LON with height. So Y axis will be the HEIGHT and on X axis it will Graupel&nbsp;</span></div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><span>But the document of&nbsp;2A12 (<a href="http://pps.gsfc.nasa.gov/Documents/filespec.TRMM.V7.pdf)%20says">http://pps.gsfc.nasa.gov/Documents/filespec.TRMM.V7.pdf)%20says</a> that&nbsp;The information ablout this variable is CONTAINED in the two variables (Pg 119)</span></div><span><div align="LEFT"><font face="CMSL10" size="2"><font face="CMSL10" size="2">7.5 2A12 - TMI Profiling </font></font><font face="CMR10" size="2"><font face="CMR10" size="2">119</font></font></div><div style="color: rgb(0, 0, 0); font-family:
 times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><font face="CMR10" size="2"><font face="CMR10" size="2">
<br></font></font></div><font face="CMTT12"><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div align="LEFT">S = species(1-6)</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">1 = cloud water content</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">2 = rain water content</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">3 = cloud ice content</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">4 = snow water content</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">5 = graupel water content</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">6 = latent heat</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">F = freezingHeightIndex</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">C = clusterNumber</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">In a Fortran program,</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">Profile Value = clusterScale * cluster(S,F,L,C)</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div align="LEFT">In a C program,</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">
<br></div><div>Profile Value = clusterScale * cluster[C-1][L-1][F-1][S-1]</div></font><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div></span><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">The two variables CLUSTER SCALE </div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">&nbsp;float clusterScale ( nscan, npixel, nspecies )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hdf_name :&nbsp;&nbsp;&nbsp;&nbsp; clusterScale</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div style="color: rgb(0, 0, 0);
 font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">AND CLUSTER</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">&nbsp; float cluster ( ncluster, nlayer, nfindex, nspecies )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hdf_name :&nbsp;&nbsp;&nbsp;&nbsp;
 cluster<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div style="color: rgb(0, 0, 0);
 font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">are of different dimensions. </div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">I donot know how to proceed further with this. <br></div><div></div><div>&nbsp;</div><div>Geeta. </div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, 2 September 2014 4:45 PM, Alessandra Giannini &lt;alesall@iri.columbia.edu&gt; wrote:<br> </font> </div>  <br><br> <div><br clear="none">you need to continue to edit your script to adapt to your specific need…<br
 clear="none">What is the variable that&nbsp; you want to plot? If it's not called "latentHeat" what is it called?<br clear="none">Then substitute just like you did for lat and lon…<br clear="none"><br clear="none"><br clear="none"><br clear="none"><div id="yqtfd09556"><br clear="none">On Sep 2, 2014, at 7:10 AM, Geeta Geeta &lt;<a href="mailto:geetag54@yahoo.com" shape="rect" ymailto="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt; wrote:<br clear="none"><br clear="none">&gt;&nbsp; &nbsp; Hi<br clear="none">&gt; I have correctec the lines 34 and 35. of my file.<br clear="none">&gt; <br clear="none">&gt; 1 ;Reading HDF4-SDS files<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  2 ;*********** Load Libraries ************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  3 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  4 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br
 clear="none">&gt;&nbsp; &nbsp; &nbsp;  5 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  6 ;**************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  7 begin<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  8 ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp;  9 ; User Input<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 10 ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 11&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; INPUT<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 12&nbsp; &nbsp; diri&nbsp; &nbsp; = "./"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; input directory<br
 clear="none">&gt;&nbsp; &nbsp; &nbsp; 13&nbsp; &nbsp; fili&nbsp; &nbsp; = "2A12.20100702.71931.7.HDF"&nbsp; &nbsp; &nbsp;  ;&nbsp; &nbsp; &nbsp;  file<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 14&nbsp; &nbsp; var&nbsp; &nbsp;  = "latentHeat"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; desired variable<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 15<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 16&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; OUTPUT<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 17&nbsp; &nbsp; PLOT&nbsp; &nbsp; = True&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; create a plot [?]<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 18&nbsp; &nbsp; pltDir&nbsp; = "./"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;
 directory for plot output<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 19&nbsp;  ;pltName = "2A12.100702.71931.6"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; plot name<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 20&nbsp; &nbsp; pltName = "hdf4sds"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; plot name<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 21&nbsp; &nbsp; pltType = "ps"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; ps, pdf, x11, png [5.2.0]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br
 clear="none">&gt;&nbsp; &nbsp; &nbsp; 22 ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 23 ; End User Input<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 24 ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 25 ; Read hdf<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 26 ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 27<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 28&nbsp; &nbsp; f&nbsp; &nbsp; &nbsp; = addfile (diri+fili, "r")&nbsp; &nbsp; &nbsp; &nbsp; ; reading inputfile<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 29&nbsp;  ;print(f)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 30<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 31&nbsp; &nbsp; lat&nbsp; = f-&gt;Latitude(:,:)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; (scan, pixel)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 32&nbsp; &nbsp;
 lon&nbsp; = f-&gt;Longitude(:,:)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 33<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 34&nbsp; &nbsp; <a href="mailto:lat@units" shape="rect" ymailto="mailto:lat@units">lat@units</a> = "degrees_north"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; add units<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 35&nbsp; &nbsp; <a href="mailto:lon@units" shape="rect" ymailto="mailto:lon@units">lon@units</a> = "degrees_east"<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 36<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 37&nbsp;  printMinMax(lat, True)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 38&nbsp;  printMinMax(lon, True)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 39<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 40&nbsp; &nbsp; xs&nbsp; &nbsp;  = f-&gt;$var$&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; ( scan, pixel, layer )<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 41&nbsp; &nbsp; <a
 href="mailto:xs@_FillValue" shape="rect" ymailto="mailto:xs@_FillValue">xs@_FillValue</a> = inttoshort( -9999 )&nbsp; &nbsp;  ; visually look at file/data<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 42&nbsp; &nbsp; <a href="mailto:xs@long_name" shape="rect" ymailto="mailto:xs@long_name">xs@long_name</a>&nbsp; = <a href="mailto:xs@hdf_name" shape="rect" ymailto="mailto:xs@hdf_name">xs@hdf_name</a><br clear="none">&gt;&nbsp; &nbsp; &nbsp; 43&nbsp;  ;printVarSummary(xs)<br clear="none">&gt;&nbsp; &nbsp; &nbsp; 44&nbsp;  ;printMinMax(xs, True)<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; Now when I run this&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br clear="none">&gt; I get following error<br clear="none">&gt; bash-3.2$ ncl hdf4sds_6.ncl<br clear="none">&gt;&nbsp; Copyright (C) 1995-2007 - All Rights Reserved<br clear="none">&gt;&nbsp; University Corporation for Atmospheric Research<br clear="none">&gt;&nbsp;
 NCAR Command Language Version 5.0.0<br clear="none">&gt;&nbsp; The use of this software is governed by a License Agreement.<br clear="none">&gt;&nbsp; See <a href="http://www.ncl.ucar.edu/" target="_blank" shape="rect">http://www.ncl.ucar.edu/</a>for more details.<br clear="none">&gt; (0)<br clear="none">&gt; (0)&nbsp; &nbsp;  min=-39.1053&nbsp;  max=39.0529<br clear="none">&gt; (0)<br clear="none">&gt; (0)&nbsp; &nbsp;  min=-179.999&nbsp;  max=180<br clear="none">&gt; fatal:Either file (f) isn't defined or variable (latentHeat) is not a variable in the file<br clear="none">&gt; fatal:Execute: Error occurred at or near line 40 in file hdf4sds_6.ncl<br clear="none">&gt;&nbsp; <br clear="none">&gt; bash-3.2$<br clear="none">&gt; <br clear="none">&gt; I am beginner to NCL. Started a week before as I have to plot the Hydrometeor profile. Kindly guide further.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br clear="none">&gt; <br clear="none">&gt;&nbsp; <br clear="none">&gt; Geeta.<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; On Tuesday, 2 September 2014 4:28 PM, Geeta Geeta &lt;<a href="mailto:geetag54@yahoo.com" shape="rect" ymailto="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt; wrote:<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; Thanks.<br clear="none">&gt; I corrected my mistake and this is how the NCL file looks like now.<br clear="none">&gt; ;Reading HDF4-SDS files<br clear="none">&gt; ;*********** Load Libraries ************************************<br clear="none">&gt; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br clear="none">&gt; load
 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br clear="none">&gt; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br clear="none">&gt; ;**************************************************************<br clear="none">&gt; begin<br clear="none">&gt; ;***************************************************************<br clear="none">&gt; ; User Input<br clear="none">&gt; ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; INPUT<br clear="none">&gt;&nbsp; &nbsp; diri&nbsp; &nbsp; = "./"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; input directory<br clear="none">&gt;&nbsp; &nbsp; fili&nbsp; &nbsp; = "2A12.20100702.71931.7.HDF"&nbsp; &nbsp; &nbsp;  ;&nbsp; &nbsp; &nbsp;  file<br
 clear="none">&gt;&nbsp; &nbsp; var&nbsp; &nbsp;  = "latentHeat"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; desired variable<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; OUTPUT<br clear="none">&gt;&nbsp; &nbsp; PLOT&nbsp; &nbsp; = True&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; create a plot [?]<br clear="none">&gt;&nbsp; &nbsp; pltDir&nbsp; = "./"&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; directory for plot output<br clear="none">&gt;&nbsp;  ;pltName = "2A12.100702.71931.6"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; plot name<br clear="none">&gt;&nbsp; &nbsp; pltName = "hdf4sds"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ; plot name<br clear="none">&gt;&nbsp; &nbsp; pltType = "ps"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; ps, pdf, x11, png [5.2.0]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br clear="none">&gt;
 ;***************************************************************<br clear="none">&gt; ; End User Input<br clear="none">&gt; ;***************************************************************<br clear="none">&gt; ; Read hdf<br clear="none">&gt; ;***************************************************************<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br clear="none">&gt; "hdf4sds_6.ncl" 188 lines, 6725 charac<br clear="none">&gt;&nbsp; <br clear="none">&gt; I run NCL but got following message.<br clear="none">&gt; bash-3.2$ ncl hdf4sds_6.ncl<br clear="none">&gt;&nbsp; Copyright (C) 1995-2007 - All Rights Reserved<br
 clear="none">&gt;&nbsp; University Corporation for Atmospheric Research<br clear="none">&gt;&nbsp; NCAR Command Language Version 5.0.0<br clear="none">&gt;&nbsp; The use of this software is governed by a License Agreement.<br clear="none">&gt;&nbsp; See <a href="http://www.ncl.ucar.edu/" target="_blank" shape="rect">http://www.ncl.ucar.edu/</a>for more details.<br clear="none">&gt; fatal:Either file (f) isn't defined or variable (geolocation) is not a variable in the file<br clear="none">&gt; fatal:Execute: Error occurred at or near line 31 in file hdf4sds_6.ncl<br clear="none">&gt;&nbsp; <br clear="none">&gt; bash-3.2$<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; I am attaching the ncl file for reference.<br clear="none">&gt; <br clear="none">&gt; This is the header information that I extracted using<br clear="none">&gt; bash-3.2$ ncl_filedump 2A12.20100702.71931.7.HDF &gt;header2010<br clear="none">&gt; <br clear="none">&gt; I am
 attaching the header2010 as well. there is NO geolocation Variable in that. So what I should DO.<br clear="none">&gt; <br clear="none">&gt; Geeta.<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; On Tuesday, 2 September 2014 3:57 PM, Alessandra Giannini &lt;<a href="mailto:alesall@iri.columbia.edu" shape="rect" ymailto="mailto:alesall@iri.columbia.edu">alesall@iri.columbia.edu</a>&gt; wrote:<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; Hi Geeta, <br clear="none">&gt; <br clear="none">&gt; NCL is telling you what may be wrong…<br clear="none">&gt; <br clear="none">&gt; Either your filename is slightly off: <br clear="none">&gt; <br clear="none">&gt; in your script you call a file by the name "2A12.20100702.71931.6.HDF", but when you list, you have a file with a 7 at the end, instead of a 6: "2A12.20100702.71931.7.HDF"<br clear="none">&gt; <br clear="none">&gt; Or there is no variable called
 "geolocation" in the file you are reading from.<br clear="none">&gt; <br clear="none">&gt; What are latitude and longitude called in the file?<br clear="none">&gt; <br clear="none">&gt; best, alessandra<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; -- <br clear="none">&gt; Alessandra Giannini<br clear="none">&gt; IRI for Climate and Society - The Earth Institute at Columbia University<br clear="none">&gt; P.O. Box 1000, Palisades NY 10964-8000<br clear="none">&gt; phone/fax: +1 845 680-4473/4864 - email: <a href="mailto:alesall@iri.columbia.edu" shape="rect" ymailto="mailto:alesall@iri.columbia.edu">alesall@iri.columbia.edu</a><br clear="none">&gt; <br clear="none">&gt; On Sep 2, 2014, at 6:21 AM, Geeta Geeta &lt;<a href="mailto:geetag54@yahoo.com" shape="rect" ymailto="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt; wrote:<br clear="none">&gt; <br
 clear="none">&gt; &gt; Hi .<br clear="none">&gt; &gt; I am trying to plot the data in HDF format using NCL.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; I happen to see the ready script available <a href="https://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_6.nclwhich" target="_blank" shape="rect">https://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_6.nclwhich</a>reads HDF data.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; On my system I downloaded this script and tried to run this but when I run this, following message comes.<br clear="none">&gt; &gt; bash-3.2$ ncl hdf4sds_6.ncl<br clear="none">&gt; &gt;&nbsp; Copyright (C) 1995-2007 - All Rights Reserved<br clear="none">&gt; &gt;&nbsp; University Corporation for Atmospheric Research<br clear="none">&gt; &gt;&nbsp; NCAR Command Language Version 5.0.0<br clear="none">&gt; &gt;&nbsp; The use of this software is governed by a License Agreement.<br clear="none">&gt; &gt;&nbsp; See <a
 href="http://www.ncl.ucar.edu/for" target="_blank" shape="rect">http://www.ncl.ucar.edu/for</a>more details.<br clear="none">&gt; &gt; fatal:_NclCreateFile: Requested file does not exist as (./2A12.20100702.71931.6.HDF) or as (./2A12.20100702.71931.6), can't add file<br clear="none">&gt; &gt; fatal:Either file (f) isn't defined or variable (geolocation) is not a variable in the file<br clear="none">&gt; &gt; fatal:Execute: Error occurred at or near line 31 in file hdf4sds_6.ncl<br clear="none">&gt; &gt;&nbsp; <br clear="none">&gt; &gt; bash-3.2$ ls -l *HDF*<br clear="none">&gt; &gt; -rw-r--r--&nbsp; &nbsp; 1 model&nbsp; &nbsp; staff&nbsp; &nbsp; &nbsp; 55092053 Sep 01 15:54 2A12.20100702.71931.7.HDF<br clear="none">&gt; &gt; -rw-r--r--&nbsp; &nbsp; 1 model&nbsp; &nbsp; staff&nbsp; &nbsp; &nbsp; 55092079 Aug 12 11:13 2A12.20130523.88390.7.HDF<br clear="none">&gt; &gt; -rw-r--r--&nbsp; &nbsp; 1 model&nbsp; &nbsp; staff&nbsp; &nbsp; &nbsp; 55092085 Aug 12
 15:27 2A12.20140602.94247.7.HDF<br clear="none">&gt; &gt; bash-3.2$ ls -l *hdf*ncl*<br clear="none">&gt; &gt; -rw-r--r--&nbsp; &nbsp; 1 model&nbsp; &nbsp; staff&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6725 Sep 01 17:01 hdf4sds_6.ncl<br clear="none">&gt; &gt; bash-3.2$<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; The files exist in my directory.<br clear="none">&gt; &gt; Can somebody tell me what's mistake???<br clear="none">&gt; &gt; Geeta.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt;&nbsp; <br clear="none">&gt; &gt; <br clear="none">&gt; &gt; <br clear="none">&gt; &gt; _______________________________________________<br clear="none">&gt; &gt; ncl-talk mailing list<br clear="none">&gt; &gt; List instructions, subscriber options, unsubscribe:<br clear="none">&gt; &gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">&gt; <br
 clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>