Commit 1214a26c authored by Clément Haëck's avatar Clément Haëck
Browse files

Add other parameters to histogram file

parent 7918fa97
......@@ -45,6 +45,8 @@ VARS = ['CHL', 'sst']
MASKS = ['frt', 'bkg']
MASKS_VAR = ['mask_' + m for m in MASKS]
INFILE_PARAMS = ['threshold', 'scale', 'number', 'coef']
def main(args):
m_start("Loading data")
......@@ -108,6 +110,8 @@ def main(args):
hist = xr.merge(hists_var)
hist.attrs['VARS'] = VARS
hist = hist.expand_dims({d: [args[d]] for d in INFILE_PARAMS})
# We have at most every pixel of an image in one bin,
# so approx 1000*1000 = 1e6 values. Uint32 stores up to 2**32~4e9.
encoding = {v: {'dtype': 'uint32', '_FillValue': 2**30-1}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment