Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRF detailed setup procedure #689

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
24d404e
Update readme.md
marcusgaspar Oct 20, 2022
fd66f10
Update readme.md
marcusgaspar Oct 20, 2022
df79228
upload images
marcusgaspar Oct 21, 2022
8516c5b
upload images
marcusgaspar Oct 21, 2022
6f2543f
Upload setup guide
marcusgaspar Oct 21, 2022
6dd1217
Update pre-reqs
marcusgaspar Oct 21, 2022
23357a5
Install cyclecloud setup guide
marcusgaspar Oct 21, 2022
fcbf885
update
marcusgaspar Oct 21, 2022
df856db
fix
marcusgaspar Oct 21, 2022
b907867
initialize CycleCloud CLI
marcusgaspar Oct 21, 2022
36882ed
install cyclecloud
marcusgaspar Oct 21, 2022
b2062d5
remove pre-reqs
marcusgaspar Oct 21, 2022
4fbf835
update pre-reqs
marcusgaspar Oct 21, 2022
ff16a4f
formatt
marcusgaspar Oct 21, 2022
10f70f9
updates and download_gfs_files.py
marcusgaspar Oct 24, 2022
6851aad
updates
marcusgaspar Oct 24, 2022
754efe0
change repo
marcusgaspar Oct 24, 2022
db35ea8
updates
marcusgaspar Oct 24, 2022
dae9123
updates
marcusgaspar Oct 25, 2022
88f3c75
update
marcusgaspar Oct 25, 2022
71996ae
changes
marcusgaspar Oct 25, 2022
63f63cd
changes
marcusgaspar Oct 25, 2022
d335434
fix test folder
marcusgaspar Oct 25, 2022
8c652ac
change permission
marcusgaspar Oct 25, 2022
c5d114e
validation
marcusgaspar Oct 25, 2022
ffa3024
test scenarios
marcusgaspar Oct 26, 2022
ea81743
changes
marcusgaspar Oct 27, 2022
34178e3
granting write permission to group on /data /apps
marcusgaspar Oct 27, 2022
988a1f2
adjustments required for pull request
marcusgaspar Dec 2, 2022
52e451e
small changes
marcusgaspar Dec 2, 2022
a480bd4
fix link
marcusgaspar Dec 2, 2022
74e1706
fix link
marcusgaspar Dec 2, 2022
d9227ad
link
marcusgaspar Dec 2, 2022
b65cbed
fix repo
marcusgaspar Dec 5, 2022
642b875
clean up
marcusgaspar Dec 6, 2022
79516f5
temporary change while donte complete the PR.
marcusgaspar Jan 26, 2023
2ea3d5b
Update install-cyclecloud.md
marcusgaspar Feb 2, 2024
e1f0428
Update install-cyclecloud.md
marcusgaspar Feb 2, 2024
8c0604d
Update install-cyclecloud.md
marcusgaspar Feb 2, 2024
5b6737a
Merge branch 'Azure:master' into master
marcusgaspar Feb 20, 2024
6cda4e9
New WRF template based on the Slurm 3.0.6 standard template
Jul 11, 2024
e193b8c
Update to slurm template version 3.0.7
Jul 12, 2024
3931b3c
fix
Jul 12, 2024
94a41fd
changes to run on AlmaLinux8 and HBv3
Jul 12, 2024
60b1eb6
download of gfs files has changed
Jul 12, 2024
2179fb1
hbv2 to hbv3
Jul 12, 2024
2217677
small fixes and including hbv3
Jul 15, 2024
6644b1e
add slurm script
Jul 16, 2024
fc742ad
slurm submission
Jul 17, 2024
a75b7d7
Update install-cyclecloud.md
marcusgaspar Jul 18, 2024
652960a
Newer version of WRF PBS template
Jul 18, 2024
0e6fc38
Merge branch 'master' of https://github.com/marcusgaspar/azurehpc
Jul 18, 2024
d3bb317
solving issues with slurm file
Jul 19, 2024
d3b3da0
fixing slurm script and submission
Jul 19, 2024
d1f33e6
add duration
Jul 19, 2024
dcf42e1
fix
Jul 19, 2024
7142c08
format duration
Jul 20, 2024
b4e7176
clean up file
Jul 22, 2024
d1c30cb
Adding automation scripts
Jul 23, 2024
6506196
wps1.slurm
Jul 24, 2024
96ce008
changes
Jul 24, 2024
307a652
slurm files
Jul 24, 2024
0919101
log files
Jul 24, 2024
07ee0a6
fix geog files
Jul 24, 2024
c656379
automation testing
Jul 26, 2024
25e0508
automation adjusts
Jul 26, 2024
31508e8
4 nodes
Jul 26, 2024
5a994ef
4 nodes
Jul 26, 2024
873553a
separating download job
Aug 23, 2024
892f729
genoma icon
Aug 29, 2024
d63af45
adding genoma template
Aug 29, 2024
8f8759d
fix drop down
Aug 29, 2024
172e4b7
fix icon URL
Aug 29, 2024
eec10c7
including cluster-init for wrf
Sep 27, 2024
03b3520
changes
Sep 30, 2024
c7574c1
changes
Sep 30, 2024
7a6ffae
include automation in the new_conus orig namelist files
Oct 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 161 additions & 0 deletions apps/wrf/download_gfs_files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
#!/usr/bin/env python
#################################################################
# Python Script to retrieve 93 online Data files of 'ds084.1',
# total 20.11G. This script uses 'requests' to download data.
#
# Highlight this script by Select All, Copy and Paste it into a file;
# make the file executable and run it on command line.
#
# You need pass in your password as a parameter to execute
# this script; or you can set an environment variable RDAPSWD
# if your Operating System supports it.
#
# Contact [email protected] (RDA help desk) for further assistance.
#################################################################


