Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WANT TO CALCULATE YEAR CROP YEILD BUT ARE STUCK RIGHTNOW.......! #17

Closed
mhwahla opened this issue Sep 12, 2023 · 2 comments
Closed

WANT TO CALCULATE YEAR CROP YEILD BUT ARE STUCK RIGHTNOW.......! #17

mhwahla opened this issue Sep 12, 2023 · 2 comments

Comments

@mhwahla
Copy link

mhwahla commented Sep 12, 2023

Hello @daquinterop, I have data of one year weather, soil conditions, and crop management information. Within the domain of crop management, I have also nitrogen levels and biomass with 50 treatments. Our objective is to utilize this dataset for a year crop simulation, I wants outcomes biomass and yield.
Actually, we are following this as input and output. (https://github.com/maso0310/DSSAT_Test/blob/master/01_DSSAT_for_Rice.py)

after this comment of yours
image
we changed CWD TO GWD
BUT GOT A STRAIGHT LINE LIKE THIS
image

We want a simple solution(excel input/ excel output) as we are not that adept pandas users.

THANKS FOR YOUR WONDERFUL CONTRIBUTION TO PYTHON COMMUNITY.

@daquinterop
Copy link
Owner

Hi. I didn't write the script you're following, so I really don't know what you're trying to plot and how it is supposed to look like. I recommend you to follow this example notebook: https://github.com/daquinterop/DSSATTools_notebooks/blob/main/Example%201%20(Basics).ipynb

If you want to have your output as an excel file you can just export it to csv using the to_csv method. The generated output is a pandas dataframe, so if you want to export the Plant Growth output to a csv file you just have to do something like dssat.output['PlantGro'].to_csv("path/to/your/file") .

@mhwahla
Copy link
Author

mhwahla commented Sep 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants