>>>> install spectra tool and spherepack 3.2 library with pgf90 or ifort (g95,gfortran... not possible yet) wget -c https://www2.cisl.ucar.edu/sites/default/files/spherepack3.2.tar tar -xvf spherepack3.2.tar cd spherepack3.2 >>>> install spherepack 3.2 library >for pgf90, after discussion with Richard A. Valent (valent@ucar.edu), change line 12 of make.inc in spherepack3.2 folder: F90 := pgf90 -module ../lib -I../lib and replace by F90 := pgf90 -r8 -module ../lib -I../lib to run in double precision (better). >for ifort: change line 10 to 20 of make.inc ifeq ($(PGI),pgf90-Warning-No files to process) F90 := pgf90 -module ../lib -I../lib CPP := pgf90 -E else F90 := g95 -DG95 -g -fmod=../lib -I../lib CPP := g95 -E -DG95 endif and replace by F90 := ifort -r8 -module ../lib -I../lib CPP := ifort -fpp change line 16 of test/Makefile $(F90) $< -o $@ -L../lib -l spherepack and replace by $(F90) $< -o $@ -L../lib -lspherepack > make all > log_install 2>&1 > OK 'lib' ,... are in /planeto/milmd/library/spherepack/spherepack3.2_levan_pgf90 >>>> compile spectra_analysis program with pgf90 or ifort cd .. change the first 3 lines of the makefile: path of spherepack library you have just installed, path of netcdf libray, compiler netcdfpath=/planeto/milmd/library/netcdf/netcdf-4.0.1_levan_pgf90 (on levan) netcdfpath=/smplocal/pub/NetCDF/4.1.3/seq (on ada) netcdfpath=/usr/local (on gnome) spherepackpath=/path/to/spherepack3.2 FC=pgf90 or ifort make spectra_analysis >>>>> test on some harmonic cases > compile test program make test_analysis > create harmonic winds ./test_analysis > compute kinetic energy spectrum for one harmonic ./spectra_analysis harmonic_64x48_lmdz_22.nc -alt none -time none -o harmonic_64x48_lmdz_22_spectra