You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ For more information about this file see also [Keep a Changelog](http://keepacha
25
25
- Added `PEcAn.data.land::to_co2e()` for converting SOC change, CH4, and N2O to CO2-equivalent emissions using IPCC Global Warming Potential values.
26
26
27
27
### Fixed
28
+
- Fixed broken pecanproject.github.io, pecan.gitbooks.io, and other outdated documentation links across book_source, tutorials, models, modules, web, and shiny files (#3710).
29
+
- Added note to DEV-INTRO.md documenting Traefik workaround for Apple Silicon (ARM64) Macs: use `traefik:v2.11` with `platform: linux/arm64` to fix 404 errors (#3910)
30
+
- Fixed `web/08-finished.php`: show database info instead of "Still running" when workflow folder doesn't exist locally (#3501).
28
31
29
32
### Changed
30
33
- Updated Docker architecture documentation to match current docker-compose.yml: removed portainer/minio/thredds, added rstudio/api sections, updated service lists and volumes (#3268).
@@ -39,6 +42,7 @@ For more information about this file see also [Keep a Changelog](http://keepacha
`PEcAn.visualization`, `rjags`, `sirt`, and `sp` from `Imports` to
41
44
`Suggests` (@omkarrr2533, #3599).
45
+
- Management events specified via `events.json` are now required to specify a crop code for each planting event, so that models can know when to restart with a different PFT (#3828, #3836).
You can now use the command `docker compose` to work with the containers setup for development. **The rest of this document assumes you have done this step.**
67
67
68
+
_Note for Apple Silicon (M1/M2/M3/M4) macOS users:_ The default Traefik image (`traefik:v2.9`) is built only for `linux/amd64` and cannot reliably communicate with the Docker socket when running under emulation on ARM64. This causes all web routes to return 404 errors. To fix this, add the following to your `docker-compose.override.yml` under `services:` and above `pecan:`:
69
+
```sh
70
+
traefik:
71
+
image: traefik:v2.11
72
+
platform: linux/arm64
73
+
```
74
+
68
75
### First time setup
69
76
70
77
The steps in this section only need to be done the first time you start working with the stack in docker. After this is done you can skip these steps. You can find more detail about the docker commands in the [pecan documentation](https://pecanproject.github.io/pecan-documentation/latest/docker-index.html).
@@ -246,7 +253,7 @@ A better way of doing this is developed as part of GSOC, in which case you can l
246
253
247
254
## PEcAn URLs
248
255
249
-
You can check the RabbitMQ server used by pecan using <https://rabbitmq.pecan.localhost> on the same server that the docker stack is running on. You can use rstudio either with <http://server/rstudio> or at <http://rstudio.pecan.localhost>. To check the traefik dashboard you can use <http://traefik.pecan.localhost>.
256
+
You can check the RabbitMQ server used by pecan using <https://rabbitmq.pecan.localhost> on the same server that the docker stack is running on. You can use rstudio either with `http://server/rstudio` or at <http://rstudio.pecan.localhost>. To check the traefik dashboard you can use <http://traefik.pecan.localhost>.
250
257
251
258
If the stack is running on a remote machine, you can use ssh and port forwarding to connect to the server. For example `ssh -L 8000:localhost:80` will allow you to use <http://rabbitmq.pecan.localhost:8000/> in your browser to connect to the remote PEcAn server RabbitMQ.
Copy file name to clipboardExpand all lines: base/db/R/get.trait.data.pft.R
+45-10Lines changed: 45 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,54 @@
1
1
##' Get trait data from the database for a single PFT
2
2
##'
3
-
##' @details `pft` should be a list containing at least `name` and `outdir`, and optionally `posteriorid` and `constants`. BEWARE: All existing files in `outir` will be deleted!
4
-
##' @param pft list of settings for the pft whose traits to retrieve. See details
5
-
##' @param modeltype type of model that is used, this is used to distinguish between different pfts with the same name.
3
+
##' @md
4
+
##' Queries BETYdb for trait observations and prior distributions for a single
5
+
##' plant functional type (PFT). Results are saved to files
6
+
##' in the PFT output directory (`pft$outdir`), and also registered in the
7
+
##' database as posterior records when `write = TRUE`.
8
+
##'
9
+
##' @details
10
+
##' `pft` should be a list containing at least `name` and `outdir`, and
11
+
##' optionally `posteriorid` and `constants`.
12
+
##'
13
+
##' **File-based side effects (saved to `pft$outdir`):**
14
+
##' \describe{
15
+
##' \item{`trait.data.Rdata`}{Contains a single object `trait.data`: a named
16
+
##' list of data frames, one per trait. Each data frame has columns from
Copy file name to clipboardExpand all lines: base/utils/R/datasets.R
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
#' Standardized variable names and units for PEcAn
3
3
#'
4
4
#' A lookup table giving standard names, units and descriptions for variables in PEcAn input/output files.
5
-
#' Originally based on the \href{https://nacp.ornl.gov/MsTMIP_variables.shtml}{MsTMIP} standards,
5
+
#' Originally based on the \href{https://nacp-prod.ornl.gov/MsTMIP_variables.shtml}{MsTMIP} standards,
6
6
#' with additions to accomodate a wider range of model inputs and outputs.
7
7
#' The standard_vars table replaces both `mstmip_vars` and `mstmip_local`,
8
8
#' both of which are now deprecated.
@@ -13,7 +13,7 @@
13
13
#' @format data frame, all columns character
14
14
#' \describe{
15
15
#' \item{Variable.Name}{Short name suitable for programming with}
16
-
#' \item{standard_name}{Name used in the NetCDF \href{http://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html}{CF metadata conventions} }
16
+
#' \item{standard_name}{Name used in the NetCDF \href{https://cf-convention.github.io/Data/cf-standard-names/current/build/cf-standard-name-table.html}{CF metadata conventions} }
17
17
#' \item{Units}{Standard units for this variable. Do not call variables by these names if they are in different units.
18
18
#' See `ud_convert` for conversions to and from non-standard units}
19
19
#' \item{Long.Name}{Human-readable variable name, suitable for e.g. axis labels}
0 commit comments