daquinterop / Py_DSSATTools

A Python library for crop modeling using DSSAT
GNU General Public License v3.0
45 stars 16 forks source link

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

Closed mhwahla closed 11 months ago

mhwahla commented 1 year ago

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 commented 12 months ago

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 commented 12 months ago

Hello Daquinterop, thanks so much for your reply, I had run and exlpored all 4 of your of the example notebooks.

You have done awesome work.

I am following on your this recent comment and I will get back to you soon.

Regards.

On Thu, 14 Sept 2023, 05:59 Diego Quintero, @.***> wrote:

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") .

— Reply to this email directly, view it on GitHub https://github.com/daquinterop/Py_DSSATTools/issues/17#issuecomment-1718500955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMLFIAI3GQGGANNN3NKBB7LX2JJFZANCNFSM6AAAAAA4UCMZCA . You are receiving this because you authored the thread.Message ID: @.***>