Commit 9f01f6c4 authored by Alain O' Miniussi's avatar Alain O' Miniussi
Browse files

Use the same cartesian coordinates cmputation on 3D and ADC.


Former-commit-id: 83c2aa3ced35a30473378bd1314c85f4039cfe43
parent bf2a9abd
......@@ -15,11 +15,12 @@ namespace fargOCA {
int const ni = grid.nbLayer();
auto const& radMed = grid.rMed();
if (grid.dim() == 2) {
auto const& thetaMed = grid.thetaMed();
for (int i=0; i<nr; i++) {
for (int j=0; j<ns; j++) {
int l = j+i*ns;
abs[l] = radMed[i] * cos((sector*j)/real(ns));
ord[l] = radMed[i] * sin((sector*j)/real(ns));
abs[l] = radMed[i] * cos(thetaMed[j]);
ord[l] = radMed[i] * sin(thetaMed[j]);
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment