@@ -2834,10 +2792,8 @@ public class VegetationLMA {
...
@@ -2834,10 +2792,8 @@ public class VegetationLMA {
ImageDtt.startAndJoin(threads);
ImageDtt.startAndJoin(threads);
}
}
/*
if (samples_pointers[SAMPLES_VEGETATION_LPF][1] > 0) { // fits[TVAO_VEGETATION] && (veget_lpf >= 0)) { // should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
if (samples_pointers[SAMPLES_VEGETATION_LPF][1] > 0) { // fits[TVAO_VEGETATION] && (veget_lpf >= 0)) { // should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
// final int ind_y_veget = samples_pointers[SAMPLES_VEGETATION_LPF][0]; // ind_next;
// ind_next += num_pars_vegetation;
ai.set(0);
ai.set(0);
for (int ithread = 0; ithread < threads.length; ithread++) {
for (int ithread = 0; ithread < threads.length; ithread++) {
threads[ithread] = new Thread() {
threads[ithread] = new Thread() {
...
@@ -2880,6 +2836,135 @@ public class VegetationLMA {
...
@@ -2880,6 +2836,135 @@ public class VegetationLMA {
}
}
ImageDtt.startAndJoin(threads);
ImageDtt.startAndJoin(threads);
}
}
*/
if(samples_pointers[SAMPLES_VEGETATION_LPF][1]>0){// should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
if(num_pars_alpha<=0){
System.out.println("getFxDerivs(): BUG: Asjusting SAMPLES_VEGETATION_LPF requires alpha parameters aslo to be fitted");
if(samples_pointers[SAMPLES_ELEVATION_PULL][1]>0){// fits[TVAO_ELEVATION] && (elevation_lpf >= 0)) { // should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
if(samples_pointers[SAMPLES_ELEVATION_PULL][1]>0){// fits[TVAO_ELEVATION] && (elevation_lpf >= 0)) { // should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
ai.set(0);
ai.set(0);
...
@@ -4280,7 +4365,7 @@ public class VegetationLMA {
...
@@ -4280,7 +4365,7 @@ public class VegetationLMA {
int[]ti=par_rindex[n];
int[]ti=par_rindex[n];
if(Math.abs(jt_diff[n][w])>max_err){
if(Math.abs(jt_diff[n][w])>max_err){
System.out.println("debugDerivs(): n="+n+" ("+ti[0]+":"+ti[1]+"), w = "+w+", diff="+jt_diff[n][w]+" jt="+jt[n][w]+" jt_delta="+jt_delta[n][w]);
System.out.println("debugDerivs(): n="+n+" ("+ti[0]+":"+ti[1]+"), w = "+w+", diff="+jt_diff[n][w]+" jt="+jt[n][w]+" jt_delta="+jt_delta[n][w]);
}elseif(Math.abs(jt_diff[n][w])>.1){
}elseif(Math.abs(jt_diff[n][w])>.001){
System.out.println("debugDerivs(): n="+n+" ("+ti[0]+":"+ti[1]+"), w = "+w+", diff="+jt_diff[n][w]+" jt="+jt[n][w]+" jt_delta="+jt_delta[n][w]);
System.out.println("debugDerivs(): n="+n+" ("+ti[0]+":"+ti[1]+"), w = "+w+", diff="+jt_diff[n][w]+" jt="+jt[n][w]+" jt_delta="+jt_delta[n][w]);