APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
138 stars 168 forks source link

Add an emergence event from the wheat model #7743

Closed hanrahs closed 1 year ago

hanrahs commented 1 year ago

I have a manager script that by specifying a variable and then the value of that variable it will trigger a management event or countdown until a management event (ie fertiliser after 10 days, irrigate today etc) .

example Specify the name of a variable [Wheat].Phenology.Zadok.Stage

Specify the value of that variable to trigger management 30

and this will cause my fertilising or irrigation to occur at the correct times.

It works fine with any variables like Zadok.Stage where the value is a double. But I would also like to use it with EmergenceDAS which seems to be an onEventTrigger.

just going to add some correspondence from Dean: I can't get the emergence event working either. EmergenceDAS isn't doing what I thought it would. Plus APSIM doesn't publish an 'emergence' event. Can you add a GitHub issue into our ApsimX repo asking for an emergence event from the wheat model?

hol353 commented 1 year ago

Hi @hanrahs can you attach your simulation if you still have it? Alternatively, can you attach your manager script that sets a variable value?

hol353 commented 1 year ago

FertiliseDaysAfterZadockSrage.zip

hol353 commented 1 year ago

I have added 2 manager scripts into the management toolbox - one for fertilising on a variable value threshold and another for fertilising on an event (e.g. [Wheat].Phenology.PlantEmerged)