daquinterop / Py_DSSATTools

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

GHG.OUT #22

Closed osherboudara-work closed 11 months ago

osherboudara-work commented 12 months ago

Hello @daquinterop !

Hope you are doing well. I have looked through the DSSAT output files and I noticed that there is a file called GHG.OUT that I am interested in using. Is there anyone this file can be outputted after the model execution? Output as a dataframe or just the GHG.OUT file itself would suffice.

Thank you so much!

daquinterop commented 11 months ago

Hi. Yes, you can generate it. In the simulation_controls attribute of the Management instance you can define what outputs will be created. However, not all of them will be saved in the outputs attribute of the DSSAT instance, for your case you would have to read the GHG.OUT from the folder where DSSAT is running. If this is not enough information for you please let me know

El vie, 1 dic 2023 a las 11:40, osherboudara-work @.***>) escribió:

Hello @daquinterop https://github.com/daquinterop !

Hope you are doing well. I have looked through the DSSAT output files and I noticed that there is a file called GHG.OUT that I am interested in using. Is there anyone this file can be outputted after the model execution? Output as a dataframe or just the GHG.OUT file itself would suffice.

Thank you so much!

— Reply to this email directly, view it on GitHub https://github.com/daquinterop/Py_DSSATTools/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXEPKUJ6THZOKCA4QX2XKDYHIJBLAVCNFSM6AAAAABADFUD7WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDCMZSGMZDSMQ . You are receiving this because you were mentioned.Message ID: @.***>

--

__

Diego A. Quintero P. Data, Python and Mathematical modeling enthusiast.

osherboudara-work commented 11 months ago

@daquinterop That makes sense. My only issue is I am not sure how to generate the GHG.out file using the Management library. Can you show me an example of how that would work?

daquinterop commented 11 months ago

Well, I have never had to generate that file, so I really don't know. However, I think that file must be generated by the module that simulates Nitrogen. So you might be able to generate that file by turning nitrogen simulation and output on. Just do:

management.simulation_controls["NITRO"] ="Y" management.simulation_controls["NIOUT"] ="Y"

Let me know if that works.

El lun, 4 dic 2023 a las 8:32, osherboudara-work @.***>) escribió:

@daquinterop https://github.com/daquinterop That makes sense. My only issue is I am not sure how to generate the GHG.out file using the Management library. Can you show me an example of how that would work?

— Reply to this email directly, view it on GitHub https://github.com/daquinterop/Py_DSSATTools/issues/22#issuecomment-1838758055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXEPKXHVBHZXQCFZDDOMETYHXNGRAVCNFSM6AAAAABADFUD7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZYG42TQMBVGU . You are receiving this because you were mentioned.Message ID: @.***>

--

__

Diego A. Quintero P. Data, Python and Mathematical modeling enthusiast.

osherboudara-work commented 11 months ago

@daquinterop The GHG.out file is outputted after I use both of those lines of code so it worked! Is there a document or somewhere I can look that has all the simulation controls that I can configure? Thank you for your help!

daquinterop commented 11 months ago

Glad it worked! The best source is the DSSAT documentation. You find it in DSSAT desktop: [image: image.png] I think volume 4 is the best source to understand all the input and output variables.

On Mon, Dec 4, 2023, 9:28 AM osherboudara-work @.***> wrote:

The GHG.out file is outputted after I use both of those lines of code so it worked! Is there a document or somewhere I can look that has all the simulation controls that I can configure? Thank you for your help!

— Reply to this email directly, view it on GitHub https://github.com/daquinterop/Py_DSSATTools/issues/22#issuecomment-1838884432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXEPKR55A536X55DV2EEOTYHXTZHAVCNFSM6AAAAABADFUD7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZYHA4DINBTGI . You are receiving this because you were mentioned.Message ID: @.***>