C2K
computes Kelvin from Celsius
Contents
Syntax
K = C2K(C)
Description
Obtains Kelvin from temperatures defined in Celsius
Input
- C: scalar or matrix in temperatures in degrees Celsius
Output
- K: temperature(s) in Kelvin
Example
C2K(20)
diff --git a/lib/misc/C2K.m b/lib/misc/C2K.m new file mode 100644 index 00000000..79b91e4c --- /dev/null +++ b/lib/misc/C2K.m @@ -0,0 +1,27 @@ +%% C2K +% computes Kelvin from Celsius + +%% +function K = C2K(C) + % created by Bas Kooijman 2015/01/30; modified 2015/07/28 + + %% Syntax + % K = <../C2K.m *C2K*>(C) + + %% Description + % Obtains Kelvin from temperatures defined in Celsius + % + % Input + % + % * C: scalar or matrix in temperatures in degrees Celsius + % + % Output + % + % * K: temperature(s) in Kelvin + + %% Example + % C2K(20) + + K = C + 273.15; % K, temperature in Kelvin +end + diff --git a/lib/misc/K2C.m b/lib/misc/K2C.m new file mode 100644 index 00000000..b6f7fc28 --- /dev/null +++ b/lib/misc/K2C.m @@ -0,0 +1,27 @@ +%% K2C +% computes Celsius from Kelvin + +%% +function C = K2C(K) + % created by Bas Kooijman 2015/01/30; modified 2015/07/28 + + %% Syntax + % K = <../C2K.m *C2K*>(C) + + %% Description + % Obtains Kelvin from temperatures defined in degrees Celsius + % + % Input + % + % * K: scalar or matrix in temperatures in Kelvin + % + % Output + % + % * C: temperature(s) in degrees Celsius + + %% Example + % K2C(280) + + C = K - 273.15; % K, temperature in Kelvin +end + diff --git a/lib/misc/html/C2K.html b/lib/misc/html/C2K.html new file mode 100644 index 00000000..092ce532 --- /dev/null +++ b/lib/misc/html/C2K.html @@ -0,0 +1,90 @@ + + +
+ +computes Kelvin from Celsius
K = C2K(C)
Obtains Kelvin from temperatures defined in Celsius
Input
Output
C2K(20)
Checks my_data, pars_init and predict files for field inconsistencies
check_my_pet (speciesnm)
Checks my_data, pars_init and predict files for field inconsistencies. Checking points for my_data:
* existence of standard metadata fields -* existence of temp -* existence of pseudodata -* existence of weights -* existence of units (and number consistence with type of data) -* existence of labels (and number consistence with type of data) -* existence of bibkeys and the corresponding entrances in biblist -
Checking points for pars_init:
* existence of standard metapar fields -* model is one of the predefined models -* existence of free -* existence of units -* existence of labels -
Checking points for predict:
* existence of the same fields as in data -* length of prediction results matches the length of data -
Input:
Output:
See run_my_pet
Checks my_data, pars_init and predict files for field inconsistencies
check_my_pet (speciesnm)
Checks my_data, pars_init and predict files for field inconsistencies Checking points for my_data: - existence of standard metadata fields - existence of temp - existence of pseudodata - existence of weights - existence of units (and number consistence with type of data) - existence of labels (and number consistence with type of data) - existence of bibkeys and the corresponding entrances in biblist Checking points for pars_init: - existence of standard metapar fields - model is one of the predefined models - existence of free - existence of units - existence of labels Checking points for predict: - existence of the same fields as in data - length of prediction results matches the length of data
Input
check_files('my_pet')