00001 #include "sundials_types.h" 00002 #include "calib.h" 00003 #include <string> 00004 00005 #define FileName "rhode"; 00006 00007 #define satD_CALIB 0.0 00008 #define br_CALIB 5.0 00009 #define poros_CALIB 0.35 00010 #define icsat_CALIB 0.45 00011 #define rivEle_CALIB 0.45 00012 00013 #define is_CALIB 20.0 00014 #define et0_CALIB 9.0 00015 #define mf_CALIB 1.50 00016 #define tf_CALIB 1.0 00017 00018 #define Vic_CALIB 1.0 00019 #define rivK_CALIB 50.0 00020 #define Kh_CALIB 1.0 00021 #define Rec_CALIB 1.0 00022 #define et2_CALIB 1.0 00023 #define et1_CALIB 1.0 00024 #define sat_THRESH 0.685 00025 #define mp_MULTFH 3000000.0 00026 #define mp_MULTFV 3000000.0 00027 #define mpArea_CALIB 0.00 00028 #define ovl_THRESH_H -1.0 00029 #define ovl_THRESH_V 0.0 00030 #define rzd_CALIB 0.20 00031 00032 #define roughEle_CALIB 1.0 00033 #define roughRiv_CALIB 1.0 00034 #define rivCoeff_CALIB 1.0 00035 #define rivDepth_CALIB 2.5 00036 #define alpha_CALIB 1.0 00037 #define set_MP 0.0 00038 #define lai_CALIB 1.00 00039 #define vegfrac_CALIB 1.00 00040 #define albedo_CALIB 1.25 00041 00042 void setFileName(char *fileName){ 00043 char tempFileName[100] = FileName; 00044 strcpy(fileName, tempFileName); 00045 return; 00046 } 00047 00048 realtype setsatD_CALIB(){ 00049 return satD_CALIB; 00050 } 00051 realtype setbr_CALIB(){ 00052 return br_CALIB; 00053 } 00054 realtype setporos_CALIB(){ 00055 return poros_CALIB; 00056 } 00057 realtype seticsat_CALIB(){ 00058 return icsat_CALIB; 00059 } 00060 realtype setrivEle_CALIB(){ 00061 return rivEle_CALIB; 00062 } 00063 00064 realtype setis_CALIB(){ 00065 return is_CALIB; 00066 } 00067 realtype setet0_CALIB(){ 00068 return et0_CALIB; 00069 } 00070 realtype setmf_CALIB(){ 00071 return mf_CALIB; 00072 } 00073 realtype settf_CALIB(){ 00074 return tf_CALIB; 00075 } 00076 00077 00078 realtype setVic_CALIB(){ 00079 return Vic_CALIB; 00080 } 00081 realtype setrivK_CALIB(){ 00082 return rivK_CALIB; 00083 } 00084 realtype setKh_CALIB(){ 00085 return Kh_CALIB; 00086 } 00087 realtype setRec_CALIB(){ 00088 return Rec_CALIB; 00089 } 00090 realtype setet2_CALIB(){ 00091 return et2_CALIB; 00092 } 00093 realtype setet1_CALIB(){ 00094 return et1_CALIB; 00095 } 00096 realtype setsat_THRESH(){ 00097 return sat_THRESH; 00098 } 00099 realtype setmp_MULTFH(){ 00100 return mp_MULTFH; 00101 } 00102 realtype setmp_MULTFV(){ 00103 return mp_MULTFV; 00104 } 00105 realtype setmpArea_CALIB(){ 00106 return mpArea_CALIB; 00107 } 00108 realtype setovl_THRESH_H(){ 00109 return ovl_THRESH_H; 00110 } 00111 realtype setovl_THRESH_V(){ 00112 return ovl_THRESH_V; 00113 } 00114 realtype setrzd_CALIB(){ 00115 return rzd_CALIB; 00116 } 00117 00118 00119 realtype setroughEle_CALIB(){ 00120 return roughEle_CALIB; 00121 } 00122 realtype setroughRiv_CALIB(){ 00123 return roughRiv_CALIB; 00124 } 00125 realtype setrivCoeff_CALIB(){ 00126 return rivCoeff_CALIB; 00127 } 00128 realtype setrivDepth_CALIB(){ 00129 return rivDepth_CALIB; 00130 } 00131 realtype setalpha_CALIB(){ 00132 return alpha_CALIB; 00133 } 00134 realtype setset_MP(){ 00135 return set_MP; 00136 } 00137 realtype setlai_CALIB(){ 00138 return lai_CALIB; 00139 } 00140 realtype setvegfrac_CALIB(){ 00141 return vegfrac_CALIB; 00142 } 00143 realtype setalbedo_CALIB(){ 00144 return albedo_CALIB; 00145 }