<div dir="ltr"><div>Please ... always look at the HDF page for examples<br><br><a href="http://www.ncl.ucar.edu/Applications/HDF.shtml">http://www.ncl.ucar.edu/Applications/HDF.shtml</a><br><br></div>Specifically,<br><div><br><a href="http://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_6.ncl">hdf4sds_6.ncl</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 8:57 PM, Geeta Geeta <span dir="ltr">&lt;<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>Hi NCL users. </span></div><div dir="ltr"><span>I am trying to plot the TRMM 2A12 V7 data which is ORBITAL data in the HDF4 format. </span></div><div dir="ltr"><span>This has hydrometeor profiles upto 18km in atmosphere and these are not available directly. </span></div><div><span>I am attaching the documentation for 2A12 . </span></div><div><span>I am unable to extract the hydrometeors at different levels from this data. </span></div><div><br></div><div dir="ltr">The Pg 118 of the file filespec.TRMM.V7.pdf decribes that two arrays have to be multiplied in order to get a profile. I get error like this.</div><div><div class="h5"><div dir="ltr">      byte clusterNumber ( nscan, npixel, nspecies )</div><div dir="ltr">         hdf_name :<span style="white-space:pre-wrap">        </span>clusterNumber</div><div dir="ltr"><br></div><div dir="ltr">      float clusterScale ( nscan, npixel, nspecies )</div><div dir="ltr">         hdf_name :<span style="white-space:pre-wrap">        </span>clusterScale</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Variable: CLUSTER</div><div dir="ltr">Type: float</div><div dir="ltr">Total Size: 5200 bytes</div><div dir="ltr">            1300 values</div><div dir="ltr">Number of Dimensions: 2</div><div dir="ltr">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[ncluster | 100] x [nfindex | 13]</div><div dir="ltr">Coordinates: </div><div dir="ltr">Number Of Attributes: 1</div><div dir="ltr">  hdf_name :<span style="white-space:pre-wrap">        </span>cluster</div><div dir="ltr">(0)<span style="white-space:pre-wrap">        </span> </div><div dir="ltr">(0)<span style="white-space:pre-wrap">        </span>min=0   max=0.835986</div><div dir="ltr"><br></div><div dir="ltr">Variable: clus_scale</div><div dir="ltr">Type: float</div><div dir="ltr">Total Size: 2428608 bytes</div><div dir="ltr">            607152 values</div><div dir="ltr">Number of Dimensions: 2</div><div dir="ltr">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[nscan | 2919] x [npixel | 208]</div><div dir="ltr">Coordinates: </div><div dir="ltr">Number Of Attributes: 4</div><div dir="ltr">  _FillValue :<span style="white-space:pre-wrap">        </span>-9999.9</div><div dir="ltr">  lat2d :<span style="white-space:pre-wrap">        </span>&lt;ARRAY of 607152 elements&gt;</div><div dir="ltr">  lon2d :<span style="white-space:pre-wrap">        </span>&lt;ARRAY of 607152 elements&gt;</div><div dir="ltr">  hdf_name :<span style="white-space:pre-wrap">        </span>clusterScale</div><div dir="ltr">(0)<span style="white-space:pre-wrap">        </span> </div><div dir="ltr">(0)<span style="white-space:pre-wrap">        </span>min=0.005   max=1.873</div><div dir="ltr">fatal:Mul: Dimension size, for dimension number 0, of operands does not match, can&#39;t continue</div><div dir="ltr"><br></div><div dir="ltr">fatal:[&quot;Execute.c&quot;:8578]:Execute: Error occurred at or near line 96 in file 2A12.20090929.67632.7.HDF.surfpptn.ncl</div><div dir="ltr"><br></div></div></div><div dir="ltr">aditya@agniilap:~/geeta/ncl/ReadHDF-2A12-U-V7$ </div><span class="HOEnZb"><font color="#888888"><div dir="ltr"> </div><div></div><div> </div><div>Geeta.</div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>