Coder Social home page Coder Social logo

tcztzy / wofost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ajwdewit/wofost

0.0 0.0 0.0 4.68 MB

FORTRAN version of the WOrld FOod STudies (WOFOST) crop simulation model.

License: Other

Fortran 98.82% Shell 0.04% Assembly 0.16% Batchfile 0.20% C++ 0.45% PHP 0.18% Pascal 0.15%

wofost's Introduction

WOFOST

FORTRAN version of the WOrld FOod STudies (WOFOST) crop simulation model.

1. Contents of this package

After cloning this repository you will find the following folder structure:

<top_wofost_dir>
    |-bin/             : Location of executable and 'direct.ini'
    |-cropd/           : Crop data files
    |-doc/             : Documentation in LaTeX format
    |-meteo/
           |-cabowe/   : Daily weather files
           |-climd/    : Climatic data <obsoleted since wofost 7.1.7>
    |-output/          : WOFOST output will end up here
    |-runio/           : Configuration files for WOFOST runs
    |-soild/           : Soil data
    |-sources/         : Make scripts and top-level source code
             |-cabowe/ : Source code for CABO weather system
             |-ttutil/ : Source code for TTUTIL library
             |-w60lib/ : Source code of WOFOST model

Note that the <top_wofost_dir> is typically 'WOFOST-master'. However, depending on the branch that you check out, this could be another name.

WOFOST comes with a set of example files for different crop types and soil types. Moreover, example weather files are including from weather station in the Netherlands and the Philipines.

2. Compiling WOFOST

This package does not include a WOFOST binary and therefore the WOFOST FORTRAN source codes must be compiled using the following steps:

  1. Install a fortran90 compiler. The WOFOST7 package has been tested using the GNU fortran90/95 compiler (e.g. gfortran) which can be installed on a wide variety of platforms. For MicroSoft Windows, gfortran can be downloaded from http://www.mingw.org/. For GNU/Linux, gfortran can usually be installed through the systems native package manager. For Mac OSX, gfortran can be downloaded from http://hpc.sourceforge.net/ or installed via the MacPorts system (http://www.macports.org/).
  2. Move to the folder 'sources/' and run either the script 'make_wofost7.bat' (Windows) or 'make_wofost7.sh' (Linux and Mac OSX) from a command shell. Note that these scripts assume that the gfortran executable is in the search path of your shell. The script will compile all fortran source files and link the final executable which will be copied to the 'bin/' folder. Note that these scripts do not perform any error checking, so watch the output.

Some issues with compiling WOFOST:

  • Although WOFOST7 has been written using FORTRAN77, it will not compile using the GNU FORTRAN77 compiler (g77), due to the missing SCAN() function in g77.
  • When installing MinGW on Windows, make sure that the MinGW 'bin' folder is included in your path, otherwise WOFOST will complain about missing DLLs.

3. Checking WOFOST

The WOFOST7 package is configured to run a winter-wheat crop in the Netherlands for the year 1976. Therefore, move to the folder 'bin/' and run the newly created WOFOST7 executable. It will produce a file 'wofost.out' in the 'output' folder. You can compare this file with the file 'reference_results.out' in order to check if the simulation results are reproduced correctly.

4. More information

More information and documentation about WOFOST can be obtained from our website. The WOFOST7.1 reference manual contains detailed information on the use of WOFOST and the meaning of variable names in the various files.

wofost's People

Contributors

ajwdewit avatar

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.