Re: Openning hdf file

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 21 2012 - 10:24:36 MDT

You do not need to use the stat_dispersion function at all.
That was included to show you how to explore a dataset.

I have attached the stat_dispersion I used. This will
be part of 6.1.0

On 9/21/12 10:19 AM, Guilherme Martins wrote:
> Hi Dennis,
>
> Thanks for help me! But, when I run the script it show me:
>
> fatal:Could not open (./stat_dispersion.ncl)
> fatal:error at line 4 in file fig-novo.ncl
>
> This message is because of "stat_dispersion.ncl". I found a documento
> and there say that stat_dispersion.ncl is part of contributed.ncl. Can
> you help me to resolve this?
>
> Thanks,
>
> Guilherme
>
> 2012/9/21 Dennis Shea <shea@ucar.edu <mailto:shea@ucar.edu>>
>
> The 1st rule of data processing is to look at the data file
>
> %> ncl_filedump MOD16A3.A2010365.h19v06.105.__2011050092657.hdf | less
>
> clearly indicates that this is a HDF EOS file
>
> filename: MOD16A3.A2010365.h19v06.105.__2011050092657
> path: MOD16A3.A2010365.h19v06.105.__2011050092657.hdf
> file global attributes:
> HDFEOSVersion : HDFEOS_V2.16 <=================
> StructMetadata_0 : GROUP=SwathStructure
> END_GROUP=SwathStructure
> GROUP=GridStructure
> GROUP=GRID_1
> GridName="MOD_Grid_MOD16A3"
> XDim=1200
> YDim=1200
> UpperLeftPointMtrs=(1111950.__519667,3335851.559000)
> LowerRightMtrs=(2223901.__039333,2223901.039333)
>
> There is no latitude or longitude array !
>
> ---
>
> open as a hdfeos file
>
> %> ncl_filedump
> MOD16A3.A2010365.h19v06.105.__2011050092657.hdf.hdfeos | less
>
> you will get the lat and lon arrays. Note that variable names
> change slightly
>
> Variable: f
> Type: file
> filename: MOD16A3.A2010365.h19v06.105.__2011050092657.hdf
> path: MOD16A3.A2010365.h19v06.105.__2011050092657.hdf
> file global attributes:
> dimensions:
> YDim_MOD_Grid_MOD16A3 = 1200
> XDim_MOD_Grid_MOD16A3 = 1200
> variables:
> double GridLat_MOD_Grid_MOD16A3 ( YDim_MOD_Grid_MOD16A3,
> XDim_MOD_Grid_MOD16A3 )
> projection : (null)
> corners : ( 29.99583333063962, 29.99583333063962,
> 20.00416666486723, 20.00416666486723 )
> long_name : latitude
> units : degrees_north
>
> double GridLon_MOD_Grid_MOD16A3 ( YDim_MOD_Grid_MOD16A3,
> XDim_MOD_Grid_MOD16A3 )
> projection : (null)
> corners : ( 11.55133166990837, 23.0882301890318,
> 21.27968467436596, 10.64649362433333 )
> long_name : longitude
> units : degrees_east
>
> ---
> See attached
>
>
> On 9/20/12 9:39 PM, Guilherme Martins wrote:
>
> Hi user,
>
> I'm trying to open a hdf file, but I'm not getting.
>
> Appear this error below:
>
> (0)check_for_y_lat_coord: Warning: Data either does not contain
> a valid
>
> latitude coordinate array or doesn't contain one at all.
> (0)A valid latitude coordinate array should have a 'units' attribute
>
> equal to one of the following values:
> (0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north'
> 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg
> north'
> (0)check_for_lon_coord: Warning: Data either does not contain a
> valid
>
> longitude coordinate array or doesn't contain one at all.
> (0)A valid longitude coordinate array should have a 'units'
> attribute
>
> equal to one of the following values:
> (0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east'
> 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg
> east'
>
> I can't find the coordinates.
>
> My files are attach.
>
> Thanks,
>
> Guilherme.
>
> --
> *Guilherme Martins*
> http://guilhermemartins.hd1.__com.br/
> <http://guilhermemartins.hd1.com.br/>
>
>
>
>
>
> _________________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/__mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
>
> --
> *Guilherme Martins*
> http://guilhermemartins.hd1.com.br/
>
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Fri Sep 21 10:24:55 2012

This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:29 MDT