--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/nGPBc4waAYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/b0030941-aa3e-445f-bf75-7b11a7e88f54%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to gama-platform+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/b0030941-aa3e-445f-bf75-7b11a7e88f54%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/nGPBc4waAYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/8f1bac17-388f-4556-a877-1baf7a282aed%40googlegroups.com.
model NDVI
/* Insert your model definition here */
global {
file modis_data <- file("../includes/NDVIn1.tif");
float MAX_FOOD <- 1.0;
map<int, list<terrain_cell>> grid_rows ;
list<float> food_values ;
bool saved <- false;
}
grid terrain_cell file: modis_data neighbors: 8 {
float foodProd <- rnd(10) / 10; /*Precipitation/50 ;*/
float food <- grid_value ; //min: 0.0 max: MAX_FOOD;
reflex compt when: !saved{
grid_rows <- (terrain_cell group_by (terrain_cell(each).grid_y));
loop i from: 0 to: length(grid_rows)-1 {
food_values <- [];
food_values <<+ grid_rows[i] collect each.food;
save food_values to: "../results/food_values_row_by_row.csv" type:"csv" rewrite: false header:false;
}
saved <- true;
}
rgb color <- rgb(int(255 * (1 - 1.5 * food)), 255, int(255 * (1 - 1.5 * food))) update: rgb(int(255 * (1 - 1.5 * food)), 255, int(255 * (1 - 1.5 * food)));
}
experiment simulation type: gui {
output {
display main_display {
grid terrain_cell lines: #black; // size: { 1, 0.5 } position: { 0, 0 };
}
}
}
------
To unsubscribe from this group and all its topics, send an email to gama-platform+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/b0030941-aa3e-445f-bf75-7b11a7e88f54%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/nGPBc4waAYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platform+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/b0030941-aa3e-445f-bf75-7b11a7e88f54%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/nGPBc4waAYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/8f1bac17-388f-4556-a877-1baf7a282aed%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/nGPBc4waAYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/1b3b5d6e-9f68-4e7a-ba24-8275dd13e4dd%40googlegroups.com.