mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2024-12-05 01:55:08 +00:00
24 lines
542 B
Bash
Executable File
24 lines
542 B
Bash
Executable File
#!/bin/bash
|
|
|
|
line_id=$1
|
|
gridfiles=`echo [0-9]*_[0-9]*`
|
|
|
|
if [[ $2 ]]; then
|
|
echo "$1 j=$2 relative to Inci 1215.00A scaled to 1215.00"
|
|
else
|
|
echo "$1 relative to Inci 1215.00A scaled to 1215.00"
|
|
fi
|
|
echo "Hden Phi(H) ScaInten"
|
|
for file in $gridfiles; do
|
|
hden=`echo $file|cut -d_ -f1|sed 's#^\(.....\).*$#\1#'`
|
|
phi=`echo $file|cut -d_ -f2|sed 's#^\(......\).*$#\1#'`
|
|
value=`grep "$1" $file|tail -n1|sed 's#^......................\(.........\).*$#\1#'`
|
|
if [[ $value == "" ]]; then
|
|
value=0.0000;
|
|
fi
|
|
echo "$hden $phi $value"
|
|
done
|
|
|
|
|
|
|