Git Product home page Git Product logo

plant-food-research-open / fieldnbalance Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 4.0 189.93 MB

Nitrogen balance model components and test procedures

Home Page: https://plant-food-research-open.github.io/FieldNBalance/

License: GNU General Public License v3.0

C# 0.51% Jupyter Notebook 99.32% Python 0.17% Shell 0.01%
biophysical-modeling crop-model crop-modeling mechanistic-modeling mechanistic-models nitrogen-balance dotnet python

fieldnbalance's Introduction

FieldNBalance

Unit Tests Validation Tests pages-build-deployment

Website: FieldNBalance

Nitrogen balance model components and test procedures

fieldnbalance's People

Contributors

hamishbrownpfr avatar jbris avatar nibble-byte avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

fieldnbalance's Issues

Remove met data from model interface

It should not be necessary to pass the met data in through the interface as all the data is in the source code. Could easily refactor so the model gets its met data locally from the metfile name provided in the interface.

Moisture test data leading to overlapping points in matplotlib graphs

@HamishBrownPFR

Regarding the issue with the matplotlib graphs...

The issue is specific to Moisture test sets and graphs

In https://github.com/Plant-Food-Research-Open/FieldNBalance/blob/main/TestGraphs/MakeGraphs/Moisture.py#L40, you're loading your test sets from the TestComponents/TestSets/Moisture/OutPuts subdirectory

If I read the test set data from OutPuts, and use that to generate visualisations, then the graphs look ok: https://plant-food-research-open.github.io/FieldNBalance/

That's where your Moisture test sets are currently stored: https://github.com/Plant-Food-Research-Open/FieldNBalance/tree/main/TestComponents/TestSets/Moisture/OutPuts

However, in the current pipeline, the Moisture test sets will be written to the TestComponents/TestSets/Moisture/Outputs subdirectory. After this happens, the visualisations look strange...with overlapping points

All the other test sets are written to and plotted from an Outputs subdirectory. So this is basically a typo that's specific to Moisture

Anyway, I think we have a data quality issue with the generated Moisture test set data (duplicate data maybe?). I'm not familiar enough with this data to help, so you'll probably need to inspect it yourself

Drainage coefficients

Add table with drainage coefficients for each met site and mechinisum to read them into the model

Crop coefficient

Incorporate data from WS1 analysis
Review forage coefficients based on Steves analysis
Incorporate carrot coeffs
Incorporate data from WS2
Make potato separate category and add cultivars

copy right notice

<one line to give the program's name and a brief idea of what it does.>
Author: Hamish Brown
Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited

Do N balance on a daily loop

The model is currently structured to calculate each of the components for the duration of the simulation and then stick them together to do the N balance. This worked well when the model was quite simple. However, we have had to add more complexity into the loss model and feedbacks to reduce uptake if soil N is limited which has resulted in a code structure that is quite hard to read.
It would be better to turn this into a true daily time-step model so it is easier to follow for others needing to ready of debug the code in the future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.