Changeset 208


Ignore:
Timestamp:
05/09/14 17:28:53 (5 years ago)
Author:
mjuckes
Message:

further debugging of ncq3

Location:
CCCC/trunk/ceda_cc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/c4.py

    r206 r208  
    260260      next = args.pop(0) 
    261261      if next == '-f': 
    262         print '###########',args[0] 
    263262        flist = [args.pop(0),] 
    264263        self.logByFile = False 
  • CCCC/trunk/ceda_cc/ncq3.py

    r206 r208  
    271271        err = libnetcdf.nc_get_att(self.id, vid, c_char_p(name), byref(data)) 
    272272        if err != 0: raise NCError( 'Error reading attribute value %s, type:%s' % (name,type) ) 
    273         print name, data.value, t2, type, float(data.value) 
    274273        if type == 5: 
    275274          dv = c_float( data.value ).value 
  • CCCC/trunk/ceda_cc/utils_c4.py

    r206 r208  
    1 import string, re, os, sys, traceback 
     1import string, re, os, sys, traceback, ctypes 
    22 
    33def strmm3( mm ): 
     
    8181    self.passCount = 0 
    8282    self.missingValue = 1.e20 
     83    self.missingValue = ctypes.c_float(1.00000002004e+20).value 
    8384    from file_utils import ncLib 
    8485    if ncLib == 'netCDF4': 
     
    383384        if varAts[varName].has_key( 'missing_value' ): 
    384385           msg = 'Variable [%s] has incorrect attribute missing_value=%s [correct: %s]' % (varName,varAts[varName]['missing_value'],self.missingValue) 
    385            ok &= self.test( varAts[varName]['missing_value'] == self.missingValue, msg, part=True ) 
     386           ## print varAts[varName]['missing_value'], type(varAts[varName]['missing_value']) 
     387           ## print self.missingValue, type(self.missingValue) 
     388           ok &= self.test( ctypes.c_float(varAts[varName]['missing_value']).value == ctypes.c_float(self.missingValue).value, msg, part=True ) 
    386389        if varAts[varName].has_key( '_FillValue' ): 
    387390           msg = 'Variable [%s] has incorrect attribute _FillValue=%s [correct: %s]' % (varName,varAts[varName]['_FillValue'],self.missingValue) 
Note: See TracChangeset for help on using the changeset viewer.