[ncl-talk] problem with HDF file

Geeta Geeta geetag54 at yahoo.com
Wed May 3 23:06:38 MDT 2017


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/20170504/982f8032/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/20170504/982f8032/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lightning.png
Type: image/png
Size: 76996 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/982f8032/attachment-0003.png 


More information about the ncl-talk mailing list