hdrstats

hdrstats [OPTIONS] COMMAND [ARGS]...

Console script for hdrstats.

Options

VALUE OPTIONS:

-c, --config <PATH>

path of config file to load

-ca, --configalias <TEXT>

store config in alias section. use to store multiple settings for same command

-oc, --outconfig <PATH>

path of config file to write/update

FLAGS (DEFAULT TRUE):

--inputalias, --no-inputalias

if true uses -ca for loading settings

Default

True

HELP:

--version

Show the version and exit.

Default

False

Commands

img-cr

get illuminance and contrast data from…

evalglare

run evalglare for set of image and extract…

kde

generate KDE for samples

kde-error

calculate error between 2 2D data files…

corr

compute statistics between pairs of data

qq

output qq pairs, if more than 1 series are…

logist-error

calculate error between 2 2D data files…

softmax

calculate softmax based on coef file (from )

img-cr

hdrstats img-cr [OPTIONS] ARG1

get illuminance and contrast data from images (assumes all images are the same size and view parameters) outputs to stdout: E_v GCR stddev absdev

Arguments

ARG1

Required argument

Options

FLAGS (DEFAULT FALSE):

--hblur, --no-hblur

apply human blur before processing

Default

False

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False

evalglare

hdrstats evalglare [OPTIONS] ARG1

run evalglare for set of image and extract specific values

Arguments

ARG1

Required argument

Options

VALUE OPTIONS:

-evopts <TEXT>

extra options for evalglare

Default

-out <TEXT>

basename of output

-srcvalues <TEXTS>

which values to report for each source, can be: ‘pixels’, ‘x-pos’, ‘y-pos’, ‘L_s’, ‘Omega_s’, ‘Posindx’, ‘L_b’, ‘L_t’, ‘E_vert’, ‘Edir’, ‘Max_Lum’, ‘Sigma’, ‘xdir’, ‘ydir’, ‘zdir’, ‘Eglare_cie’, ‘Lveil_cie’, ‘teta’, ‘glare_zone’

Default

-values <TEXTS>

which values to report, can be: ‘dgp’, ‘av_lum’, ‘E_v’,’lum_backg’, ‘E_v_dir’, ‘dgi’, ‘ugr’, ‘vcp’, ‘cgi’, ‘lum_sources’, ‘omega_sources’, ‘Lveil’, ‘Lveil_cie’, ‘dgr’, ‘ugp’, ‘ugr_exp’, ‘dgi_mod’, ‘av_lum_pos’, ‘av_lum_pos2’, ‘med_lum’, ‘med_lum_pos’, ‘med_lum_pos2’, ‘T1’, ‘T2’T1/T2 compute the Ev and contrast terms of DGP

Default

T1 T2 dgp E_v ugr

FLAGS (DEFAULT TRUE):

--headers, --no-headers
Default

True

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False

kde

hdrstats kde [OPTIONS] ARG1

generate KDE for samples

Arguments

ARG1

Required argument

Options

VALUE OPTIONS:

-idx <INTEGER>

column to build kde from

Default

0

-resample <FLOATS>
-scale <INTEGER>
-sigma <FLOAT>

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False

kde-error

hdrstats kde-error [OPTIONS] ARG1 ARG2 OUTPREF

calculate error between 2 2D data files using gaussian KDE

Arguments

ARG1

Required argument

ARG2

Required argument

OUTPREF

Required argument

Options

VALUE OPTIONS:

-baselinei <INTEGER>

use i as baseline for KDE of all columns

-resample <FLOATS>

give as a single number to autoresample between min/max

-rng <INTS>
-sidx <INTEGER>

first column of data (to exclude labels)

Default

0

-sigma <FLOAT>

FLAGS (DEFAULT TRUE):

--relative, --absolute
Default

True

FLAGS (DEFAULT FALSE):

--dototal, --no-dototal
Default

False

--legacy, --no-legacy
Default

False

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False

corr

hdrstats corr [OPTIONS] DATAF

compute statistics between pairs of data

Arguments

DATAF

Required argument

Options

VALUE OPTIONS:

-drange <INTS>

index range for data series, if None gets all

-labels <TEXTS>

input custom series labels, by default uses file name and index or –header option

-x_vals <INTS INTS,INTS>

index for xvals

Default

0,0

-y_vals <INTS INTS,INTS>

index for yvals

Default

-1

FLAGS (DEFAULT TRUE):

--pearson, --no-pearson
Default

True

--spearman, --no-spearman
Default

True

FLAGS (DEFAULT FALSE):

--header, --no-header

indicates that data has a header row to get series labels (overridden by labels)

Default

False

--lin, --no-lin

linear regression (r^2)

Default

False

--mae, --no-mae

mean absolute error

Default

False

--msd, --no-msd

mean signed deviation

Default

False

--pvals, --no-pvals
Default

False

--rbc, --no-rbc
Default

False

--rmae, --no-rmae

relative mean absolute error

Default

False

--rmsd, --no-rmsd

relative mean signed deviation

Default

False

--rmse, --no-rmse

root mean square error

Default

False

--rows, --no-rows

get data rows instead of columns

Default

False

--rrmse, --no-rrmse

relative root mean square error

Default

False

--weatherfile, --no-weatherfile

input files will be read as weather files: 0 month, 1 day, 2 hour, 3 dirnorn, 4 difhoriz, 5 globhoriz, 6 skycover

Default

False

--xheader, --no-xheader

indicates that data has a header column to get x-axis labels (overridden by xlabels)

Default

False

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

qq

hdrstats qq [OPTIONS] DATAF

output qq pairs, if more than 1 series are concatenated and calculated together

Arguments

DATAF

Required argument

Options

VALUE OPTIONS:

-drange <INTS>

index range for data series, if None gets all

-x_vals <INTS INTS,INTS>

index for xvals

Default

0,0

-y_vals <INTS INTS,INTS>

index for yvals

Default

-1

FLAGS (DEFAULT FALSE):

--header, --no-header

indicates that data has a header row to get series labels (overridden by labels)

Default

False

--rows, --no-rows

get data rows instead of columns

Default

False

--xheader, --no-xheader

indicates that data has a header column to get x-axis labels (overridden by xlabels)

Default

False

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

logist-error

hdrstats logist-error [OPTIONS] ARG1 ARG2 OUTPREF COEF

calculate error between 2 2D data files using softmax distributions from logistic regression

Arguments

ARG1

Required argument

ARG2

Required argument

OUTPREF

Required argument

COEF

Required argument

Options

VALUE OPTIONS:

-baselinei <INTEGER>

use i as baseline for KDE of all columns

Default

0

-rng <INTS>
-weightlimit <FLOAT>

minimum probability to include in calculation

Default

0.0

FLAGS (DEFAULT TRUE):

--relative, --absolute
Default

True

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False

softmax

hdrstats softmax [OPTIONS] COEF

calculate softmax based on coef file (from )

Arguments

COEF

Required argument

Options

VALUE OPTIONS:

-outc <TEXT>

if given, save coefs to file

-rng <FLOATS>

if none, returns values from dataf (required if coef)

-weights <FLOATS>
-x <INTEGER>

column of training x vals

Default

0

-y <INTEGER>

column of training y vals

Default

-1

FLAGS (DEFAULT FALSE):

--sort, --no-sort
Default

False

HELP:

-opts, --opts

check parsed options

Default

False

--debug

show traceback on exceptions

Default

False

--version

Show the version and exit.

Default

False