Pre- Post- process for DSSAT-Python
First add: Qing/NUIST 04/26/2018
Author: Qing Sun
College of Applied Meteorology,
Nanjing University of Information Science & Technology (NUIST)
This a python I/O for writing and reading files of DSSAT input and output.
This is an open source code. Only for research use. Detail procedure will be written later on.
Add detail 2019.02.20:
Data needed:
- Soil data (Such as SoilGrids data: CHINA_SoilGrids.SOL)
- Climate data solar radiation precipatation wind tmax tmin tmean
- Rice planting mask (Such as rice_mask_cn.nc)
- RIX file (Such as EXAMPLE_RICE.RIX)
- ALL .CDE files
- DSSAT setting file for Linux/Mac: DSSATPRO.L47
- Batch run file: DSSBatch.v47
Pathes are needed:
- climate data path
- Dssat run path
- Dssat executable file path
- Crop mask path
File description: Main run file: run_dssat_main.py Post process file: post_dssat.py Read mask from: pro_mask.py
No use and delete: latlon.py modify_srad.py
Update: 2018.12.21 update post process to read all Summary.OUT then write to .nc file.
Update: 2019.02.20
-
Clear some redundancy code. Add some detail note in some files.
-
Fix read future climate data index error. Update climate list read code.
-
Expand domain from south China to whole China. Add rice calendar from RiceAtlas. Add rice regional genetype and mask. Add CO2 subroutine.
-
Need to modify: a. change date from 1900s to 2000s in /dssat-csm/Utilities/DATES.for Line 81 and Line 578. b. add heat stress function in /CERES-Rice/RI_Grosub.for
Update: 2019.02.25
-
Add python mpi run file:run_mpi_dssat.py Note: only can be run in one cpu for multi-core.
-
Deploy in NUIST server and fix small bugs.
-
Add post process in main code.