-
-
Save yardasol/6dd2e0b998cffb42805ce17a829994f6 to your computer and use it in GitHub Desktop.
Script for processing JEFF 3.1.2 downloads into a serpent usable format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script assumes you have downloaded the JEFF 3.1.2 cross section data | |
# from https://www.oecd-nea.org/dbforms/data/eva/evatapes/jeff_31/JEFF312/ACE/ | |
# and have extracted the contents of each archive into directories names | |
# 300, 600, 900, etc | |
TEMPS=[300 600 900 1200 1500 1800] | |
mkdir acedata | |
for T in $TEMPS | |
do | |
# Create dir file for this temperature | |
cat $T/*.dir >> $T/$T.dir | |
# Change filenames to include temperature so we can put them all in the same | |
# directory | |
files=`ls $T/*.ACE` | |
SUF="-$T.ACE" | |
for file in $files | |
do | |
IFS='.' read -ra arr <<< "$file" | |
mv "$file" ${arr[0]}$SUF | |
done | |
mv $T/*.ACE acedata/. | |
cat $T/$T.dir >> sss_jeff312.dir | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment