Giter VIP home page Giter VIP logo

an2month's People

Contributors

crvernon avatar kdorheim avatar rplzzz avatar

Watchers

 avatar  avatar

an2month's Issues

add other sampling schemes

Forgot to open issue on Jul 06, 2020, when work started:
currently, from the code, it appears that the monthly fractions are sampled from a distribution once for each realization of annual data. So every year in realization 1 is the same kind of year, every year in realization 2 is the same kind of year (but different from the kind of year in realization 1).

  • verify that is what the code is doing
  • add option for using just the mode estimate from the fit for the fractions from the fit multivariable beta distribution, for all years and realizations
  • add option for sampling across years (year 1 is the same kind of year in every realization, but a different kind of year than year 2)
  • add option for sampling across realizations and years

conversion.R enhancements

  • Instead of hard coding the extra time step to the end of the time series as 01 make it flexible
  • Make digits into a user defined argument with a default setting

raw-data processing

Set up raw-data processing code to calculate the average monthly fraction of precipitation that falls within a year. Output from the raw-data processing should be stored as internal package data as some sort of documented Rdata object like an array or something.

diagnostics

validating that what we see are reasonable.

brainstorm for metrics to look at?

multivariable distributions - T and P separate or together

@claudiatebaldi @kdorheim In trying to work through the code in more depth for doing this enhancement #16,

I've done more careful, line by line combing through the nested functions in data_raw/L3_fit_dirichlet_params.R and data_raw/jobrun.zsh. I think that the code is estimating the parameters of a multivariable beta distribution for the temperature data, and a separate set of parameters for the precipitation data. At least I think.

I didn't catch it in my initial trying to learn the an2month package, I think because of how the functions are nested. And because I think that approach of treating T and P separately is different from the very early notes I had contributing to figuring out what the sampling should look like (around Dec 2018) and then I wasn't involved in the actual work. And then so many issues came up with how fldgen was being called in the pipeline, I didn't return to this until last week/this week.

So do we want to keep T and P separate the way they're implemented, or do we want to estimate 24 parameters together (like I initially thought was happening)? Also thoughts on continuing to use a multivariate beta distribution?

double check data provenance

FYI to @crvernon @FeralFlows

Update names of package data

Package data names will be changing to alpha_<model> instead of frac_<model>. Update relevant code to reflect this.

Correct the documentation of function `monthly_downscaling`

Documentation says the input alpha to the function monthly_downscaling should be

#' @param alpha Matrix[ngrid, 12] of the alpha parameters for the Dirichlet
#' distribution.  These values are included as package data.  For more details
#' on how they are calculated see data-raw.

But the code is actually expecting alpha to be a list, one entry of which is that matrix (under the appropriate variable name).

Will probably address this under the PR for #16, and will just add any other additional documentation corrections that come up here.

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.