[ncl-talk] setfileoption("h5" ...
Laura Fowler
laura at ucar.edu
Tue May 22 14:19:45 MDT 2018
Hello:
Just a couple of quick questions:
1. I am reading an HDF5 file containing GPM data and I was wondering
if there was a description of the command:
setfileoption("h5","FileStructure","Advanced")
In the online documentation, I found that setfileoption is described
for netCDF and GRIB, but not for HDF5?
2. I read the HDF5 file and define the group g2 as:
g2 = f=>/Grids/G2
mean = g2->precipRateNearSurfaceUnconditional
.
.
.
After I plot the variable mean, I am trying to open an other group g2 as:
ichn = 3
g2 = f=>/Grids/G2/precipRateNearSurface
mean = g2->mean(:,ichn,:,:)
Then, I get the error message:
fatal:["Execute.c":132]:variable (mean) is not in file
(3A-MO.GPM.DPR.V2-20170217.20151201-S000000-E235959.12.V05A.HDF5)
fatal:["Execute.c":6316]:variable (mean) is not in file (g2)
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 95 in
file read.ncl
If I add the 2 lines:
delete(mean)
delete(g2)
then I get the following error:
fatal:file (g2) isn't defined
Is there a way to reuse g2 for the second group? I thought that
deleting it first would work but it does not?
Thanks,
Laura
--
!-------------------------------------------------------------------------------------------------------------
Laura D. Fowler
Mesoscale and Microscale Meteorology Division (MMM)
National Center for Atmospheric Research
P.O. Box 3000, Boulder CO 80307-3000
e-mail: laura at ucar.edu
phone: 303-497-1628
!-------------------------------------------------------------------------------------------------------------
More information about the ncl-talk
mailing list