Changeset 12033


Ignore:
Timestamp:
2019-12-03T11:04:00+01:00 (7 months ago)
Author:
smueller
Message:

Correction of the inclusion of regression coefficients in the output file and minor adjustments of standard output (ticket #2175)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools_dev_r11751_ENHANCE-05_SimonM-Harmonic_Analysis/DIAMLR/diamlr.py

    r12018 r12033  
    111111    vn_re = re.compile('(diamlr_f[0-9]{3})\.(diamlr_r[0-9]{3})') 
    112112    for vn in f.variables.keys(): 
    113         print vn 
    114113        vn_match = vn_re.match(vn) 
    115114        if (vn_match): 
     
    150149    # field; add resulting fields to output file 
    151150    for fld in flds: 
    152         print('Completing analysis for field '+fld+'...') 
     151        print('Completing analysis for field '+fld+' ...') 
    153152        xy = np.array([]) 
    154153        for reg in regs: 
     
    177176            nc_var.setncattr( 
    178177                'standard_name', name[0]+' regressed on '+name[1]) 
    179             nc_var[0,:] = b[nr,:] 
     178            nc_var[0,:] = b[nr,:].data 
    180179 
    181180    # Close output file; close field-regressor scalar-product data set 
Note: See TracChangeset for help on using the changeset viewer.