Skip to content

Commit a0c569e

Browse files
committed
fixed wrong scattering angle in gnuplot file
1 parent af469b5 commit a0c569e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Dust.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ bool CDustComponent::writeComponentPlot(string path_plot)
27882788
scat_writer << "set multiplot layout 2,1 rowsfirst" << endl;
27892789

27902790
if(nr_of_wavelength > 1)
2791-
scat_writer << "set xrange[" << 0 << ":" << nr_of_scat_theta_tmp << "]" << endl;
2791+
scat_writer << "set xrange[" << 0 << ":" << 180 << "]" << endl;
27922792
scat_writer << "set yrange[" << S11min << ":" << S11max << "]" << endl;
27932793
scat_writer << "set format x \"%.1f\"" << endl;
27942794
scat_writer << "set format y \"%.1te%02T\"" << endl;
@@ -2810,12 +2810,12 @@ bool CDustComponent::writeComponentPlot(string path_plot)
28102810
uint wID = w - wavelength_offset;
28112811

28122812
for(uint sth = 0; sth < nr_of_scat_theta_tmp; sth++)
2813-
scat_writer << sth << "\t" << S11[wID][sth] << endl;
2813+
scat_writer << 180 * sth / (nr_of_scat_theta_tmp - 1) << "\t" << S11[wID][sth] << endl;
28142814
scat_writer << "e" << endl;
28152815
}
28162816

28172817
if(nr_of_wavelength > 1)
2818-
scat_writer << "set xrange[" << 0 << ":" << nr_of_scat_theta_tmp << "]" << endl;
2818+
scat_writer << "set xrange[" << 0 << ":" << 180 << "]" << endl;
28192819
scat_writer << "set yrange[" << S12min << ":" << S12max << "]" << endl;
28202820
scat_writer << "set format x \"%.1f\"" << endl;
28212821
scat_writer << "set format y \"%.1te%02T\"" << endl;
@@ -2837,7 +2837,7 @@ bool CDustComponent::writeComponentPlot(string path_plot)
28372837
uint wID = w - wavelength_offset;
28382838

28392839
for(uint sth = 0; sth < nr_of_scat_theta_tmp; sth++)
2840-
scat_writer << sth << "\t" << S12[wID][sth] << endl;
2840+
scat_writer << 180 * sth / (nr_of_scat_theta_tmp - 1) << "\t" << S12[wID][sth] << endl;
28412841
scat_writer << "e" << endl;
28422842
}
28432843

0 commit comments

Comments
 (0)