action save_grid {
save "ncols\t" + nb_cols + "\nnrows\t" + nb_rows+ "\nxllcorner\t" + xllcorner + "\nxllcorner\t" + yllcorner + "\ncellsize\t" + cell_size + "\nNODATA_value\t" + no_data to: "my_grid.asc";
loop j from: 0 to: nb_rows - 1 {
loop i from: 0 to: nb_cols - 1 {
save cell[i,j].val to: "my_grid.asc";
}
}
}
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
Hi,
action save_grid {
save ("ncols\t" + nb_cols + "\nnrows\t" + nb_rows+ "\nxllcorner\t" + xllcorner + "\nyllcorner\t" + yllcorner + "\ncellsize\t" + cell_size + "\nNODATA_value\t" + no_data) to: "my_grid.asc";
loop j from: 0 to: nb_rows - 1 {
string line <- "";
loop i from: 0 to: nb_cols - 1 {
line <- line + " " + cell[i,j].grid_value;
}
save line to: "my_grid.asc";
}
}