nomads-cloud: double sqrt for better clouds
This commit is contained in:
parent
e2ef8aba93
commit
119b56956c
@ -22,7 +22,7 @@ writers.writeDashBin "nomads-cloud" ''
|
|||||||
height=$(${jq}/bin/jq '.[0].header.ny' < "$json_path")
|
height=$(${jq}/bin/jq '.[0].header.ny' < "$json_path")
|
||||||
|
|
||||||
# The maximum gray value. Must be bigger than 0 and less than 65536.
|
# The maximum gray value. Must be bigger than 0 and less than 65536.
|
||||||
maxval=256
|
maxval=1000
|
||||||
|
|
||||||
# pgm - Netpbm grayscale image format
|
# pgm - Netpbm grayscale image format
|
||||||
# http://netpbm.sourceforge.net/doc/pgm.html
|
# http://netpbm.sourceforge.net/doc/pgm.html
|
||||||
@ -32,7 +32,7 @@ writers.writeDashBin "nomads-cloud" ''
|
|||||||
echo "$maxval"
|
echo "$maxval"
|
||||||
cat "$json_path" |
|
cat "$json_path" |
|
||||||
${jq}/bin/jq --argjson maxval "$maxval" -c '
|
${jq}/bin/jq --argjson maxval "$maxval" -c '
|
||||||
.[0].data[] * $maxval | round
|
((.[0].data[] | sqrt | sqrt) * $maxval | round)
|
||||||
' |
|
' |
|
||||||
${findutils}/bin/xargs -n "$width"
|
${findutils}/bin/xargs -n "$width"
|
||||||
} > "$pgm_path"
|
} > "$pgm_path"
|
||||||
|
Loading…
Reference in New Issue
Block a user