Commit f3f03d2e authored by patrick.lambert's avatar patrick.lambert
Browse files

with export of latitude

parent 64ea50e1
...@@ -322,21 +322,23 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish ...@@ -322,21 +322,23 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish
public String[][] exportToR() { public String[][] exportToR() {
int nbBasin = ageOfFemaleMemories.size(); int nbBasin = ageOfFemaleMemories.size();
String[][] result = new String[nbBasin + 1][5]; String[][] result = new String[nbBasin + 1][6];
// headers // headers
result[0][0] = "basin_id"; result[0][0] = "basin_id";
result[0][1] = "basin_name"; result[0][1] = "basin_name";
result[0][2] = "mean_age_female"; // primiparous and multiparous result[0][2] = "latitude";
result[0][3] = "mean_age _male"; // primiparous and multiparous result[0][3] = "mean_age_female"; // primiparous and multiparous
result[0][4] = "pct_primiparous"; result[0][5] = "mean_age _male"; // primiparous and multiparous
result[0][6] = "pct_primiparous";
int i = 1; int i = 1;
for (Entry<RiverBasin, QueueMemory<Double>> entry : ageOfFemaleMemories.entrySet()) { for (Entry<RiverBasin, QueueMemory<Double>> entry : ageOfFemaleMemories.entrySet()) {
result[i][0] = String.valueOf(entry.getKey().getBasin_id()); result[i][0] = String.valueOf(entry.getKey().getBasin_id());
result[i][1] = entry.getKey().getName(); result[i][1] = entry.getKey().getName();
result[i][2] = String.valueOf(entry.getValue().getMean()); result[i][2] = String.valueOf(entry.getKey().getLatitude());
result[i][3] = String.valueOf(ageOfMaleMemories.get(entry.getKey()).getMean()); result[i][3] = String.valueOf(entry.getValue().getMean());
result[i][4] = String.valueOf(primiparousMemories.get(entry.getKey()).getMean()); result[i][4] = String.valueOf(ageOfMaleMemories.get(entry.getKey()).getMean());
result[i][5] = String.valueOf(primiparousMemories.get(entry.getKey()).getMean());
i++; i++;
} }
......
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