00001 /******************************************************************************* 00002 * File : calib.c * 00003 * Function : defines calibration factors for physical parameters * 00004 * Programmers : Yizhong Qu @ Pennsylvania State Univeristy * 00005 * Mukesh Kumar @ Pennsylvania State Univeristy * 00006 * Gopal Bhatt @ Pennsylvania State Univeristy * 00007 * Version : 2.0 (July 10, 2007) * 00008 *-----------------------------------------------------------------------------* 00009 * * 00010 * * 00011 * This code is free for users with research purpose only, if appropriate * 00012 * citation is refered. However, there is no warranty in any format for this * 00013 * product. * 00014 * * 00015 * For questions or comments, please contact the authors of the reference. * 00016 * One who want to use it for other consideration may also contact Dr.Duffy * 00017 * at cxd11@psu.edu. * 00018 *******************************************************************************/ 00019 00021 00022 /* SUNDIALS Header Files */ 00023 #include "sundials_types.h" 00024 00025 #define FileName "rhode"; 00026 00027 #define satD_CALIB 0.0 00028 #define br_CALIB 5.0 00029 #define poros_CALIB 0.35 00030 #define icsat_CALIB 0.45 00031 #define rivEle_CALIB 0.45 00032 00033 #define is_CALIB 20.0 00034 #define et0_CALIB 9.0 00035 #define mf_CALIB 1.50 00036 #define tf_CALIB 1.0 00037 00038 #define Vic_CALIB 0.5 00039 #define rivK_CALIB 50.0 00040 #define Kh_CALIB 1.0 00041 #define Rec_CALIB 1.0 00042 #define et2_CALIB 1.0 00043 #define et1_CALIB 1.0 00044 #define sat_THRESH 0.685 00045 #define mp_MULTFH 3000000.0 00046 #define mp_MULTFV 3000000.0 00047 #define mpArea_CALIB 0.00 00048 #define ovl_THRESH_H -1.0 00049 #define ovl_THRESH_V 0.0 00050 #define rzd_CALIB 0.20 00051 00052 #define roughEle_CALIB 1.0 00053 #define roughRiv_CALIB 1.0 00054 #define rivCoeff_CALIB 1.0 00055 #define rivDepth_CALIB 2.5 00056 #define alpha_CALIB 1.0 00057 #define set_MP 0.0 00058 #define lai_CALIB 1.00 00059 #define vegfrac_CALIB 1.00 00060 #define albedo_CALIB 1.25 00061 00062 void setFileName(char *fileName) 00064 { 00065 char tempFileName[100] = FileName; 00066 strcpy(fileName, tempFileName); 00067 return; 00068 } 00069 00070 realtype setsatD_CALIB(){ 00071 return satD_CALIB; 00072 } 00073 realtype setbr_CALIB(){ 00074 return br_CALIB; 00075 } 00076 realtype setporos_CALIB() 00078 { 00079 return poros_CALIB; 00080 } 00081 realtype seticsat_CALIB() 00083 { 00084 return icsat_CALIB; 00085 } 00086 realtype setrivEle_CALIB() 00088 { 00089 return rivEle_CALIB; 00090 } 00091 00092 realtype setis_CALIB() 00094 { 00095 return is_CALIB; 00096 } 00097 realtype setet0_CALIB() 00099 { 00100 return et0_CALIB; 00101 } 00102 realtype setmf_CALIB() 00104 { 00105 return mf_CALIB; 00106 } 00107 realtype settf_CALIB() 00109 { 00110 return tf_CALIB; 00111 } 00112 00113 00114 realtype setVic_CALIB() 00116 { 00117 return Vic_CALIB; 00118 } 00119 realtype setrivK_CALIB() 00121 { 00122 return rivK_CALIB; 00123 } 00124 realtype setKh_CALIB() 00126 { 00127 return Kh_CALIB; 00128 } 00129 realtype setRec_CALIB() 00131 { 00132 return Rec_CALIB; 00133 } 00134 realtype setet2_CALIB() 00136 { 00137 return et2_CALIB; 00138 } 00139 realtype setet1_CALIB() 00141 { 00142 return et1_CALIB; 00143 } 00144 realtype setsat_THRESH() 00146 { 00147 return sat_THRESH; 00148 } 00149 realtype setmp_MULTFH() 00151 { 00152 return mp_MULTFH; 00153 } 00154 realtype setmp_MULTFV() 00156 { 00157 return mp_MULTFV; 00158 } 00159 realtype setmpArea_CALIB() 00161 { 00162 return mpArea_CALIB; 00163 } 00164 realtype setovl_THRESH_H(){ 00165 return ovl_THRESH_H; 00166 } 00167 realtype setovl_THRESH_V(){ 00168 return ovl_THRESH_V; 00169 } 00170 realtype setrzd_CALIB() 00172 { 00173 return rzd_CALIB; 00174 } 00175 00176 00177 realtype setroughEle_CALIB() 00179 { 00180 return roughEle_CALIB; 00181 } 00182 realtype setroughRiv_CALIB() 00184 { 00185 return roughRiv_CALIB; 00186 } 00187 realtype setrivCoeff_CALIB() 00189 { 00190 return rivCoeff_CALIB; 00191 } 00192 realtype setrivDepth_CALIB() 00194 { 00195 return rivDepth_CALIB; 00196 } 00197 realtype setalpha_CALIB() 00199 { 00200 return alpha_CALIB; 00201 } 00202 realtype setset_MP() 00204 { 00205 return set_MP; 00206 } 00207 realtype setlai_CALIB() 00209 { 00210 return lai_CALIB; 00211 } 00212 realtype setvegfrac_CALIB() 00214 { 00215 return vegfrac_CALIB; 00216 } 00217 realtype setalbedo_CALIB() 00219 { 00220 return albedo_CALIB; 00221 }