Skip to content

Many changes, new models, etc to get forecast back running for ESA 2014 - #79

Open
mdietze wants to merge 30 commits into
EcoForecast:masterfrom
mdietze:master
Open

Many changes, new models, etc to get forecast back running for ESA 2014#79
mdietze wants to merge 30 commits into
EcoForecast:masterfrom
mdietze:master

Conversation

@mdietze

@mdietze mdietze commented Jul 23, 2014

Copy link
Copy Markdown
Contributor

No description provided.

mdietze added 30 commits July 21, 2014 12:28
…de to use the PEcAn library, data.remote, for downloading MODIS (which calls a Python script). This code saves the data in a different format (netCDF, one file per band) but it also returns the data as an R matrix, so this is also being saved as an RData object. subsequent code is being modified to use that RData object. Added a boolean variable, useMODISTools, to the global_input_parameters, but at the moment backward compatibility is not functional. Need to update download.new.modis.data to use the same library and data format
… to RunJAGS as a matrix, with each row being a different year and each column being a different day. In addition, to save space decided to not save the full MCMC output of the state variable, X, but rather just the 95% CI and median. The full MCMC is still saved for the model parameters.
…he choice of models has been added as a global config. The random walk model has also been modified to analyse multiple years of data by treating the input data as a matrix. Even though the observed data has been rescaled based on the JulyAug and JanFeb means, there appears to be summer and winter trends in the GCC data which make the mean state drift outside the [0,1] bounds. Will try adding a logit transform to the state in order to keep the variable within bounds. Also need to develop alternative process models that involve actual process
…e've moved on to a new year. If so it deletes the file so that the code will re-initialize
…not treat r as a state variable, and to foreward similate the random walk model including the process error. Output now only includes the state X and output files are tagged with the forecast date so that previous forecasts can be easily accessed
* Added dated to reading and writing of RData objects & moved these files to their own folder.

* redid calculation of uncertainties in the standard deviations, noting that you perform stats after transforming into the SD domain. Hope to treat these as distributions at some point rather than just the median

* fixed error in the log likelihood when data is missing -- code had the wrong variable name and wronge ensemble size

* changed data model to use mean GCC not gcc.90

* changed state variable tracking to just be for X

* changed forecast model to random walk

* added additional output of figures to be in PNG format in addition to PDF format since the former will be easier to display on a webpage

* moved the saving of forecasts and last.date.filename to be within the loop over days. This means that we save the forecast for every day with observations, which makes reconstruction easier and also makes the code more tolerant to crashes.
…the file name. The goal of this is to allow multiple competing models to be run without overwriting each other, and avoiding provenance mistakes
…already been downloaded rather than redownload the data
…so that it's possible to use a smaller subset of data for training, and thus a larger set for validation
…o specify starting year as arg to create, and call to ForecastThreshold function, which calculates the probability of crossing a specific quantile threshold as a function of day of year (defaults to 50% leaf state)
…fies year to run and doesn't download new data
@mdietze

mdietze commented Jul 23, 2014

Copy link
Copy Markdown
Contributor Author

Also, the forecast is currently running at http://pecan2.bu.edu/phenology/

@dgianotti

Copy link
Copy Markdown
Contributor

Mike, you're putting us to shame...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants