Skip to content

Commit

Permalink
Merge branch 'develop' into check-on-R4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
infotroph authored Jul 30, 2024
2 parents 2481f31 + 88a1350 commit 8393656
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions book_source/03_topical_pages/02_pecan_standards.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ General Note: dates in the database should be date-time (preferably with timezon
```{r, echo=FALSE,warning=FALSE,message=FALSE}
names<-c("<b>air_temperature</b>", "air_temperature_max", "air_temperature_min", "<b>air_pressure</b>",
"mole_fraction_of_carbon_dioxide_in_air", "moisture_content_of_soil_layer", "soil_temperature ",
"relative_humidity", "<b>specific_humidity</b>", "water_vapor_saturation_deficit","<b>surface_downwelling_longwave_flux_in_air</b>",
"relative_humidity", "<b>specific_humidity</b>", "water_vapor_saturation_deficit", "<b>surface_downwelling_longwave_flux_in_air</b>",
"<b>surface_downwelling_shortwave_flux_in_air</b>", "surface_downwelling_photosynthetic_photon_flux_in_air",
"<b>precipitation_flux</b>", " ","wind_speed","<b>eastward_wind</b>", "<b>northward_wind</b>")
"<b>precipitation_flux</b>", " ", "wind_speed", "<b>eastward_wind</b>", "<b>northward_wind</b>")
units <-c("K","K","K","Pa","mol/mol","kg m-2","K","%","1","Pa","W m-2","W m-2","mol m-2 s-1", "kg m-2 s-1", "degrees", "m/s", "m/s", "m/s")
Expand All @@ -45,18 +45,18 @@ narr <- c("air","tmax","tmin","","","","","rhum","shum","","dlwrf","dswrf","","a
ameriflux <- c("TA(C)","" ,"" , "PRESS (KPa)","CO2","","TS1(NOT DONE)",
"RH","CALC(RH)","VPD(NOT DONE)","Rgl","Rg","PAR(NOT DONE)","PREC","WD","WS","CALC(WS+WD)","CALC(WS+WD)")
in_tab<-cbind(names,units,bety,isimip,cruncep,narr,ameriflux)
in_tab <- cbind(names, units, bety, isimip, cruncep, narr, ameriflux)
colnames(in_tab)<- c("CF standard-name","units","BETY","Isimip","CRUNCEP","NARR", "Ameriflux")
if (require("DT")){
datatable(in_tab, extensions = c('FixedColumns',"Buttons"),
options = list(
dom = 'Bfrtip',
scrollX = TRUE,
fixedColumns = TRUE,
buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
)
buttons = c('copy', 'csv', 'excel', 'pdf', 'print'),
escape = FALSE
)
)
}
```
Expand All @@ -66,8 +66,7 @@ datatable(in_tab, extensions = c('FixedColumns',"Buttons"),
* standard_name is CF-convention standard names
* units can be converted by udunits, so these can vary (e.g. the time denominator may change with time frequency of inputs)
* soil moisture for the full column, rather than a layer, is soil_moisture_content
* A full list of PEcAn standard variable names, units and dimensions can be found here: https://github.com/PecanProject/pecan/blob/develop/base/utils/data/standard_vars.csv

* The list of PEcAn standard variable names, units and dimensions are provided in a table in the [Output Standards]{#OutputStandards} section and maintained in the file: [base/utils/data/standard_vars.csv](https://github.com/PecanProject/pecan/blob/develop/base/utils/data/standard_vars.csv).

For example, in the [MsTMIP-CRUNCEP](https://www.betydb.org/inputs/280) data, the variable `rain` should be `precipitation_rate`.
We want to standardize the units as well as part of the `met2CF.<product>` step. I believe we want to use the CF "canonical" units but retain the MsTMIP units any time CF is ambiguous about the units.
Expand All @@ -78,15 +77,13 @@ The key is to process each type of met data (site, reanalysis, forecast, climate

##### Soil Data

Check out the [Soil Data] section on more into on creating a standard soil data file.
See the [Soil Data] section on more into on creating a standard soil data file.

##### Vegetation Data

Check Out the [Vegetation Data] section on more info on creating a standard vegetation data file


See the [Vegetation Data] section on more info on creating a standard vegetation data file

### Output Standards
### Output Standards {#OutputStandards}

* created by `model2netcdf` functions
* based on format used by [MsTMIP](http://nacp.ornl.gov/MsTMIP_variables.shtml)
Expand Down

0 comments on commit 8393656

Please sign in to comment.