ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 24 Sep 2013 13:42:35 +0200Is sage the right tool for modeling soil and climate systems?https://ask.sagemath.org/question/10562/is-sage-the-right-tool-for-modeling-soil-and-climate-systems/I'm building a model of the nitrogen cycle in soil which will evaluate a farms nitrogen supply based on farm parameters and climatic conditions, is sage a good application to build a model like this which can be run across 1000s of farmers at a time?
If not are there applications or programming languages which would be more suitable?Tue, 24 Sep 2013 13:03:09 +0200https://ask.sagemath.org/question/10562/is-sage-the-right-tool-for-modeling-soil-and-climate-systems/Answer by kcrisman for <p>I'm building a model of the nitrogen cycle in soil which will evaluate a farms nitrogen supply based on farm parameters and climatic conditions, is sage a good application to build a model like this which can be run across 1000s of farmers at a time?</p>
<p>If not are there applications or programming languages which would be more suitable?</p>
https://ask.sagemath.org/question/10562/is-sage-the-right-tool-for-modeling-soil-and-climate-systems/?answer=15488#post-id-15488This is a "soft" question, so I'll give a "soft" answer.
Python is a very flexible programming language, especially for prototyping, and Sage has the built-in tools to do a lot of modeling stuff. My suggestion would be to
1. Use Sage normally just to get yourself running with your model
2. Decide whether you need Sage or can stick with the Python/Numpy/Scipy/Matplotlib stack, which will reduce on some overhead
3. If needed, see if there are inefficiencies in your code by doing some profiling and perhaps using [Cython](http://cython.org/) to speed up any calculations you have to.
My guess is there is no reason you have to leave the Python/Sage world, but depending on exactly what you want to do (especially if you are mixing Scipy and GSL diffeq solvers) you may want to stick with the Sage environment.
Sage does *not* have some of the graphical interfaces for complex situations that some modeling software offers of a drag-and-drop variety. I don't know that I view that as a negative, as it means you have to actually understand your model and not just take what the package gives you, but different problems require different tools.Tue, 24 Sep 2013 13:42:35 +0200https://ask.sagemath.org/question/10562/is-sage-the-right-tool-for-modeling-soil-and-climate-systems/?answer=15488#post-id-15488