
## usage
```
./batch-npz-to-wct.sh
./batch-sp-img.sh
./batch-img2bee.sh
```

## notes

get data
```
rsync -av --include=*/ --include=sample_?.npz --exclude=* hyu@wavelet.csi.bnl.gov:/data/hyu/ls4gan/phys-eval/2023-10-25_chunk_cgan_v5_dump/ .
```

install qt for matplotlib qt backend
```
pip install PyQt5
python test-qt.py
```

plotting notes
```
wirecell-ls4gan npz-to-wct -n orig -o ./orig_0.npz gan/fake_b/sample_0.npz
wirecell-ls4gan npz-to-wct -n orig -rd round -o ./orig_r_0.npz gan/fake_b/sample_0.npz
wirecell-plot frame -n wave -t "orig" --interactive -o ./orig_0.png orig_0.npz
wire-cell -l stdout -L debug -c wct-depo-sp.jsonnet -V input=./orig_0.npz -V sp_output=gauss_0.npz -V dnn_output=dnnsp_0.npz -V img_prefix=img_0_
wirecell-plot frame -n wave -t "gauss"  --interactive -o ./gauss_0.png ./gauss_0.npz
wirecell-plot frame -n wave -t "dnnsp" --interactive -o ./dnnsp_0.png ./dnnsp_0.npz
wirecell-img blob-activity-mask -o img_0_apa0.pdf img_0_apa0.tar.gz
wirecell-img blob-activity-stats -f json -o img_0_apa0.json img_0_apa0.tar.gz
```
```
wirecell-plot comp1d -n spec -t "orig" --chmin=0 --chmax=800 --interactive -o tmp.png real_a/orig_0.npz real_b/orig_0.npz fake_a/orig_0.npz fake_b/orig_0.npz
wirecell-plot comp1d -n spec -t "orig" --chmin=1600 --chmax=2080 --interactive -o tmp.png real_a/orig_0.npz real_b/orig_0.npz fake_a/orig_0.npz fake_b/orig_0.npz

wirecell-plot comp1d -n wave -t "orig" --chmin=535 --chmax=536 --interactive -o tmp.png real_a/orig_0.npz fake_a/orig_0.npz
wirecell-plot comp1d -n wave -t "orig" --chmin=535 --chmax=536 --interactive -o tmp.png real_b/orig_0.npz fake_b/orig_0.npz

wirecell-plot comp1d -n wave -t "gauss" --chmin=535 --chmax=536 --interactive -o tmp.png real_a/gauss_0.npz fake_a/gauss_0.npz
wirecell-plot comp1d -n wave -t "gauss" --chmin=535 --chmax=536 --interactive -o tmp.png real_b/gauss_0.npz fake_b/gauss_0.npz
```

```
wirecell-ls4gan comp-metric -m "L1" -d int16  wct/real_a/orig_0.npz wct/real_b/orig_0.npz
wirecell-ls4gan comp-metric -m "L1" -f 2D -r 0 800 800 1600 1600 2560 wct/fake_b/orig_0.npz wct/real_b/orig_0.npz
wirecell-ls4gan comp-metric -m "L1" -f 3D -r 0 800 0 800 0 900 gan/fake_b/sample_0.npz gan/real_b/sample_0.npz
wirecell-ls4gan comp-metric -m "L1" wct/real_a/orig_0.npz wct/fake_a/orig_0.npz
```
```
wirecell-ls4gan comp-metric -m "L1" -t gauss -d float wct/real_a/gauss_0.npz wct/real_b/gauss_0.npz
wirecell-ls4gan comp-metric -m "L1" -t gauss -d float wct/fake_b/gauss_0.npz wct/real_b/gauss_0.npz
```
