log
Posted: Thu Jun 20, 2019 6:49 pm America/New_York
Is there a function I can use at the command line to apply logarithm to my chlorophyll anomalies once they are calculated?
Welcome to the Earthdata Forum! Here, the scientific user community and subject matter experts from NASA Distributed Active Archive Centers (DAACs), and other contributors, discuss research needs, data, and data applications.
https://forum.earthdata.nasa.gov/
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
gmt math sample_chl_anomalies.txt LOG = log_sample_chl_anomalies.txt