log
-
- Subject Matter Expert
- Posts: 147
- Joined: Tue Feb 09, 2021 8:19 am America/New_York
log
It's not SeaDAS, but you could use the standard linux program, bc, like this.
Or you could use my favorite, reverse-polish, command-line calculator from the
GMT folks that provides a lot more mathematical functionality.
Regards,
Norman
cat <<EOF >sample_chl_anomalies.txt
0.02
0.014
2.4
0.26
0.089
0.37
EOF
for c in `cat sample_chl_anomalies.txt`; do
echo "l($c)" | bc -l >> log_sample_chl_anomalies.txt
done
Or you could use my favorite, reverse-polish, command-line calculator from the
GMT folks that provides a lot more mathematical functionality.
gmt math sample_chl_anomalies.txt LOG = log_sample_chl_anomalies.txt
Regards,
Norman