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

Assorted enhancements of remap_restarts.py package (EASE, SLES15, NAS, lake/landice log) #43

Merged
merged 29 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4ebbdc1
add ease grid for remapping
weiyuan-jiang Dec 4, 2023
c0c3456
correct typo
weiyuan-jiang Dec 4, 2023
f7c532d
1)default partiton is '' 2) work with SLES15 3)add log for remap_lake…
weiyuan-jiang Dec 13, 2023
dbd869f
add support of PBS on NAS
weiyuan-jiang Dec 15, 2023
58c9c96
Merge branch 'main' into feature/wjiang/add_ease_grid
gmao-rreichle Dec 18, 2023
c756188
remove an extra wrong line
weiyuan-jiang Dec 19, 2023
16010dd
added site detection by cmake
Dec 20, 2023
1f810a8
change log
Dec 20, 2023
64c66c5
use GEOS_SITE
weiyuan-jiang Dec 20, 2023
8117072
cmake change
weiyuan-jiang Dec 20, 2023
3a814e1
Updated CHANGELOG.md
gmao-rreichle Dec 20, 2023
8e4a9d1
unified messages for common questions in remap_restarts package (rema…
gmao-rreichle Dec 20, 2023
e4aa27b
questions for land
weiyuan-jiang Dec 21, 2023
4ba8e84
correct tests
weiyuan-jiang Dec 21, 2023
f1b2f67
print information when test_remap_resartar is run on NAS
Dec 22, 2023
917e72c
minimal edit of exit message (test_remap_restarts.py)
gmao-rreichle Dec 22, 2023
2d5bbc5
first step to run remap_catch
weiyuan-jiang Dec 22, 2023
06d6350
Merge branch 'feature/wjiang/add_ease_grid' into feature/wjiang/catch…
weiyuan-jiang Dec 22, 2023
8de3c13
change exit logic
biljanaorescanin Dec 27, 2023
a5e9914
more refactoring on 'remap' and 'params'
weiyuan-jiang Jan 3, 2024
47b707c
add "land_only" and remove remap_params.py
weiyuan-jiang Jan 5, 2024
d89f2e1
Merge branch 'feature/wjiang/catch_questions' into feature/wjiang/add…
weiyuan-jiang Jan 5, 2024
0daef39
remove deleted mod
weiyuan-jiang Jan 5, 2024
1bd5dc1
add questions to remap to CS grid for land_only option
weiyuan-jiang Jan 8, 2024
caab8bc
minor changes on message
weiyuan-jiang Jan 10, 2024
961c8b2
edited and unified more messages for common questions in remap_restar…
gmao-rreichle Jan 11, 2024
06aeabd
clarified "land_only" option for remap_restarts.py package (remap_cat…
gmao-rreichle Jan 11, 2024
7f2c916
updated CHANGELOG.md; minimal edits of messages in remap_restarts.py …
gmao-rreichle Jan 11, 2024
8757894
correct label and constraint fvcore name
weiyuan-jiang Jan 23, 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added EASE grid option for remapping of land restarts in remap_restarts.py package (facilitates use of package in GEOSldas setup script)
- Added support for SLES15, NAS site and log for remap_lake_landice_saltwater in remap_restarts.py package
- Added "land_only" option for remapping of restarts

### Changed

### Fixed
Expand Down
13 changes: 10 additions & 3 deletions pre/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ add_subdirectory(NSIDC-OSTIA_SST-ICE_blend)
add_subdirectory(prepare_ocnExtData)

file(GLOB pythonscripts CONFIGURE_DEPENDS ./remap_restart/remap* ./remap_restart/bin2nc_merra2* ./remap_restart/tests/*.*)
install(
PROGRAMS ${pythonscripts}
DESTINATION bin)

list(FILTER pythonscripts EXCLUDE REGEX "remap_utils.py")

foreach (file ${pythonscripts})
install(PROGRAMS ${file} DESTINATION bin)
endforeach()

set(file ./remap_restart/remap_utils.py)
configure_file(${file} ${file} @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${file} DESTINATION bin)

install(
PROGRAMS regrid.pl
Expand Down
7 changes: 2 additions & 5 deletions pre/remap_restart/remap_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@
import ruamel.yaml
import shutil
import subprocess
from remap_utils import *

class remap_base(object):
def __init__(self, **configs):
for key, value in configs.items():
if (key == 'params_file'):
print( "use Config yaml file: " + value)
yaml = ruamel.yaml.YAML()
stream =''
with open(value, 'r') as f:
stream = f.read()
self.config = yaml.load(stream)
self.config = get_config_from_file(value)
out_dir = self.config['output']['shared']['out_dir']
if not os.path.exists(out_dir) : os.makedirs(out_dir)
f = os.path.basename(value)
Expand Down
Loading