hdfeos_python_zoo icon indicating copy to clipboard operation
hdfeos_python_zoo copied to clipboard

Characterize when netCDF4's autoscaling works.

Open quintusdias opened this issue 10 years ago • 2 comments

laads/myd/water vapor case: scaling is correct

    short Water_Vapor(Cell_Along_Swath\:mod07, Cell_Across_Swath\:mod07) ;         
        Water_Vapor:valid_range = 0s, 20000s ;                                     
        Water_Vapor:_FillValue = -9999s ;                                          
        Water_Vapor:long_name = "Total Column Precipitable Water Vapor - IR Retrieval" ;
        Water_Vapor:units = "cm" ;                                                 
        Water_Vapor:scale_factor = 0.00100000004749745 ;                           
        Water_Vapor:add_offset = 0. ;      

quintusdias avatar Aug 09 '14 16:08 quintusdias

laads/myd/radiance case: scaling cannot be applied because the attribute names are different. Also, the fill value is not applied

    ushort EV_1KM_Emissive(Band_1KM_Emissive\:MODIS_SWATH_Type_L1B, \10\*nscans\:MODIS_SWATH_Type_L1B, Max_EV_frames\:MODIS_SWATH_Type_L1B) ;
        EV_1KM_Emissive:long_name = "Earth View 1KM Emissive Bands Scaled Integers" ;
        EV_1KM_Emissive:units = "none" ;                                           
        EV_1KM_Emissive:valid_range = 0US, 32767US ;                               
        EV_1KM_Emissive:_FillValue = 65535US ;                                     
        EV_1KM_Emissive:band_names = "20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36" ;
        EV_1KM_Emissive:radiance_scales = 6.930753e-05f, 0.003466903f, 7.626575e-05f, 8.990753e-05f, 3.155614e-05f, 5.639821e-05f, 0.000117832f, 0.0001924497f, 0.0005570849f, 0.0004063234f, 0.0006508072f, 0.0005710013f, 0.0002623371f, 0.0002008728f, 0.0001767632f, 0.0001185949f ;
        EV_1KM_Emissive:radiance_offsets = 2467.264f, 2480.6f, 2478.177f, 2402.469f, 1077.445f, 1560.333f, 2724.219f, 2317.489f, 2610.015f, 1560.333f, 2035.933f, 2119.084f, 2500.599f, 2499.094f, 2500.521f, 2495.891f ;
        EV_1KM_Emissive:radiance_units = "Watts/m^2/micrometer/steradian" ;

quintusdias avatar Aug 10 '14 12:08 quintusdias

In another LAADS/MYD case similar to the radiance case above, the fill value IS applied. The difference may be that the fill value is not the default?

quintusdias avatar Aug 11 '14 21:08 quintusdias