<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Liu, Xiaoli <xiaoli.liu@ou.edu><br>
<b>Sent:</b> Wednesday, August 30, 2017 6:18 AM<br>
<b>To:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Can't got value of variables other than Lat and Lon</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hello,</p>
<p>I want use the data of GPM <span>2A.GPM.DPR.V7 with NCL. I found that I can get the value of Lat and lon correctlly. But as to the other variables, the value got is very unusal. When I use orbit view, I found there are normal values for these variables.</span></p>
<p><span>Here is my script:</span></p>
<p><span></span></p>
<div> dir="/scratch/liu4119/gpm/data/"</div>
<div> FILES=systemfunc(" ls -1 "+dir+"*.HDF5")</div>
<div> numFILES = dimsizes(FILES)</div>
<div>; print("numFILES = " + numFILES)</div>
<div>; print(FILES)</div>
<div>; print (" ")</div>
<div> do i=32,32 </div>
<div> h5_file = addfile(FILES(i),"r") </div>
<div>; g = h5_file=>/NS </div>
<div>; print(g) </div>
<div>; g1=g=>/SLV</div>
<div>; print(g1) </div>
<div>; list_filevars(g)</div>
<div> data_raw = h5_file->/NS/SLV/precipRateESurface</div>
<div> print(data_raw(5396,:))</div>
<div> data = data_raw</div>
<div> data@long_name = "precipRate"</div>
<div> data@_FillValue = -9999.9</div>
<div> data@units = data_raw@Units</div>
<div> longitude=h5_file->/NS/Longitude</div>
<div> printVarSummary(longitude)</div>
<div> latitude=h5_file->/NS/Latitude</div>
<div> print(latitude(5396,:))</div>
<div> print(longitude(5396,:))</div>
<div> printVarSummary(latitude)</div>
<div><br>
</div>
<img naturalheight="800" naturalwidth="291" size="25095" id="img721" tabindex="0" style="max-width: 99.9%; user-select: none;" src="cid:c1ec0f44-513a-44d6-964c-a1000a7b32ce"><br>
<img naturalheight="816" naturalwidth="293" size="33981" id="img221087" tabindex="0" style="max-width: 99.9%; user-select: none;" src="cid:891609e8-6d88-4b50-ace4-52853a685e3f"><br>
<img naturalheight="750" naturalwidth="330" size="32193" id="img26098" tabindex="0" style="max-width: 99.9%; user-select: none;" src="cid:ab77d561-deb8-4ef8-82d6-06293786eb5d"><br>
Thanks!
<p></p>
<p><span>Xiaoli</span></p>
</div>
</div>
</div>
</div>
</body>
</html>