A set of Tools to ease the crop simulation ussing DSSAT
Project description
#TODO: Update readme
Py_DSSATTools
A set of Tools to ease the crop simulation ussing DSSAT
You can install it via pip:
pip install DSSATTools
Introduction
It will be conformed for different modules that will allow the user to sort the data needed to run the model, create the required files to run the model. To run the model you have to have the DSSAT Executable file (Ussually located in DSSAT47/DSCSM047.EXE). The library is a collection of modules to so far allows:
- Run the model with custom weather, soil, management and crop files.
- Read, modify and write crop files (.SPE, .CUL, .ECO) Some future featrues may include:
- Read, modify and write Soil, Management, Mowing and Weather Files
So far to handle DSSAT Files (Except crop files) I recommend to use tradssat library.
Modules
The library contains three modules:
- run: contains the
CSM_EXE
class. That class is used to initialize the model by passing the DSSAT executable path. The model can be run by the methodrunDSSAT
. After running the model the results will be available at theresults
attribute, and any output file can be accessed by using thegetOutput
method on that attribute. - dssatUtils: Contains some functions and classes to read, parse and write Python Files. It contains the class
CropParser
. That class allows to read the crop files by passing the crop file path as a parameter. The parameters can be modified by using theset_parameter
orset_parameters
methods. - MCMC: Contains the
MCMC
class. That class allows the user to perform a Bayesian calibration of the model by especifying the prior distributions of the parameters. It also contains thesetup_paralell_env
function. That function sets the environment for parallel simulation by creating new directories with the DSSAT Executable and the required files to run a simulation.
All the classes, functions and methods include their docstring, which can be consulted by using the help
function. If you are not an experienced Python progammer: the help
function allows you to see the information of any Class or Function, e.g., if you want to know how to run the model you just have to type help(DSSATClass.runDSSAT)
where DSSATClass
is an already initialized CSM_EXE
instance.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for DSSATTools-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c8e9f5d2a481ba2a5c4c2e27f9e0659bda55e2815b65db2885524c442481c2 |
|
MD5 | a0ddca664b4ea8e0342f73773c2f6ba5 |
|
BLAKE2b-256 | aead63935e20cf357b4bd8cf5f42d2d1f0866c1ead1472002236690d391aaef4 |