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

Added command line feature for remap_restarts.py #19

Merged
merged 96 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
9b1f9c9
temporary checkin
weiyuan-jiang Apr 25, 2023
7481b8f
Merge branch 'feature/wjiang/new_bcs_structure' into feature/wjiang/c…
weiyuan-jiang Apr 27, 2023
0899411
stage
weiyuan-jiang May 4, 2023
55670d9
add command line option
weiyuan-jiang May 18, 2023
4926a94
move remap tests under remap_restarts directory
weiyuan-jiang May 18, 2023
5ae0278
update test cases
weiyuan-jiang May 22, 2023
c6d270c
add more comments
weiyuan-jiang May 22, 2023
c86f06f
add -lbl options to add tag and resolutions information to output res…
weiyuan-jiang May 23, 2023
39741c5
Merge branch 'main' into feature/wjiang/command_line
weiyuan-jiang May 23, 2023
4c2c499
restrict some arguments with choices
weiyuan-jiang May 23, 2023
7a2a209
fix tests
weiyuan-jiang May 23, 2023
b6cb3a3
more straight forward questions
weiyuan-jiang May 25, 2023
b4f5c5f
convert merra2 binary files to nc4 before regrid
weiyuan-jiang May 26, 2023
c1f6c2c
added catch.yaml for completeness.
weiyuan-jiang May 26, 2023
73b03a5
fix bcs for merra2 input
weiyuan-jiang May 30, 2023
2b07492
convert to CS for cubed-sphere ocean grid
weiyuan-jiang May 31, 2023
494d3f9
fixed typo
weiyuan-jiang May 31, 2023
6909574
add no-prompt argument
weiyuan-jiang Jun 5, 2023
1772058
change tag to bc version
weiyuan-jiang Jun 26, 2023
6766dd0
constraint for MERRA-2 hours (21)
weiyuan-jiang Jun 26, 2023
1787c2b
Merge branch 'main' into feature/wjiang/command_line
weiyuan-jiang Jun 27, 2023
293dca5
change message format
weiyuan-jiang Jun 28, 2023
cbf6da2
change name 'tag' to 'bc_version'
weiyuan-jiang Jun 29, 2023
7444cf8
Merge branch 'main' into feature/wjiang/command_line
gmao-rreichle Jun 29, 2023
2e8beac
use triple ''' to make string cleaner
weiyuan-jiang Jun 29, 2023
5a4eaa8
Merge branch 'feature/wjiang/command_line' of github.com:GEOS-ESM/GEO…
weiyuan-jiang Jun 29, 2023
ef135bd
Update remap_questions.py
weiyuan-jiang Jun 29, 2023
88232db
more cleanup. BC version, catch_model ...
weiyuan-jiang Jul 6, 2023
1a316d3
remove extra line
weiyuan-jiang Jul 12, 2023
d744f27
fix output label
weiyuan-jiang Jul 13, 2023
df4fe28
support all the new structure of BCS
weiyuan-jiang Aug 9, 2023
c56bf5d
edit table
biljanaorescanin Aug 14, 2023
aec6d18
GM4 without 'smoothed' directory
weiyuan-jiang Aug 14, 2023
ecc6947
add develop choice; add cap_restart
weiyuan-jiang Aug 24, 2023
1e43ea4
Merge branch 'main' into feature/wjiang/command_line
biljanaorescanin Aug 29, 2023
a3ea245
edit v06 notes and options
biljanaorescanin Aug 29, 2023
65e38ff
Addressing more issues....
weiyuan-jiang Sep 7, 2023
73ded40
change word to select
weiyuan-jiang Sep 8, 2023
01b6fc4
rename yaml files and add more comments
weiyuan-jiang Sep 13, 2023
d2ceb9a
document "lcv" restart file from ADAS (remap_analysis.py, remap_quest…
gmao-rreichle Sep 13, 2023
2285bae
renamed bin2nc_*.yaml files to clarify that they are specific to MERR…
gmao-rreichle Sep 13, 2023
fc7e2e2
clarified comments/variable names re. WEMIN parameter, binary restart…
gmao-rreichle Sep 13, 2023
0e8a9ce
Update remap_bin2nc.py
weiyuan-jiang Sep 14, 2023
7463c1e
cleanup of comments, "messages" for questions, hardcoded lists (remap…
gmao-rreichle Sep 14, 2023
1f189c6
simplify choices for command_line
weiyuan-jiang Sep 15, 2023
19c24aa
more refactoring...
weiyuan-jiang Sep 15, 2023
61e5a47
typo
weiyuan-jiang Sep 15, 2023
1e4ac3c
complete name change shared:model to shared:omodel
weiyuan-jiang Sep 15, 2023
f5594ed
default on omodel
weiyuan-jiang Sep 15, 2023
553554e
added comment, minor variable name changes for consistency (remap_que…
gmao-rreichle Sep 15, 2023
d8d49e1
consolidate some globale variables
weiyuan-jiang Sep 15, 2023
4bc33f4
fixing bugs in centrally defined "messages"; revised documentation; a…
gmao-rreichle Sep 15, 2023
43543ae
minor cleanup of comment strings and white space (various remap_*.[py…
gmao-rreichle Sep 18, 2023
dc9fb2a
complete bin2nc file names change
weiyuan-jiang Sep 20, 2023
f576c9f
remove C500
weiyuan-jiang Sep 20, 2023
2a94a67
added support to stretched grid
weiyuan-jiang Sep 22, 2023
c5c99d6
fixed some comments, white-space changes (various remap_*.py)
gmao-rreichle Sep 22, 2023
2ed46bc
center SGxxx information
weiyuan-jiang Sep 23, 2023
40e43d6
more cleanup of stretched cubed-sphere parameter handling (remap_ques…
gmao-rreichle Sep 25, 2023
4924653
edit stretched question
biljanaorescanin Sep 27, 2023
896da9d
enable 3 options
biljanaorescanin Sep 27, 2023
e76f269
copy cbkg and satbias and satbang files
biljanaorescanin Oct 9, 2023
b376108
remove trailing spaces in yaml files
weiyuan-jiang Oct 11, 2023
42fdf27
adding agcm_import_rst as option to remap
biljanaorescanin Oct 16, 2023
84204d3
Merge branch 'main' into feature/wjiang/command_line
biljanaorescanin Oct 16, 2023
4a369fb
edit var names
biljanaorescanin Oct 16, 2023
e8dc168
right order
biljanaorescanin Oct 16, 2023
a58454a
change comment
biljanaorescanin Oct 17, 2023
f392a6a
one line for comment
biljanaorescanin Oct 17, 2023
f93b377
edit question
biljanaorescanin Oct 19, 2023
92467b9
Edited agcm_import_rst/IAU echo & question (remap_questions.py)
gmao-rreichle Oct 19, 2023
61d10cd
conditions to show agcm_import_rst question
weiyuan-jiang Oct 19, 2023
d7c89e4
typo
weiyuan-jiang Oct 19, 2023
dde40f7
add input:air:nlevel
weiyuan-jiang Oct 19, 2023
4bcabc4
add one more in development land version v11
biljanaorescanin Oct 19, 2023
eed60a8
update testing cases
weiyuan-jiang Oct 26, 2023
0ba5b79
1) change the bcs path 2)change the way to get the grid directory. 3)…
weiyuan-jiang Oct 27, 2023
5d1af2d
fix test for different accounts
weiyuan-jiang Nov 1, 2023
cc415b5
more merra2 hours (03, 09, 15, 21)
weiyuan-jiang Nov 1, 2023
ae672ee
use baselib's nccmp
weiyuan-jiang Nov 2, 2023
43817fc
minimal edits of comments for clarity; white-space changes to improve…
gmao-rreichle Nov 7, 2023
0bd0a23
more comments and white-space changes
gmao-rreichle Nov 7, 2023
af4ecf3
fixed typo in comment
gmao-rreichle Nov 7, 2023
9e1a5c8
added intro comments to remap_*.py scripts; fixed permissions of some…
gmao-rreichle Nov 8, 2023
e84ddde
1) auto detect discover and nas 2)clean up minor issues
weiyuan-jiang Nov 9, 2023
62b738c
minimal edit in comment in yaml files for remap_restart test cases
gmao-rreichle Nov 9, 2023
0690a80
moved definition of bc_base dirs to beginning of file (remap_utils.py)
gmao-rreichle Nov 9, 2023
03cad91
add question of bc_base and replace bcs_dir with bc_base
weiyuan-jiang Nov 13, 2023
5dd4dfa
rm trailing space
weiyuan-jiang Nov 14, 2023
6a9f516
change order of bc_base and bc_version in yaml template and example/t…
gmao-rreichle Nov 14, 2023
5883768
minor edit to bc_base question (remap_questions.py, remap_utils.py)
gmao-rreichle Nov 14, 2023
4dc80c0
minor edits in comments and white-space changes (remap_catchANDcn.py,…
gmao-rreichle Nov 14, 2023
bea49ba
clarified question about using archived MERRA-2 restarts (remap_quest…
gmao-rreichle Nov 14, 2023
b3c2682
add key 'air'
weiyuan-jiang Nov 14, 2023
cbf0b84
Merge branch 'feature/wjiang/command_line' of github.com:GEOS-ESM/GEO…
weiyuan-jiang Nov 14, 2023
39b7dd7
Update CHANGELOG.md for next release
sdrabenh Nov 17, 2023
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 @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Add command_line options. More items like label, altbcs are added to remap_params.tpl
- Updates paths to the legacy bcs data by pointing to the new "bcs_shared" directory in the GMAO project space.
- Support for new boundary conditions package output layout

### Fixed

### Removed
Expand Down
2 changes: 0 additions & 2 deletions post/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,3 @@ install(PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/3CH.j
DESTINATION post
)

add_subdirectory(tests)
5 changes: 0 additions & 5 deletions post/tests/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pre/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_subdirectory(NSIDC-OSTIA_SST-ICE_blend)
add_subdirectory(prepare_ocnExtData)

file(GLOB pythonscripts CONFIGURE_DEPENDS ./remap_restart/remap*)
file(GLOB pythonscripts CONFIGURE_DEPENDS ./remap_restart/remap* ./remap_restart/bin2nc_merra2* ./remap_restart/tests/*.*)
install(
PROGRAMS ${pythonscripts}
DESTINATION bin)
Expand Down
48 changes: 48 additions & 0 deletions pre/remap_restart/bin2nc_merra2_agcm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
variables:
- short_name: DUDT
long_name: eastward_wind_analysis_increment
units: 'm s-1'
dimension:
- lev
- lat
- lon
- short_name: DVDT
long_name: northward_wind_analysis_increment
units: 'm s-1'
dimension:
- lev
- lat
- lon
- short_name: DTDT
long_name: temperature_analysis_increment
units: 'K'
dimension:
- lev
- lat
- lon
- short_name: DPEDT
long_name: edge_pressure_analysis_increment
units: 'Pa'
dimension:
- lev
- lat
- lon
- short_name: DQVDT
long_name: specific_humidity_analysis_increment
units: 'kg kg-1'
dimension:
- lev
- lat
- lon
- short_name: DO3DT
long_name: ozone_analysis_increment
units: 'ppmv'
dimension:
- lev
- lat
- lon
dimensions:
lon: 180
lat: 1080
lev: 72
time: 1
297 changes: 297 additions & 0 deletions pre/remap_restart/bin2nc_merra2_catch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
variables:
- short_name: 'BF1'
long_name: 'topo_baseflow_param_1'
units: 'kg m-4'
dimension:
- tile
- short_name: 'BF2'
long_name: 'topo_baseflow_param_2'
units: 'm'
dimension:
- tile
- short_name: 'BF3'
long_name: 'topo_baseflow_param_3'
units: 'log(m)'
dimension:
- tile
- short_name: 'VGWMAX'
long_name: 'max_rootzone_water_content'
units: 'kg m-2'
dimension:
- tile
- short_name: 'CDCR1'
long_name: 'moisture_threshold'
units: 'kg m-2'
dimension:
- tile
- short_name: 'CDCR2'
long_name: 'max_water_content'
units: 'kg m-2'
dimension:
- tile
- short_name: 'PSIS'
long_name: 'saturated_matric_potential'
units: 'm'
dimension:
- tile
- short_name: 'BEE'
long_name: 'clapp_hornberger_b'
units: '1'
dimension:
- tile
- short_name: 'POROS'
long_name: 'soil_porosity'
units: '1'
dimension:
- tile
- short_name: 'WPWET'
long_name: 'wetness_at_wilting_point'
units: '1'
dimension:
- tile
- short_name: 'COND'
long_name: 'sfc_sat_hydraulic_conduct'
units: 'm s-1'
dimension:
- tile
- short_name: 'GNU'
long_name: 'vertical_transmissivity'
units: 'm-1'
dimension:
- tile
- short_name: 'ARS1'
long_name: 'wetness_param_1'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARS2'
long_name: 'wetness_param_2'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARS3'
long_name: 'wetness_param_3'
units: 'm+4 kg-2'
dimension:
- tile
- short_name: 'ARA1'
long_name: 'shape_param_1'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARA2'
long_name: 'shape_param_2'
units: '1'
dimension:
- tile
- short_name: 'ARA3'
long_name: 'shape_param_3'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARA4'
long_name: 'shape_param_4'
units: '1'
dimension:
- tile
- short_name: 'ARW1'
long_name: 'min_theta_param_1'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARW2'
long_name: 'min_theta_param_2'
units: 'm+2 kg-1'
dimension:
- tile
- short_name: 'ARW3'
long_name: 'min_theta_param_3'
units: 'm+4 kg-2'
dimension:
- tile
- short_name: 'ARW4'
long_name: 'min_theta_param_4'
units: '1'
dimension:
- tile
- short_name: 'TSA1'
long_name: 'water_transfer_param_1'
units: '1'
dimension:
- tile
- short_name: 'TSA2'
long_name: 'water_transfer_param_2'
units: '1'
dimension:
- tile
- short_name: 'TSB1'
long_name: 'water_transfer_param_3'
units: '1'
dimension:
- tile
- short_name: 'TSB2'
long_name: 'water_transfer_param_4'
units: '1'
dimension:
- tile
- short_name: 'ATAU'
long_name: 'water_transfer_param_5'
units: '1'
dimension:
- tile
- short_name: 'BTAU'
long_name: 'water_transfer_param_6'
units: '1'
dimension:
- tile
- short_name: 'OLD_ITY'
long_name: 'Placeholder. Used to be vegetation_type.'
units: '1'
dimension:
- tile
- short_name: 'TC'
long_name: 'canopy_temperature'
units: 'K'
dimension:
- subtile
- tile
- short_name: 'QC'
long_name: 'canopy_specific_humidity'
units: 'kg kg-1'
dimension:
- subtile
- tile
- short_name: 'CAPAC'
long_name: 'interception_reservoir_capac'
units: 'kg m-2'
dimension:
- tile
- short_name: 'CATDEF'
long_name: 'catchment_deficit'
units: 'kg m-2'
dimension:
- tile
- short_name: 'RZEXC'
long_name: 'root_zone_excess'
units: 'kg m-2'
dimension:
- tile
- short_name: 'SRFEXC'
long_name: 'surface_excess'
units: 'kg m-2'
dimension:
- tile
- short_name: 'GHTCNT1'
long_name: 'soil_heat_content_layer_1'
units: 'J m-2'
dimension:
- tile
- short_name: 'GHTCNT2'
long_name: 'soil_heat_content_layer_2'
units: 'J_m-2'
dimension:
- tile
- short_name: 'GHTCNT3'
long_name: 'soil_heat_content_layer_3'
units: 'J m-2'
dimension:
- tile
- short_name: 'GHTCNT4'
long_name: 'soil_heat_content_layer_4'
units: 'J m-2'
dimension:
- tile
- short_name: 'GHTCNT5'
long_name: 'soil_heat_content_layer_5'
units: 'J m-2'
dimension:
- tile
- short_name: 'GHTCNT6'
long_name: 'soil_heat_content_layer_6'
units: 'J m-2'
dimension:
- tile
- short_name: 'TSURF'
long_name: 'mean_catchment_temp_incl_snw'
units: 'K'
dimension:
- tile
- short_name: 'WESNN1'
long_name: 'snow_mass_layer_1'
units: 'kg m-2'
dimension:
- tile
- short_name: 'WESNN2'
long_name: 'snow_mass_layer_2'
units: 'kg m-2'
dimension:
- tile
- short_name: 'WESNN3'
long_name: 'snow_mass_layer_3'
units: 'kg m-2'
dimension:
- tile
- short_name: 'HTSNNN1'
long_name: 'heat_content_snow_layer_1'
units: 'J m-2'
dimension:
- tile
- short_name: 'HTSNNN2'
long_name: 'heat_content_snow_layer_2'
units: 'J m-2'
dimension:
- tile
- short_name: 'HTSNNN3'
long_name: 'heat_content_snow_layer_3'
units: 'J m-2'
dimension:
- tile
- short_name: 'SNDZN1'
long_name: 'snow_depth_layer_1'
units: 'm'
dimension:
- tile
- short_name: 'SNDZN2'
long_name: 'snow_depth_layer_2'
units: 'm'
dimension:
- tile
- short_name: 'SNDZN3'
long_name: 'snow_depth_layer_3'
units: 'm'
dimension:
- tile
- short_name: 'CH'
long_name: 'surface_heat_exchange_coefficient'
units: 'kg m-2 s-1'
dimension:
- subtile
- tile
- short_name: 'CM'
long_name: 'surface_momentum_exchange_coefficient'
units: 'kg m-2 s-1'
dimension:
- subtile
- tile
- short_name: 'CQ'
long_name: 'surface_moisture_exchange_coffiecient'
units: 'kg m-2 s-1'
dimension:
- subtile
- tile
- short_name: 'FR'
long_name: 'subtile_fractions'
units: '1'
dimension:
- subtile
- tile
- short_name: 'WW'
long_name: 'vertical_velocity_scale_squared'
units: 'm+2 s-2'
dimension:
- subtile
- tile
dimensions:
tile: 195136
subtile: 4
time: 1
Loading