Skip to content

Instantly share code, notes, and snippets.

@yardasol
Created October 26, 2021 01:20
Show Gist options
  • Save yardasol/6910a4684025ff8e0c1be2b49631821f to your computer and use it in GitHub Desktop.
Save yardasol/6910a4684025ff8e0c1be2b49631821f to your computer and use it in GitHub Desktop.
Script for processing JEFF 3.1.2 thermal cross section data
# This script assumes you have downloaded the JEFF 3.1.2 thermal 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 a directory named THERM
T=THERM
# 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=".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.xsdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment