[ncl-talk] problem with HDF file

Geeta Geeta geetag54 at yahoo.com
Fri May 5 09:00:23 MDT 2017


Hi Mary and dave. Thank you for plotting the Lightning data for me. 
I am using two datasets, LIS (Lightning, which is in HDF4 had issue with this file), and 2A25 which has reflectivity at 80 levels, both are Orbital data sets but with different swaths. Pls see the figures. 
Lis is plotted at the locations where Lightning is seen. I have to extract the maxZ  at the locations where Lightning is seen (pls see the code, this would be 4th level of filtering that I will be doing to my Reflectivity data, ref to fig4.000007.png). 
My purpose is to show that "severe storms are the ones that have lightning associated with them". Rest can be called as convective echoes.  
My problem is that the Lat/lon of both datasets Do not match. One is a point data and the other is a swath data. 
I want to know if it is possible to do??? and how, what logic
you all do a great job in helping us. That is why i am able to move ahead thanksGeeta. 

    On Friday, 5 May 2017 4:05 AM, Mary Haley <haley at ucar.edu> wrote:
 

 Geeta,
I'm not clear on your question about extracting 2A25 reflectivity data depending on non-zero data of LIS. The text file I was looking at yesterday had no header information, so I have no idea what the various columns mean.
Also, you attached two plots, but I'm not sure if you are trying to ask a specific question about them.
I just plotted every lat/lon point that you had, which is what I assume is what you used to create the lightning marker plot. Is there something more you need to do with this particular plot?
As for the contour plot with the labelbar, I'm assuming this is the reflectivity plot, but again, what is the "non-zero data of LIS"? Is LIS one of the columns of data in your ASCII file?
You need to be more specific about what you need.
--Mary

On Wed, May 3, 2017 at 11:06 PM, Geeta Geeta <geetag54 at yahoo.com> wrote:

Thanks Mary and Dave. these files are not avaible in netcdf.  Mary's script is plotting it when input file is txt. I have to try that HDF4->HDF5 tool. 
Pls tell me when u upload the script for it's conversion to H5. 
I actually have to extract 2A25 reflectivity data depending on non-zero data of LIS. I am attaching the Figures. 
I dont know how to do using the txt file. 
thanks Geeta. 

    On Thursday, 4 May 2017 12:22 AM, David Brown <dbrown at ucar.edu> wrote:
 

 Hi Geeta,

As Mary says, NCL does not currently support the Vdata type in HDF4,
but there is a tool called h4toh5 that you can download from the HDF
group site at https://ftp.hdfgroup.org/ h4toh5/download.html. It was a
little hard to build on my Mac, but eventually I managed. (I would be
happy to fill you in on the details -- although you may be able to use
the binaries if you are working on Linux.)  It will convert HDF4 files
to HDF5. The Vdata type is converted to the HDF5 compound data type,
which NCL is able to interpret.I
I am attaching a print out of the output from ncl_filedump on the
converted test.h5 file. I will also upload test.h5 to the ftp site so
you can try it for yourself.
You should definitely use NCL 6.4.0 to work with this file. Also you
should read the "File I/O Improvements" section of the latest NCL
release notes (http://www.ncl.ucar.edu/ current_release.shtml# FileIOImprovements6.4.0)
for information on working with groups and compound data in NCL 6.4.0.
Hope this helps.
 -dave

On Wed, May 3, 2017 at 12:01 PM, Mary Haley <haley at ucar.edu> wrote:
> Geeta,
>
> This appears to be HDF4 VDATA data, which NCL doesn't currently support. We
> haven't received many requests for this, so it has been very low on our list
> of things to add support for.
>
> I added your email to the ticket we have on this (NCL-1195) in case this
> becomes something we need to support.
>
> Meanwhile, have you checked around to see if this data is available in
> NetCDF format instead?
>
> --Mary
>
>
>
>
> On Tue, May 2, 2017 at 5:59 PM, Geeta Geeta <geetag54 at yahoo.com> wrote:
>>
>> dear ncl users.
>> I have lighening data (orbital) which I wish to plot. the image downloaded
>> from web is attached.
>> but when I doenload the datafile, from the following link.
>>
>> https://lightning.nsstc.nasa. gov/lisib/lis1orbit.exe?which= qc&year=2011&day=104&orbit= 76394
>>
>> aditya at agniilap:~/geeta/ncl/ MYLIS$ ../bin/ncl trmm.lis.ncl
>>  Copyright (C) 1995-2014 - All Rights Reserved
>>  University Corporation for Atmospheric Research
>>  NCAR Command Language Version 6.2.1
>>  The use of this software is governed by a License Agreement.
>>  See http://www.ncl.ucar.edu/ for more details.
>>
>> Variable: hdf4_file
>> Type: file
>> File path: ./test.HDF
>> Number of global attributes: 0
>> Number of dimensions: 0
>> Number of variables: 0
>> warning:getfilevarnames: test contains no variables readable by NCL
>> (0) missing
>> I get this message.
>>
>> pls help me how to check the data file.
>>
>> Geeta.
>>
>> ______________________________ _________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/ mailman/listinfo/ncl-talk
>>
>
>
> ______________________________ _________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/ mailman/listinfo/ncl-talk
>


   



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/6dd0058d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig4.20110414.000002.png
Type: image/png
Size: 63715 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/6dd0058d/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig4.20110414.000007.png
Type: image/png
Size: 118233 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/6dd0058d/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2a25.110414.poly.v2.withLIS.ncl
Type: application/octet-stream
Size: 20004 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/6dd0058d/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lightning.png
Type: image/png
Size: 76995 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/6dd0058d/attachment-0005.png 


More information about the ncl-talk mailing list