Code Monkey home page Code Monkey logo

jnsmr's People

Contributors

brownag avatar

Stargazers

 avatar

Watchers

 avatar  avatar

jnsmr's Issues

"Undefined" classes of soil moisture regimes and their subdivisions

@dylanbeaudette pointed out an example of an extent (Coweeta) where all grid cells return "Perudic" moistureRegime with NA regimeSubdivision1 and regimeSubdivision2.

This has been partially addressed in 66c29b4 which modifies the factor levels assigned when there is a valid SMR but no subdivision. The " " values returned are converted to "Undefined" on R side for consistency in SpatRaster method regardless of extent. You get expected values when you use a larger (e.g. 10x coweeta) extent (that has more variation in SMR as well as defined subdivisions)

For a more general fix might need some adjustment in the Java code to make sure the values returned when the subdivision is "Undefined" are consistent. These values appear to be missing (NA) in the case where that is the only level, which is unexpected. Possibly a degenerate case in the Java batching method used by jNSMR:::batch2()

The " " values returned are converted to "Undefined" on R side for consistency, and this is what you get when you use a larger extent that has more variation in SMR as well as defined subdivisions

documentation for batch mode output

Would be nice to have a short section in the manual page on how to interpret the results. Field names are mostly self-explanatory, but not all.

wrapper functions for SCAN/SNOTEL, CDEC, etc

Would be nice to have some convivence functions for converting the output from e.g. fetchSCAN() into the format used in batch mode. Mostly preservation of IDs, long → wide format, etc..

Customization of evapotranspiration related parameters

There may be instances where the estimated PET in Newhall is unrealistic for one or more reasons.

One generic work around for this would be to allow an optional "crop coefficient" column/raster input that would allow for scaling/local modification of the PET->AET based on dominant vegetation, local experimental data, etc.

Saturated conditions, O horizon presence/absence

The cryic STR summer temperature criteria differ based on the presence or absence of O horizon and saturated conditions

Cryic (Gr. kryos, coldness; indicating very cold
soils).—Soils in this temperature regime have a mean annual temperature between 0 and 8 ᵒC but do 
not have permafrost.
1.  In mineral soils the mean summer soil temperature (June, July, and August in the Northern 
Hemisphere and December, January, and February in the Southern Hemisphere) either at a depth of 50 
cm below the soil surface or at a densic, lithic, or paralithic contact, whichever is shallower, is 
as follows:
a. If the soil is not saturated with water during some part of the summer and
(1) If there is no O horizon: between 0 and 15 ᵒC; or
(2) If there is an O horizon: between 0 and 8 ᵒC; or
b. If the soil is saturated with water during some part of the summer and
(1) If there is no O horizon: between 0 and 13 ᵒC; or
(2) If there is an O horizon or a histic epipedon: between 0 and 6 ᵒC.
  • Saturation (@ 50cm) can be toggled for a single simulation
  • O horizon presence/absence can be toggled for a single simulation
  • The grid-based methods (SpatRaster) should allow for a presence/absence grids of saturation and O horizon to be supplied

These changes will be incorporated in PR #6 which seeks to fix calculation issues (and extend them) for frigid/cryic determination.

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.