Code Monkey home page Code Monkey logo

r-apsim's Introduction

A package containing general purpose utility functions for loading and manipulating APSIM output and met files.

Release Notes

0.9.2

  • loadApsim has new option: skipEmpty, which will skip output files with no data.
  • prepareMet now writes dates in AU format to handle Apsim 7.9 which can now read dates in addition to year/day

0.9.1

  • loadMet now allows met files to be streamed. Just pass it the complete url.
  • Updated loadMet documentation to point to metFile object description.

0.9.0

  • NEW: Added command to load APSIM Next Generation data files (GetApsimNGTable)
  • Optimised loadMet function; now loads much faster.
  • loadMet function now correctly reads constants in met files.

0.8.3

  • Multi-year met data that ends with an incomplete year is now processed correctly.
  • loadApsim now uses the current working directory if no directory is given.
  • Fixed bug where constants were including a leading space.
  • A vector of units is now required for prepareMet.

0.8.2

  • loadMet will now read existing constants.
  • metFile class has had a slot for constants added. Constants are a character vector of the format: variable=value.
  • prepareMet now correctly handles R Date formatted dates.

0.8.1

  • Fix for reading simulator output processed on a Condor cluster.

0.8.0

  • Initial Release.

r-apsim's People

Contributors

fainges avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

apsiminitiative

r-apsim's Issues

insertTavAmp function has an issue

The tav and amp computation have been swapped. Tav is instead the mean of the averaged temperature and amp the range of the averaged temperature. so it should be the following
met@tav <- mean(mmt$V1)
met@amp <- max(mmt$V1) - min(mmt$V1)

instead of
met@tav <- max(mmt$V1) - min(mmt$V1)
met@amp <- mean(mmt$V1)

The Nasa Power data has similar issue as it uses this APSIM package to generate the .met files.

I tried to edit the script "MetFunctions.R" a week ago, but it was changed.

Thanks,
Andy

feature request: add reproducible examples?

Thanks a lot for making the APSIM interface to R, this is great!

I was wondering whether it would be possible to include also some runable examples, including some APSIM config files in the package? That would be great to help the user grasp how functions work.

Usually, one would just need to put the files into a specific folder, say inst/ in the package, then just calling the function system.file() would do the trick. Check for example the ?raster page from package raster.

Thanks a lot!!

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.