forked from NOAA-EMC/obs-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port obs-mon to orion and hercules, add lua module files to create ob…
…s-mon python ve (NOAA-EMC#42) This PR includes: - Port Obs-Monitor to orion & hercules. - Addition of lua module files to create an obs-mon python virtual environment. Note that I have the ve components temporarily installed in my own noscrub space. I know this isn't suitable for a permanent solution but thought it would be an acceptable placeholder. - Correct use of CFP on wcoss2. Really this time I've got it. Honest. - Removed file cleanup at finish. This needs to be done as a separate job submission which runs after the plot job finishes. I'll open a new issue to get that done. Lastly, as describe in the discussion in NOAA-EMC#41 hercules is now having what looks like communications issues when it runs eva. Execution hangs when trying to resolve a url request from cartopy. That may be a system issue, or it might be a permissions issue from the ve components which I parked in my noscrub space. Though that location works fine on orion (and wcoss2). I'm not quite sure how much to make of that. Closes NOAA-EMC#41
- Loading branch information
1 parent
648409c
commit c215cd9
Showing
10 changed files
with
267 additions
and
80 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
help([[ | ||
Load python virtual environment for obs-monitor | ||
]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
conflict(pkgName) | ||
|
||
|
||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env-rocky8/install/modulefiles/Core") | ||
|
||
load ("stack-intel/2021.5.0") | ||
load ("python/3.10.13") | ||
|
||
local pyenvpath = "/scratch1/NCEPDEV/da/Edward.Safford/noscrub/python/envs/" | ||
local pyenvname = "obs-mon" | ||
|
||
local pyenvactivate = pathJoin(pyenvpath, pyenvname, "bin/activate") | ||
|
||
if (mode() == "load") then | ||
local activate_cmd = "source "..pyenvactivate | ||
execute{cmd=activate_cmd, modeA={"load"}} | ||
prepend_path("PATH", "/scratch1/NCEPDEV/da/Edward.Safford/noscrub/python/envs/obs-mon/bin") | ||
prepend_path("PYTHONPATH", "/scratch1/NCEPDEV/da/Edward.Safford/noscrub/python/envs/obs-mon") | ||
|
||
else | ||
if (mode() == "unload") then | ||
local deactivate_cmd = "deactivate" | ||
execute{cmd=deactivate_cmd, modeA={"unload"}} | ||
end | ||
end | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: ".. pkgVersion) | ||
whatis("Category: Obs-monitor") | ||
whatis("Description: Load all libraries needed for obs-monitor") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
help([[ | ||
Load python virtual environment for obs-monitor | ||
]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
conflict(pkgName) | ||
|
||
|
||
prepend_path("MODULEPATH", " /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env-intel-2023.2.4/install/modulefiles/Core") | ||
|
||
load ("stack-intel/2021.10.0") | ||
load ("python/3.10.8") | ||
|
||
local pyenvpath = "/work/noaa/da/esafford/noscrub/python/envs/" | ||
local pyenvname = "obs-mon" | ||
|
||
local pyenvactivate = pathJoin(pyenvpath, pyenvname, "bin/activate") | ||
|
||
if (mode() == "load") then | ||
local activate_cmd = "source "..pyenvactivate | ||
execute{cmd=activate_cmd, modeA={"load"}} | ||
prepend_path("PATH", "/work/noaa/da/esafford/noscrub/python/envs/obs-mon/bin") | ||
prepend_path("PYTHONPATH", "/work/noaa/da/esafford/noscrub/python/envs/obs-mon") | ||
|
||
else | ||
if (mode() == "unload") then | ||
local deactivate_cmd = "deactivate" | ||
execute{cmd=deactivate_cmd, modeA={"unload"}} | ||
end | ||
end | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: ".. pkgVersion) | ||
whatis("Category: Obs-monitor") | ||
whatis("Description: Load all libraries needed for obs-monitor") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
help([[ | ||
Load python virtual environment for obs-monitor | ||
]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
conflict(pkgName) | ||
|
||
|
||
prepend_path("MODULEPATH", " /work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env-rocky9/install/modulefiles/Core") | ||
|
||
load ("stack-intel/2021.9.0") | ||
load ("python/3.10.8") | ||
|
||
local pyenvpath = "/work/noaa/da/esafford/noscrub/python/envs/" | ||
local pyenvname = "obs-mon" | ||
|
||
local pyenvactivate = pathJoin(pyenvpath, pyenvname, "bin/activate") | ||
|
||
if (mode() == "load") then | ||
local activate_cmd = "source "..pyenvactivate | ||
execute{cmd=activate_cmd, modeA={"load"}} | ||
prepend_path("PATH", "/work/noaa/da/esafford/noscrub/python/envs/obs-mon/bin") | ||
prepend_path("PYTHONPATH", "/work/noaa/da/esafford/noscrub/python/envs/obs-mon") | ||
|
||
else | ||
if (mode() == "unload") then | ||
local deactivate_cmd = "deactivate" | ||
execute{cmd=deactivate_cmd, modeA={"unload"}} | ||
end | ||
end | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: ".. pkgVersion) | ||
whatis("Category: Obs-monitor") | ||
whatis("Description: Load all libraries needed for obs-monitor") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
help([[ | ||
Load python virtual environment for obs-monitor | ||
]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
conflict(pkgName) | ||
|
||
|
||
load ("python/3.10.4") | ||
|
||
local pyenvpath = "/lfs/h2/emc/da/noscrub/edward.safford/python/envs/" | ||
local pyenvname = "obs-mon" | ||
|
||
local pyenvactivate = pathJoin(pyenvpath, pyenvname, "bin/activate") | ||
|
||
if (mode() == "load") then | ||
local activate_cmd = "source "..pyenvactivate | ||
execute{cmd=activate_cmd, modeA={"load"}} | ||
prepend_path("PATH", "/lfs/h2/emc/da/noscrub/edward.safford/python/envs/obs-mon/bin") | ||
prepend_path("PYTHONPATH", "/lfs/h2/emc/da/noscrub/edward.safford/python/envs/obs-mon") | ||
|
||
else | ||
if (mode() == "unload") then | ||
local deactivate_cmd = "deactivate" | ||
execute{cmd=deactivate_cmd, modeA={"unload"}} | ||
end | ||
end | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: ".. pkgVersion) | ||
whatis("Category: Obs-monitor") | ||
whatis("Description: Load all libraries needed for obs-monitor") | ||
|
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
Oops, something went wrong.