Skip to content

Instantly share code, notes, and snippets.

@TakashiUNUMA
Created May 22, 2013 09:12
Show Gist options
  • Save TakashiUNUMA/5626287 to your computer and use it in GitHub Desktop.
Save TakashiUNUMA/5626287 to your computer and use it in GitHub Desktop.
Calculate reflected intensity [dBZ] by the use of Z-R relationship.
#!/bin/sh
#
# Calculate reflected intensity [dBZ] by the use of Z-R relationship.
# original script coded by Takashi Unuma, Kyoto Univ.
#
# -----
# Z = A * R^b
# where, A = 200, b=1.6
#
for rain_rate in $(seq 300) ; do
echo "${rain_rate}" | awk '{print $1/10,10*log(200.0*($1/10)**(1.6))/log(10)}'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment