Created At: 2026-06-14T16:12:39Z
Completed At: 2026-06-14T16:12:39Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 3878
Total Bytes: 161401
Showing lines 2915 to 2975
The following code has been modified to include a line number before every line, in the format: <line_number>: <original_line>. Please note that any changes targeting the original code should remove the line number, colon, and leading space.
2915:         ssp2_slope = -0.0018; 
2916:         ssp3_slope = -0.0030; 
2917:         ssp5_slope = -0.0040; 
2918:         baseUncertainty = 0.008;
2919:       }
2920: 
2921:       // OVERRIDE WITH CUSTOM DATABASE PARAMETERS IF AVAILABLE
2922:       if (customParams) {
2923:         if (customParams.graphBaseValue !== undefined && customParams.graphBaseValue !== null && customParams.graphBaseValue !== '') {
2924:           baseVal = parseFloat(customParams.graphBaseValue);
2925:         }
2926:         if (customParams.graphUncertainty !== undefined && customParams.graphUncertainty !== null && customParams.graphUncertainty !== '') {
2927:           baseUncertainty = parseFloat(customParams.graphUncertainty);
2928:         }
2929:         if (customParams.graphSSP1Slope !== undefined && customParams.graphSSP1Slope !== null && customParams.graphSSP1Slope !== '') {
2930:           ssp1_slope = parseFloat(customParams.graphSSP1Slope);
2931:         }
2932:         if (customParams.graphSSP2Slope !== undefined && customParams.graphSSP2Slope !== null && customParams.graphSSP2Slope !== '') {
2933:           ssp2_slope = parseFloat(customParams.graphSSP2Slope);
2934:         }
2935:         if (customParams.graphSSP3Slope !== undefined && customParams.graphSSP3Slope !== null && customParams.graphSSP3Slope !== '') {
2936:           ssp3_slope = parseFloat(customParams.graphSSP3Slope);
2937:         }
2938:         if (customParams.graphSSP5Slope !== undefined && customParams.graphSSP5Slope !== null && customParams.graphSSP5Slope !== '') {
2939:           ssp5_slope = parseFloat(customParams.graphSSP5Slope);
2940:         }
2941:       }
2942: 
2943:       // Consistent seeded random for reproducibility
2944:       function seededRandom(seed) {
2945:         const x = Math.sin(seed++) * 10000;
2946:         return x - Math.floor(x);
2947:       }
2948: 
2949:       const dataHist = [];
2950:       const dataSSP1 = [];
2951:       const dataSSP1_min = [];
2952:       const dataSSP1_max = [];
2953:       
2954:       const dataSSP2 = [];
2955:       const dataSSP2_min = [];
2956:       const dataSSP2_max = [];
2957:       
2958:       const dataSSP3 = [];
2959:       const dataSSP3_min = [];
2960:       const dataSSP3_max = [];
2961: 
2962:       const dataSSP5 = [];
2963:       const dataSSP5_min = [];
2964:       const dataSSP5_max = [];
2965: 
2966:       let csvRows = null;
2967:       if (customParams && customParams.csvData) {
2968:         try {
2969:           csvRows = JSON.parse(customParams.csvData);
2970:         } catch (e) {
2971:           console.error("Failed to parse csvData JSON:", e);
2972:         }
2973:       }
2974: 
2975:       if (csvRows && csvRows.length > 0) {
The above content does NOT show the entire file contents. If you need to view any lines of the file which were not shown to complete your task, call this tool again to view those lines.
