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 @@ + + + + + C2K

C2K

computes Kelvin from Celsius

Contents

Syntax

K = C2K(C)

Description

Obtains Kelvin from temperatures defined in Celsius

Input

Output

Example

C2K(20)

\ No newline at end of file diff --git a/lib/pet/html/check_my_pet.html b/lib/pet/html/check_my_pet.html index 18efe617..7000ee2f 100644 --- a/lib/pet/html/check_my_pet.html +++ b/lib/pet/html/check_my_pet.html @@ -6,7 +6,7 @@ check_my_pet

check_my_pet

Checks my_data, pars_init and predict files for field inconsistencies

Contents

Syntax

check_my_pet (speciesnm)

Description

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:

Example of use

See run_my_pet

Checking the my_data file

Checking the pars_init file

Checking the predict file

check_my_pet

Checks my_data, pars_init and predict files for field inconsistencies

Contents

Syntax

check_my_pet (speciesnm)

Description

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

  • speciesnms: string with species name or cell vector with multiple species names

Example of use

check_files('my_pet')

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Checking the my_data file

%%%%%%%%%%%%%%%%%%%%%%%%%%%

checking the existence of metadata fields

checking if metadata.species matches speciesnm

checking the existence of temp in the data structure

checking the existence of psd in the data structure

checking the existence of weight in the data structure

checking the existence of units in the txt_data structure

checking the existence of labels in the txt_data structure

checking the existence of facts

checking the existence of bibkeys in the txt_data structure

checking the existence of bibkeys in the biblist structure

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Checking the pars_init file

%%%%%%%%%%%%%%%%%%%%%%%%%%%

checking the existence of metapar fields

checking the existence of metapar fields

checking the existence of par fields

checking the existence of free in the par structure and if it filled with either 0 or 1

checking the existence of units in the txt_par structure

checking the existence of labels in the txt_par structure

checking the realism of the par set

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Checking the predict file

%%%%%%%%%%%%%%%%%%%%%%%%%%%

checking the existence of psd in the Prd_data structure

checking for the bijection data-predictions

checking for the pseudodate predictions in data