python Netcdf and ncdump

J Conrado jorge.conforte at inpe.br
Thu Apr 30 13:55:21 EDT 2020



Hi,


I read my netcdf data and I did:


print(f)
print("f.variables[SST] ",f.variables["SST"])


and I had:


f.variables[SST]  <class 'netCDF4._netCDF4.Variable'>
int16 SST(y, x)
     _FillValue: -1
     long_name: ABI L2+ Sea Surface (Skin) Temperature
     standard_name: sea_surface_skin_temperature
     _Unsigned: true
     valid_range: [ 0 -6]
     scale_factor: 0.00244163
     add_offset: 180.0
     units: K



I used the ncdum for the same data I had :


variables:
     short SST(y, x) ;
         SST:_FillValue = -1s ;
         SST:long_name = "ABI L2+ Sea Surface (Skin) Temperature" ;
         SST:standard_name = "sea_surface_skin_temperature" ;
         SST:_Unsigned = "true" ;
         SST:valid_range = 0s, -6s ;
         SST:scale_factor = 0.00244163f ;
         SST:add_offset = 180.f ;
         SST:units = "K" ;


Please,

Please can someone explain to me why I have this difference: in Python 
int16 SST(y, x) and with ncdump -h short SST(y, x)

Thank you, Conrado



More information about the Python-list mailing list