import sys, os
import requests

def check_file_status(filepath, filesize):
sys.stdout.write('\r')
sys.stdout.flush()
size = int(os.stat(filepath).st_size)
percent_complete = (size/filesize)*100
sys.stdout.write('%.3f %s' % (percent_complete, '% Completed'))
sys.stdout.flush()

# Try to get password
if len(sys.argv) < 2 and not 'RDAPSWD' in os.environ:
try:
import getpass
input = getpass.getpass
except:
try:
input = raw_input
except:
pass
pswd = input('Password: ')
else:
try:
pswd = sys.argv[1]
except:
pswd = os.environ['RDAPSWD']

url = 'https://rda.ucar.edu/cgi-bin/login'
values = {'email' : '[email protected]', 'passwd' : pswd, 'action' : 'login'}
# Authenticate
ret = requests.post(url,data=values)
if ret.status_code != 200:
print('Bad Authentication')
print(ret.text)
exit(1)
dspath = 'https://rda.ucar.edu/data/ds084.1/'
filelist = [
'2018/20180617/gfs.0p25.2018061700.f000.grib2',
'2018/20180617/gfs.0p25.2018061700.f003.grib2',
'2018/20180617/gfs.0p25.2018061700.f006.grib2',
'2018/20180617/gfs.0p25.2018061700.f009.grib2',
'2018/20180617/gfs.0p25.2018061700.f012.grib2',
'2018/20180617/gfs.0p25.2018061700.f015.grib2',
'2018/20180617/gfs.0p25.2018061700.f018.grib2',
'2018/20180617/gfs.0p25.2018061700.f021.grib2',
'2018/20180617/gfs.0p25.2018061700.f024.grib2',
'2018/20180617/gfs.0p25.2018061700.f027.grib2',
'2018/20180617/gfs.0p25.2018061700.f030.grib2',
'2018/20180617/gfs.0p25.2018061700.f033.grib2',
'2018/20180617/gfs.0p25.2018061700.f036.grib2',
'2018/20180617/gfs.0p25.2018061700.f039.grib2',
'2018/20180617/gfs.0p25.2018061700.f042.grib2',
'2018/20180617/gfs.0p25.2018061700.f045.grib2',
'2018/20180617/gfs.0p25.2018061700.f048.grib2',
'2018/20180617/gfs.0p25.2018061700.f051.grib2',
'2018/20180617/gfs.0p25.2018061700.f054.grib2',
'2018/20180617/gfs.0p25.2018061700.f057.grib2',
'2018/20180617/gfs.0p25.2018061700.f060.grib2',
'2018/20180617/gfs.0p25.2018061700.f063.grib2',
'2018/20180617/gfs.0p25.2018061700.f066.grib2',
'2018/20180617/gfs.0p25.2018061700.f069.grib2',
'2018/20180617/gfs.0p25.2018061700.f072.grib2',
'2018/20180617/gfs.0p25.2018061700.f075.grib2',
'2018/20180617/gfs.0p25.2018061700.f078.grib2',
'2018/20180617/gfs.0p25.2018061700.f081.grib2',
'2018/20180617/gfs.0p25.2018061700.f084.grib2',
'2018/20180617/gfs.0p25.2018061700.f087.grib2',
'2018/20180617/gfs.0p25.2018061700.f090.grib2',
'2018/20180617/gfs.0p25.2018061700.f093.grib2',
'2018/20180617/gfs.0p25.2018061700.f096.grib2',
'2018/20180617/gfs.0p25.2018061700.f099.grib2',
'2018/20180617/gfs.0p25.2018061700.f102.grib2',
'2018/20180617/gfs.0p25.2018061700.f105.grib2',
'2018/20180617/gfs.0p25.2018061700.f108.grib2',
'2018/20180617/gfs.0p25.2018061700.f111.grib2',
'2018/20180617/gfs.0p25.2018061700.f114.grib2',
'2018/20180617/gfs.0p25.2018061700.f117.grib2',
'2018/20180617/gfs.0p25.2018061700.f120.grib2',
'2018/20180617/gfs.0p25.2018061700.f123.grib2',
'2018/20180617/gfs.0p25.2018061700.f126.grib2',
'2018/20180617/gfs.0p25.2018061700.f129.grib2',
'2018/20180617/gfs.0p25.2018061700.f132.grib2',
'2018/20180617/gfs.0p25.2018061700.f135.grib2',
'2018/20180617/gfs.0p25.2018061700.f138.grib2',
'2018/20180617/gfs.0p25.2018061700.f141.grib2',
'2018/20180617/gfs.0p25.2018061700.f144.grib2',
'2018/20180617/gfs.0p25.2018061700.f147.grib2',
'2018/20180617/gfs.0p25.2018061700.f150.grib2',
'2018/20180617/gfs.0p25.2018061700.f153.grib2',
'2018/20180617/gfs.0p25.2018061700.f156.grib2',
'2018/20180617/gfs.0p25.2018061700.f159.grib2',
'2018/20180617/gfs.0p25.2018061700.f162.grib2',
'2018/20180617/gfs.0p25.2018061700.f165.grib2',
'2018/20180617/gfs.0p25.2018061700.f168.grib2',
'2018/20180617/gfs.0p25.2018061700.f171.grib2',
'2018/20180617/gfs.0p25.2018061700.f174.grib2',
'2018/20180617/gfs.0p25.2018061700.f177.grib2',
'2018/20180617/gfs.0p25.2018061700.f180.grib2',
'2018/20180617/gfs.0p25.2018061700.f183.grib2',
'2018/20180617/gfs.0p25.2018061700.f186.grib2',
'2018/20180617/gfs.0p25.2018061700.f189.grib2',
'2018/20180617/gfs.0p25.2018061700.f192.grib2',
'2018/20180617/gfs.0p25.2018061700.f195.grib2',
'2018/20180617/gfs.0p25.2018061700.f198.grib2',
'2018/20180617/gfs.0p25.2018061700.f201.grib2',
'2018/20180617/gfs.0p25.2018061700.f204.grib2',
'2018/20180617/gfs.0p25.2018061700.f207.grib2',
'2018/20180617/gfs.0p25.2018061700.f210.grib2',
'2018/20180617/gfs.0p25.2018061700.f213.grib2',
'2018/20180617/gfs.0p25.2018061700.f216.grib2',
'2018/20180617/gfs.0p25.2018061700.f219.grib2',
'2018/20180617/gfs.0p25.2018061700.f222.grib2',
'2018/20180617/gfs.0p25.2018061700.f225.grib2',
'2018/20180617/gfs.0p25.2018061700.f228.grib2',
'2018/20180617/gfs.0p25.2018061700.f231.grib2',
'2018/20180617/gfs.0p25.2018061700.f234.grib2',
'2018/20180617/gfs.0p25.2018061700.f237.grib2',
'2018/20180617/gfs.0p25.2018061700.f240.grib2',
'2018/20180617/gfs.0p25.2018061700.f252.grib2',
'2018/20180617/gfs.0p25.2018061700.f264.grib2',
'2018/20180617/gfs.0p25.2018061700.f276.grib2',
'2018/20180617/gfs.0p25.2018061700.f288.grib2',
'2018/20180617/gfs.0p25.2018061700.f300.grib2',
'2018/20180617/gfs.0p25.2018061700.f312.grib2',
'2018/20180617/gfs.0p25.2018061700.f324.grib2',
'2018/20180617/gfs.0p25.2018061700.f336.grib2',
'2018/20180617/gfs.0p25.2018061700.f348.grib2',
'2018/20180617/gfs.0p25.2018061700.f360.grib2',
'2018/20180617/gfs.0p25.2018061700.f372.grib2',
'2018/20180617/gfs.0p25.2018061700.f384.grib2']
for file in filelist:
filename=dspath+file
file_base = os.path.basename(file)
print('Downloading',file_base)
req = requests.get(filename, cookies = ret.cookies, allow_redirects=True, stream=True)
filesize = int(req.headers['Content-length'])
with open(file_base, 'wb') as outfile:
chunk_size=1048576
for chunk in req.iter_content(chunk_size=chunk_size):
outfile.write(chunk)
if chunk_size < filesize:
check_file_status(file_base, filesize)
check_file_status(file_base, filesize)
print()
22 changes: 22 additions & 0 deletions apps/wrf/env-variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SKU_TYPE=hbv2
SHARED_APP=${SHARED_APP:-/apps}

if ! rpm -q python3; then
sudo yum install -y python3
fi
source /etc/profile.d/modules.sh
export MODULEPATH=${SHARED_APP}/modulefiles/${SKU_TYPE}:$MODULEPATH
module use ${SHARED_APP}/modulefiles
module load spack/spack
source $SPACK_SETUP_ENV
spack load netcdf-fortran^openmpi
spack load hdf5^openmpi
spack load perl
module use /usr/share/Modules/modulefiles
module load mpi/openmpi-4.1.0
module load gcc-9.2.0
module load wrf/4.1.5-openmpi
mpi_options="-x LD_LIBRARY_PATH "
if [ -n $LD_PRELOAD ]; then
mpi_options+="-x LD_PRELOAD"
fi
Binary file added apps/wrf/images/wrf-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/wrf/images/wrf-test-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading