diff --git a/parameter_files/archive/new_shrubPFT_patch_params.xml b/parameter_files/archive/new_shrubPFT_patch_params.xml new file mode 100644 index 0000000000..c33ebb1426 --- /dev/null +++ b/parameter_files/archive/new_shrubPFT_patch_params.xml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + archive/api36.1.0_params_default.cdl + fates_params_default.cdl + 1,2,3,4,5,6,7,8,9,7,9,10,11,12 + + + + + + + + + 0.0481934 + 1.0600586 + 0.5289883 + 2.1010352 + 0.8165625 + 0.2316113 + 0.8 + 2.4 + 2.4 + 0.4363427 + 0.4363427 + 0.7 + 1.5 + 0.010 + 38 + 0.12 + 0.016 + -71 + 0.74 + 0.07 + 0.40 + 0.16 + + + + + + + 0.0481934 + 1.7176758 + 0.6853945 + 1.7628613 + 0.7781250 + 0.4027002 + 0.8 + 1.9 + 1.9 + 0.3166497 + 0.3166497 + 0.6 + 1.4 + 0.032 + 0.032 + 54 + 0.8 + 0.57 + 3.5 + 0.010 + -95 + 0.46 + 0.49 + + + + + 0.11 + 0.6 + 0.027 + 86 + 0.16 + 2.3 + -89 + 0.35 + 0.29 + + + + + + + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.0, 0.1, 0, 0, 0 + + + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0.1, 0, 0, 0 + + + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0.8, 0.0, 0, 0 + + + + + + + + + + + + diff --git a/tools/modify_fates_paramfile.py b/tools/modify_fates_paramfile.py index 1b25ae7171..cf86d2b48b 100755 --- a/tools/modify_fates_paramfile.py +++ b/tools/modify_fates_paramfile.py @@ -75,13 +75,13 @@ def main(): else: try: - outputval = float(args.val) + outputval = np.float64(args.val) if args.changeshape: raise Exception except: try: - #print('output variable not interpretable as real. trying array') - outputval = np.fromstring(args.val, sep=',', dtype=np.float32) + print('output variable not interpretable as real. trying array') + outputval = np.fromstring(args.val, sep=',', dtype=np.float64) if len(outputval) == 0: raise RuntimeError('output variable needs to have size greater than zero') except: @@ -240,7 +240,7 @@ def main(): ' New length is shorter than old, so its been truncated.') x[0:length_specified,:] = variable[0:length_specified,:] else: - x.assignValue(float(variable.data)) + x.assignValue(np.float64(variable.data)) # var = ncfile.variables[args.varname] else: