Skip to content

Commit

Permalink
Merge pull request #92 from JCSDA/hotfix/btj-v310-prep
Browse files Browse the repository at this point in the history
updated internal versioning to be v3.1.0 in preparation for release.
  • Loading branch information
BenjaminTJohnson authored Oct 19, 2023
2 parents 7d3a860 + be7bdac commit c94292a
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 296 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright and License: see LICENSE

cmake_minimum_required( VERSION 3.12 )
project( crtm VERSION 3.0.0 LANGUAGES Fortran )
project( crtm VERSION 3.1.0 LANGUAGES Fortran )

option(OPENMP "Build crtm with OpenMP support" ON)

Expand Down
30 changes: 16 additions & 14 deletions Get_CRTM_Binary_Files.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
#https://bin.ssec.wisc.edu/pub/s4/CRTM/fix_REL-3.0.0_20230802.tgz
foldername="fix_REL-3.0.0_20230802"
#https://bin.ssec.wisc.edu/pub/s4/CRTM/file/crtm_coefficients_3.1.0_skylab_7.0.tar.gz
foldername="3.1.0_skylab_7.0"
filename="crtm_coefficients_${foldername}.tar.gz"
echo "$filename"
break

filename="${foldername}.tgz"
if test -f "$filename"; then
if [ -d "fix/" ]; then #fix directory exists
echo "fix/ already exists, doing nothing."
else
#untar the file and move directory to fix
tar -zxvf $filename
cd $foldername/
mv fix ..
cd ..
rmdir $foldername
mkdir fix
mv crtm/$foldername/* fix/.
rm -rf $foldername
echo "fix/ directory created from existing $filename file."
fi
else
#download, untar, move
echo "Downloading $filename, please wait about 5 minutes (4 GB tar file)"
wget https://bin.ssec.wisc.edu/pub/s4/CRTM/$filename # CRTM binary files, add "-q" to suppress output.
wget https://bin.ssec.wisc.edu/pub/s4/CRTM/file/$filename # CRTM binary files, add "-q" to suppress output.

tar -zxvf $filename
cd $foldername/
mv fix ..
cd ..
rmdir $foldername
echo "fix/ directory created from downloaded $filename."

#untar the file and move directory to fix
tar -zxvf $filename
mkdir fix
mv crtm/$foldername/* fix/.
rm -rf crtm/$foldername
echo "fix/ directory created from downloaded $filename."
fi
echo "Completed."
Loading

0 comments on commit c94292a

Please sign in to comment.