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/
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:29 MDT