gd.addStringField("3D Model directory",model_directory,120,"Directory with 3D model to extract X,Y scales and captured images.");
gd.addStringField("3D Model state file",model_state_file,120,"3D model state file with images, elevation and scales as absolute values and directions.");
gd.addStringField("Synthesis directory",synth_directory,120,"Directory with the terrain/foliage model generation files.");
gd.addStringField("Scene name",synth_scene,40,"Name (timestamp) of the model.");
gd.addStringField("Model suffix",synth_model,120,"File name suffix for the model.");
gd.addStringField("Rendered suffix",synth_render_suffix,120,"Result file name suffix for the rendered synthetic images.");
gd.addCheckbox("Crop by real",synth_crop_real,"Crop synthetic by real.");
gd.addCheckbox("Update settings",update,"Update settings in the global parameters (wil require saving).");
terrain=terrain_woi[windx]/stw;// /terr_elev_sum_weights[nScene][windx]; // it already combines parameters and constants, divided by terr_elev_sum_weights[nScene][windx]
}
doubled=terrain;// combined from neighbors if needed
System.out.println("getFxDerivs(): BUG: avg_veget="+avg_veget+", avg_alpha="+avg_alpha+",nScene="+nScene+", windx="+windx+". Restored with different overlaid?");