AMSR-E Swath attributes reading problem

From: H. Joe Lee <hyoklee_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 15 2011 - 07:40:22 MST


 I found a problem in reading attributes from AMSR-E HDF-EOS2 swath
data file with NCL.

Here's the detail.

NCL Version: 5.2.1
OS: CentOS Linux 32-bit
Input file: NSIDC AMSR_E Swath. See [1] below for URL.

"r") data_unscaled=eos_file->89_0V_Res_5B_TB__not_resampled__High_Res_B_Swath
; read specific subset of data field
; print(eos_file);

[Output of the above code]
Variable: data_unscaled
Type: short
Total Size: 1941084 bytes
            970542 values
Number of Dimensions: 2
Dimensions and sizes: [DataTrack_lo_High_Res_B_Swath | 1997] x
[DataXTrack_hi_High_Res_B_Swath | 486]
Number Of Attributes: 2
  coordinates : Latitude_High_Res_B_Swath, Longitude_High_Res_B_Swath
  hdfeos_name : 89.0V_Res.5B_TB_(not-resampled)]
warning:Attempt to reference attribute (UNIT) which is undefined
(0) -999

  If you look at the input file with HDFView as shown in [2], you will
see "UNIT", "OFFSET", and "SCALE_FACTOR" attributes associated with
the swath dataset. However, NCL doesn't read them properly. Thus, I
cannot apply the "short2flt_hdf()" function to the swath datatset.

 I know I can assign attributes manually and apply scale factor and
offset but I think it would be great if NCL can read those attributes


Docs into PDF, Data into HDF.
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Feb 15 07:41:36 2011

This archive was generated by hypermail 2.1.8 : Tue Feb 15 2011 - 09:43:19 MST