[ncl-talk] Fw: Can't got value of variables other than Lat and Lon

Liu, Xiaoli xiaoli.liu at ou.edu
Tue Aug 29 15:38:25 MDT 2017




________________________________
From: Liu, Xiaoli <xiaoli.liu at ou.edu>
Sent: Wednesday, August 30, 2017 6:18 AM
To: ncl-talk at ucar.edu
Subject: Can't got value of variables other than Lat and Lon


Hello,

I want use the data of GPM 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.

Here is my script:

 dir="/scratch/liu4119/gpm/data/"
  FILES=systemfunc(" ls -1 "+dir+"*.HDF5")
  numFILES = dimsizes(FILES)
;  print("numFILES = " + numFILES)
;  print(FILES)
;  print (" ")
  do i=32,32
    h5_file = addfile(FILES(i),"r")
;  g = h5_file=>/NS
;   print(g)
;  g1=g=>/SLV
;   print(g1)
;  list_filevars(g)
  data_raw = h5_file->/NS/SLV/precipRateESurface
  print(data_raw(5396,:))
  data = data_raw
  data at long_name = "precipRate"
  data at _FillValue = -9999.9
  data at units = data_raw at Units
  longitude=h5_file->/NS/Longitude
  printVarSummary(longitude)
  latitude=h5_file->/NS/Latitude
  print(latitude(5396,:))
  print(longitude(5396,:))
  printVarSummary(latitude)

[cid:c1ec0f44-513a-44d6-964c-a1000a7b32ce]
[cid:891609e8-6d88-4b50-ace4-52853a685e3f]
[cid:ab77d561-deb8-4ef8-82d6-06293786eb5d]
Thanks!

Xiaoli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170829/fd739654/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data_raw.png
Type: image/png
Size: 25095 bytes
Desc: data_raw.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170829/fd739654/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: latitude.png
Type: image/png
Size: 33981 bytes
Desc: latitude.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170829/fd739654/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: longitude.png
Type: image/png
Size: 32193 bytes
Desc: longitude.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170829/fd739654/attachment-0002.png>


More information about the ncl-talk mailing list