SCHISM
Grids
SCHISMGrid
Bases: BaseGrid
SCHISM grid in geographic space.
Source code in rompy_schism/grid.py
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 | |
Attributes
grid_type
class-attribute
instance-attribute
hgrid
class-attribute
instance-attribute
vgrid
class-attribute
instance-attribute
vgrid: Optional[DataBlob | VgridGenerator | VGrid] = Field(description='Path to vgrid.in file', default_factory=create_2d_vgrid)
drag
class-attribute
instance-attribute
drag: Optional[DataBlob | float | GR3Generator] = Field(default=None, description='Path to drag.gr3 file')
rough
class-attribute
instance-attribute
rough: Optional[DataBlob | float | GR3Generator] = Field(default=None, description='Path to rough.gr3 file')
manning
class-attribute
instance-attribute
manning: Optional[DataBlob | float | GR3Generator] = Field(default=None, description='Path to manning.gr3 file')
hgridll
class-attribute
instance-attribute
hgridll: Optional[DataBlob | int | GridLinker] = Field(default=None, description='Path to hgrid.ll file', validate_default=True)
diffmin
class-attribute
instance-attribute
diffmin: Optional[DataBlob | float | GR3Generator] = Field(default=1e-06, description='Path to diffmax.gr3 file or constant value', validate_default=True)
diffmax
class-attribute
instance-attribute
diffmax: Optional[DataBlob | float | GR3Generator] = Field(default=1.0, description='Path to diffmax.gr3 file or constant value', validate_default=True)
albedo
class-attribute
instance-attribute
albedo: Optional[DataBlob | float | GR3Generator] = Field(default=0.15, description='Path to albedo.gr3 file or constant value', validate_default=True)
watertype
class-attribute
instance-attribute
watertype: Optional[DataBlob | int | GR3Generator] = Field(default=1, description='Path to watertype.gr3 file or constant value', validate_default=True)
windrot_geo2proj
class-attribute
instance-attribute
windrot_geo2proj: Optional[DataBlob | float | GR3Generator] = Field(default=0.0, description='Path to windrot_geo2proj.gr3 file or constant value', validate_default=True)
hgrid_WWM
class-attribute
instance-attribute
hgrid_WWM: Optional[DataBlob | GridLinker] = Field(default=None, description='Path to hgrid_WWM.gr3 file', validate_default=True)
wwmbnd
class-attribute
instance-attribute
wwmbnd: Optional[DataBlob | WWMBNDGR3Generator] = Field(default=None, description='Path to wwmbnd.gr3 file', validate_default=True)
crs
class-attribute
instance-attribute
Functions
validate_gr3_fields
Custom validator to handle GR3Generator conversion during deserialization.
Source code in rompy_schism/grid.py
validate_rough_drag_manning
Source code in rompy_schism/grid.py
gr3_source_validator
classmethod
gridlink_validator
classmethod
wwmbnd_validator
classmethod
vgrid_validator
classmethod
copy_to
copy_to(destdir: Path) -> SCHISMGrid
Copy the grid to a destination directory.
This method generates all the required grid files in the destination directory and returns a new SCHISMGrid instance pointing to these files.
Parameters
destdir : Path Destination directory
Returns
SCHISMGrid A new SCHISMGrid instance with sources pointing to the new files
Source code in rompy_schism/grid.py
get
Source code in rompy_schism/grid.py
generate_tvprop
Generate tvd.prop file for SCHISM.
The tvd.prop file must have two columns in this format:
1. Two columns: element_number TVD_flag (space-separated)
2. One entry per element
3. TVD flag value of 1 for all entries (1 = upwind TVD)
4. Element numbers start from 1
Correct format:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
Path
|
Destination directory |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to tvd.prop file |
Source code in rompy_schism/grid.py
boundary
Source code in rompy_schism/grid.py
plot_bnd
Source code in rompy_schism/grid.py
plot_grid
Plot just the grid triangulation.
Parameters
ax : matplotlib.axes.Axes, optional The axes to plot on. If None, a new figure is created. add_coastlines : bool, optional:w
Whether to add coastlines to the plot (requires cartopy).
**kwargs : dict Additional keyword arguments to pass to the pylibs plot functions.
Returns
fig : matplotlib.figure.Figure The figure object. ax : matplotlib.axes.Axes The axes object.
Source code in rompy_schism/grid.py
plot_bathymetry
Plot filled contours of depth/bathymetry.
Parameters
ax : matplotlib.axes.Axes, optional The axes to plot on. If None, a new figure is created. add_coastlines : bool, optional Whether to add coastlines to the plot (requires cartopy). **kwargs : dict Additional keyword arguments to pass to the pylibs plot functions.
Returns
fig : matplotlib.figure.Figure The figure object. ax : matplotlib.axes.Axes The axes object.
Source code in rompy_schism/grid.py
plot_contours
Plot contour lines of depth/bathymetry.
Parameters
ax : matplotlib.axes.Axes, optional The axes to plot on. If None, a new figure is created. add_coastlines : bool, optional Whether to add coastlines to the plot (requires cartopy). **kwargs : dict Additional keyword arguments to pass to the pylibs plot functions.
Returns
fig : matplotlib.figure.Figure The figure object. ax : matplotlib.axes.Axes The axes object.
Source code in rompy_schism/grid.py
plot
Plot the SCHISM grid using native pylibs plotting functionality.
Parameters
ax : matplotlib.axes.Axes, optional The axes to plot on. If None, a new figure is created. plot_type : str, optional Type of plot to create. Options are: - 'domain': Plot the full domain with boundaries (default) - 'grid': Plot just the grid triangulation - 'bnd': Plot just the boundaries add_coastlines : bool, optional Whether to add coastlines to the plot (requires cartopy). fmt : int, optional Plotting format. Options are: - 0: Plot grid only (default) - 1: Plot filled contours of depth/bathymetry - 2: Plot contour lines of depth/bathymetry - 3: Plot boundaries only value : numpy.ndarray, optional Color values for plotting. If None, grid depth is used. levels : int or array-like, optional If int, number of contour levels to use (default 51). If array-like, specific levels to plot. clim : [min, max], optional Value range for plot/colorbar. If None, determined from data. cmap : str, optional Colormap to use for depth visualization (default 'jet'). cb : bool, optional Whether to add a colorbar to the plot (default True). **kwargs : dict Additional keyword arguments to pass to the pylibs plot functions.
Returns
fig : matplotlib.figure.Figure The figure object. ax : matplotlib.axes.Axes The axes object.
Examples
Plot grid with bathymetry as filled contours
grid.plot(fmt=1, cmap='viridis', levels=20)
Plot specific depth contours with custom range
grid.plot(fmt=2, clim=[-100, 0], levels=[-100, -50, -20, -10, 0])
Source code in rompy_schism/grid.py
plot_hgrid
Create a comprehensive two-panel visualization of the SCHISM grid.
Left panel shows bathymetry/depth, right panel shows the mesh and boundaries.
Parameters
figsize : tuple, optional Size of the figure (width, height). Default is (20, 10).
Returns
fig : matplotlib.figure.Figure The figure object containing both panels. (ax1, ax2) : tuple of matplotlib.axes.Axes The axes objects for the bathymetry and mesh panels.
Source code in rompy_schism/grid.py
ocean_boundary
Source code in rompy_schism/grid.py
land_boundary
Source code in rompy_schism/grid.py
boundary_points
serialize_model
Custom serializer to handle optional fields properly during serialization.
Source code in rompy_schism/grid.py
Data
Supporting objects for SCHISM data files.jects
SfluxSource
Bases: DataGrid
This is a single variable source for and sflux input
Source code in rompy_schism/data.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
Attributes
data_type
class-attribute
instance-attribute
id
class-attribute
instance-attribute
relative_weight
class-attribute
instance-attribute
relative_weight: float = Field(1.0, description='relative weight of the source file if two files are provided')
max_window_hours
class-attribute
instance-attribute
max_window_hours: float = Field(120.0, description='maximum number of hours (offset from start time in each file) in each file of set 1')
fail_if_missing
class-attribute
instance-attribute
time_buffer
class-attribute
instance-attribute
time_buffer: list[int] = Field(default=[0, 1], description='Number of source data timesteps to buffer the time range if `filter_time` is True')
model_config
class-attribute
instance-attribute
SfluxAir
Bases: SfluxSource
This is a single variable source for and sflux input
Source code in rompy_schism/data.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | |
Attributes
data_type
class-attribute
instance-attribute
data_type: Literal['sflux_air'] = Field(default='sflux_air', description='Model type discriminator')
uwind_name
class-attribute
instance-attribute
vwind_name
class-attribute
instance-attribute
prmsl_name
class-attribute
instance-attribute
prmsl_name: Optional[str] = Field(None, description='name of mean sea level pressure variable in source')
stmp_name
class-attribute
instance-attribute
stmp_name: Optional[str] = Field(None, description='name of surface air temperature variable in source')
spfh_name
class-attribute
instance-attribute
SfluxRad
Bases: SfluxSource
This is a single variable source for and sflux input
Source code in rompy_schism/data.py
Attributes
data_type
class-attribute
instance-attribute
data_type: Literal['sflux_rad'] = Field(default='sflux_rad', description='Model type discriminator')
SfluxPrc
Bases: SfluxSource
This is a single variable source for and sflux input
Source code in rompy_schism/data.py
SCHISMDataBoundary
Bases: DataBoundary
This class is used to extract ocean boundary data from a griddd dataset at all open boundary nodes.
Source code in rompy_schism/data.py
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 | |
Attributes
data_type
class-attribute
instance-attribute
id
class-attribute
instance-attribute
id: str = Field('bnd', description='SCHISM th id of the source', json_schema_extra={'choices': ['elev2D', 'uv3D', 'TEM_3D', 'SAL_3D', 'bnd']})
data_grid_source
class-attribute
instance-attribute
variables
class-attribute
instance-attribute
sel_method
class-attribute
instance-attribute
sel_method: Literal['sel', 'interp'] = Field(default='interp', description='Xarray method to use for selecting boundary points from the dataset')
time_buffer
class-attribute
instance-attribute
time_buffer: list[int] = Field(default=[0, 1], description='Number of source data timesteps to buffer the time range if `filter_time` is True')
Functions
get
get(destdir: str | Path, grid: SCHISMGrid, time: Optional[TimeRange] = None) -> str
Write the selected boundary data to a netcdf file. Parameters
destdir : str | Path
Destination directory for the netcdf file.
grid : SCHISMGrid
Grid instance to use for selecting the boundary points.
time: TimeRange, optional
The times to filter the data to, only used if self.crop_data is True.
Returns
outfile : Path Path to the netcdf file.
Source code in rompy_schism/data.py
boundary_ds
boundary_ds(grid: SCHISMGrid, time: Optional[TimeRange]) -> Dataset
Generate SCHISM boundary dataset from source data.
This function extracts and formats boundary data for SCHISM from a source dataset. For 3D models, it handles vertical interpolation to the SCHISM sigma levels.
Parameters
grid : SCHISMGrid The SCHISM grid to extract boundary data for time : Optional[TimeRange] The time range to filter data to, if crop_data is True
Returns
xr.Dataset Dataset formatted for SCHISM boundary input
Source code in rompy_schism/data.py
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 | |
Main objects
SCHISMDataSflux
Bases: RompyBaseModel
Source code in rompy_schism/data.py
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | |
Attributes
data_type
class-attribute
instance-attribute
air_1
class-attribute
instance-attribute
air_2
class-attribute
instance-attribute
rad_1
class-attribute
instance-attribute
rad_1: Optional[Union[DataBlob, SfluxRad]] = Field(None, description='sflux rad source 1')
rad_2
class-attribute
instance-attribute
rad_2: Optional[Union[DataBlob, SfluxRad]] = Field(None, description='sflux rad source 2')
prc_1
class-attribute
instance-attribute
prc_1: Optional[Union[DataBlob, SfluxPrc]] = Field(None, description='sflux prc source 1')
prc_2
class-attribute
instance-attribute
prc_2: Optional[Union[DataBlob, SfluxPrc]] = Field(None, description='sflux prc source 2')
model_config
class-attribute
instance-attribute
Functions
validate_air_fields
Validate air fields after model creation.
Source code in rompy_schism/data.py
get
get(destdir: str | Path, grid: Optional[SCHISMGrid] = None, time: Optional[TimeRange] = None) -> Path
Writes SCHISM sflux data from a dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destdir
|
str | Path
|
The destination directory to write the sflux data. |
required |
grid
|
Optional[SCHISMGrid]
|
The grid type. Defaults to None. |
None
|
time
|
Optional[TimeRange]
|
The time range. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
The path to the written sflux data. |
Source code in rompy_schism/data.py
check_weights
Check that relative weights for each pair add to 1.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cls
|
The class. |
required | |
v
|
The variable. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the relative weights for any variable do not add up to 1.0. |
Source code in rompy_schism/data.py
SCHISMDataWave
Bases: BoundaryWaveStation
This class is used to write wave spectral boundary data. Spectral data is extracted from the nearest points along the grid boundary
Source code in rompy_schism/data.py
Attributes
data_type
class-attribute
instance-attribute
sel_method
class-attribute
instance-attribute
sel_method: Literal['idw', 'nearest'] = Field(default='nearest', description='Method for selecting boundary points')
sel_method_kwargs
class-attribute
instance-attribute
sel_method_kwargs: dict = Field(default={'unique': True}, description='Keyword arguments for sel_method')
time_buffer
class-attribute
instance-attribute
time_buffer: list[int] = Field(default=[0, 1], description='Number of source data timesteps to buffer the time range if `filter_time` is True')
Functions
get
get(destdir: str | Path, grid: SCHISMGrid, time: Optional[TimeRange] = None) -> str
Write the selected boundary data to a netcdf file. Parameters
destdir : str | Path
Destination directory for the netcdf file.
grid : SCHISMGrid
Grid instance to use for selecting the boundary points.
time: TimeRange, optional
The times to filter the data to, only used if self.crop_data is True.
Returns
outfile : Path Path to the netcdf file.
Source code in rompy_schism/data.py
SCHISMDataBoundaryConditions
Bases: RompyBaseModel
This class configures all boundary conditions for SCHISM including tidal, ocean, river, and nested model boundaries.
It provides a unified interface for specifying boundary conditions and their data sources, replacing the separate tides and ocean configurations.
Source code in rompy_schism/data.py
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 | |
Attributes
model_config
class-attribute
instance-attribute
data_type
class-attribute
instance-attribute
data_type: Literal['boundary_conditions'] = Field(default='boundary_conditions', description='Model type discriminator')
tidal_data
class-attribute
instance-attribute
boundaries
class-attribute
instance-attribute
boundaries: Dict[int, BoundarySetupWithSource] = Field(default_factory=dict, description='Boundary configuration by boundary index')
setup_type
class-attribute
instance-attribute
setup_type: Optional[Literal['tidal', 'hybrid', 'river', 'nested']] = Field(None, description='Predefined boundary setup type')
hotstart_config
class-attribute
instance-attribute
hotstart_config: Optional[HotstartConfig] = Field(None, description='Configuration for hotstart file generation')
Functions
convert_numpy_types
classmethod
Convert any numpy values to Python native types
Source code in rompy_schism/data.py
validate_tidal_data
Ensure tidal data is provided when needed for TIDAL or TIDALSPACETIME boundaries.
Source code in rompy_schism/data.py
validate_setup_type
Validate setup type specific requirements.
Source code in rompy_schism/data.py
get
get(destdir: str | Path, grid: SCHISMGrid, time: TimeRange) -> Dict[str, str]
Process all boundary data and generate necessary input files.
Parameters
destdir : str | Path Destination directory grid : SCHISMGrid SCHISM grid instance time : TimeRange Time range for the simulation
Returns
Dict[str, str] Paths to generated files
Source code in rompy_schism/data.py
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 | |
HotstartConfig
Bases: RompyBaseModel
Configuration for generating SCHISM hotstart files.
This class specifies parameters for creating hotstart.nc files from temperature and salinity data sources already configured in boundary conditions.
Source code in rompy_schism/data.py
Attributes
enabled
class-attribute
instance-attribute
temp_var
class-attribute
instance-attribute
temp_var: str = Field(default='temperature', description='Name of temperature variable in source dataset')
salt_var
class-attribute
instance-attribute
salt_var: str = Field(default='salinity', description='Name of salinity variable in source dataset')
time_offset
class-attribute
instance-attribute
time_offset: float = Field(default=0.0, description='Offset to add to source time values (in days)')
SCHISMData
Bases: RompyBaseModel
This class is used to gather all required input forcing for SCHISM
Source code in rompy_schism/data.py
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 | |
Attributes
data_type
class-attribute
instance-attribute
atmos
class-attribute
instance-attribute
atmos: Optional[SCHISMDataSflux] = Field(None, description='atmospheric data')
wave
class-attribute
instance-attribute
wave: Optional[Union[DataBlob, SCHISMDataWave]] = Field(None, description='wave data')
boundary_conditions
class-attribute
instance-attribute
boundary_conditions: Optional[SCHISMDataBoundaryConditions] = Field(None, description='unified boundary conditions (replaces tides and ocean)')
Functions
get
get(destdir: str | Path, grid: SCHISMGrid, time: TimeRange) -> Dict[str, Any]
Process all SCHISM forcing data and generate necessary input files.
Parameters
destdir : str | Path Destination directory grid : SCHISMGrid SCHISM grid instance time : TimeRange Time range for the simulation
Returns
Dict[str, Any] Paths to generated files for each data component
Source code in rompy_schism/data.py
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 | |
Boundary Conditions
The boundary conditions module provides a unified interface for configuring all types of SCHISM boundary conditions including tidal, ocean, river, and nested model boundaries.
Hotstart Configuration
The hotstart system provides integrated initial condition file generation, allowing you to create hotstart.nc files from the same ocean data sources used for boundary conditions.
Backend Framework
The backend framework provides unified execution of SCHISM simulations using Docker containers with automatic image building and comprehensive testing capabilities.
Backend Framework Backend Tutorial
SCHISMDataBoundaryConditions
Bases: RompyBaseModel
This class configures all boundary conditions for SCHISM including tidal, ocean, river, and nested model boundaries.
It provides a unified interface for specifying boundary conditions and their data sources, replacing the separate tides and ocean configurations.
Source code in rompy_schism/data.py
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 | |
Attributes
model_config
class-attribute
instance-attribute
data_type
class-attribute
instance-attribute
data_type: Literal['boundary_conditions'] = Field(default='boundary_conditions', description='Model type discriminator')
tidal_data
class-attribute
instance-attribute
boundaries
class-attribute
instance-attribute
boundaries: Dict[int, BoundarySetupWithSource] = Field(default_factory=dict, description='Boundary configuration by boundary index')
setup_type
class-attribute
instance-attribute
setup_type: Optional[Literal['tidal', 'hybrid', 'river', 'nested']] = Field(None, description='Predefined boundary setup type')
hotstart_config
class-attribute
instance-attribute
hotstart_config: Optional[HotstartConfig] = Field(None, description='Configuration for hotstart file generation')
Functions
convert_numpy_types
classmethod
Convert any numpy values to Python native types
Source code in rompy_schism/data.py
validate_tidal_data
Ensure tidal data is provided when needed for TIDAL or TIDALSPACETIME boundaries.
Source code in rompy_schism/data.py
validate_setup_type
Validate setup type specific requirements.
Source code in rompy_schism/data.py
get
get(destdir: str | Path, grid: SCHISMGrid, time: TimeRange) -> Dict[str, str]
Process all boundary data and generate necessary input files.
Parameters
destdir : str | Path Destination directory grid : SCHISMGrid SCHISM grid instance time : TimeRange Time range for the simulation
Returns
Dict[str, str] Paths to generated files
Source code in rompy_schism/data.py
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 | |
BoundarySetupWithSource
Bases: BoundarySetup
Enhanced boundary setup that includes data sources.
This class extends BoundarySetup to provide a unified configuration for both boundary conditions and their data sources.
Source code in rompy_schism/data.py
Attributes
elev_source
class-attribute
instance-attribute
elev_source: Optional[Union[DataBlob, DataGrid, SCHISMDataBoundary]] = Field(None, description='Data source for elevation boundary condition')
vel_source
class-attribute
instance-attribute
vel_source: Optional[Union[DataBlob, DataGrid, SCHISMDataBoundary]] = Field(None, description='Data source for velocity boundary condition')
temp_source
class-attribute
instance-attribute
temp_source: Optional[Union[DataBlob, DataGrid, SCHISMDataBoundary]] = Field(None, description='Data source for temperature boundary condition')
salt_source
class-attribute
instance-attribute
salt_source: Optional[Union[DataBlob, DataGrid, SCHISMDataBoundary]] = Field(None, description='Data source for salinity boundary condition')
Functions
validate_data_sources
Ensure data sources are provided when needed for space-time boundary types.
Source code in rompy_schism/data.py
create_tidal_only_boundary_config
create_tidal_only_boundary_config(constituents: Union[str, List[str]] = 'major', tidal_database: Union[str, Path] = None, tidal_model: Optional[str] = 'FES2014', nodal_corrections: bool = True, tidal_potential: bool = True, cutoff_depth: float = 50.0, tide_interpolation_method: str = 'bilinear')
Create a configuration where all open boundaries are treated as tidal boundaries.
Parameters
constituents : str or list, optional Tidal constituents to include, by default "major" tidal_database : str or Path, optional Path to tidal database for pyTMD, by default None tidal_model : str, optional Tidal model to use, by default 'FES2014' nodal_corrections : bool, optional Whether to apply nodal corrections, by default True tidal_potential : bool, optional Whether to include tidal potential, by default True cutoff_depth : float, optional Depth threshold for tidal potential, by default 50.0 tide_interpolation_method : str, optional Method for tide interpolation, by default "bilinear"
Returns
SCHISMDataBoundaryConditions Configured boundary conditions
Source code in rompy_schism/boundary_core.py
create_hybrid_boundary_config
create_hybrid_boundary_config(constituents: Union[str, List[str]] = 'major', tidal_database: Union[str, Path] = None, tidal_model: Optional[str] = 'FES2014', nodal_corrections: bool = True, tidal_potential: bool = True, cutoff_depth: float = 50.0, tide_interpolation_method: str = 'bilinear', elev_source: Optional[Union[Any, Any]] = None, vel_source: Optional[Union[Any, Any]] = None, temp_source: Optional[Union[Any, Any]] = None, salt_source: Optional[Union[Any, Any]] = None)
Create a configuration for hybrid harmonic + external data boundaries.
Parameters
constituents : str or list, optional Tidal constituents to include, by default "major" tidal_database : str or Path, optional Path to tidal database for pyTMD, by default None tidal_model : str, optional Tidal model to use, by default 'FES2014' nodal_corrections : bool, optional Whether to apply nodal corrections, by default True tidal_potential : bool, optional Whether to include tidal potential, by default True cutoff_depth : float, optional Depth threshold for tidal potential, by default 50.0 tide_interpolation_method : str, optional Method for tide interpolation, by default "bilinear" elev_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for elevation vel_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for velocity temp_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for temperature salt_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for salinity
Returns
SCHISMDataBoundaryConditions Configured boundary conditions
Source code in rompy_schism/boundary_core.py
960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 | |
create_river_boundary_config
create_river_boundary_config(river_boundary_index: int = 0, river_flow: float = -100.0, other_boundaries: Literal['tidal', 'hybrid', 'none'] = 'tidal', constituents: Union[str, List[str]] = 'major', tidal_database: Union[str, Path] = None, tidal_model: Optional[str] = 'FES2014', nodal_corrections: bool = True, tidal_potential: bool = True, cutoff_depth: float = 50.0, tide_interpolation_method: str = 'bilinear')
Create a configuration with a designated river boundary and optional tidal boundaries.
Parameters
river_boundary_index : int Index of the river boundary river_flow : float Flow rate (negative for inflow) other_boundaries : str How to treat other boundaries ("tidal", "hybrid", or "none") constituents : str or list, optional Tidal constituents to include, by default "major" tidal_database : str or Path, optional Path to tidal database for pyTMD, by default None tidal_model : str, optional Tidal model to use, by default 'FES2014' nodal_corrections : bool, optional Whether to apply nodal corrections, by default True tidal_potential : bool, optional Whether to include tidal potential, by default True cutoff_depth : float, optional Depth threshold for tidal potential, by default 50.0 tide_interpolation_method : str, optional Method for tide interpolation, by default "bilinear"
Returns
SCHISMDataBoundaryConditions Configured boundary conditions
Source code in rompy_schism/boundary_core.py
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 | |
create_nested_boundary_config
create_nested_boundary_config(with_tides: bool = True, inflow_relax: float = 0.8, outflow_relax: float = 0.2, elev_source: Optional[Union[Any, Any]] = None, vel_source: Optional[Union[Any, Any]] = None, temp_source: Optional[Union[Any, Any]] = None, salt_source: Optional[Union[Any, Any]] = None, constituents: Union[str, List[str]] = 'major', tidal_database: Union[str, Path] = None, tidal_model: Optional[str] = 'FES2014', nodal_corrections: bool = True, tidal_potential: bool = True, cutoff_depth: float = 50.0, tide_interpolation_method: str = 'bilinear')
Create a configuration for nested model boundaries with external data.
Parameters
with_tides : bool Include tidal components inflow_relax : float Relaxation parameter for inflow (0-1) outflow_relax : float Relaxation parameter for outflow (0-1) elev_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for elevation vel_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for velocity temp_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for temperature salt_source : Union[DataBlob, SCHISMDataBoundary], optional Data source for salinity constituents : str or list, optional Tidal constituents to include, by default "major" tidal_database : str or Path, optional Path to tidal database for pyTMD, by default None tidal_model : str, optional Tidal model to use, by default 'FES2014' nodal_corrections : bool, optional Whether to apply nodal corrections, by default True tidal_potential : bool, optional Whether to include tidal potential, by default True cutoff_depth : float, optional Depth threshold for tidal potential, by default 50.0 tide_interpolation_method : str, optional Method for tide interpolation, by default "bilinear"
Returns
SCHISMDataBoundaryConditions Configured boundary conditions
Source code in rompy_schism/boundary_core.py
1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 | |
Config Minimal
This object has been implemented to meet the initial operational requirements of CSIRO. It is likely that this will be superceded by the full implementation.
SchismCSIROConfig
Full Namelist Implementation
This object implements a set of models for each namelist and assembles a config object using this group of models. This is curently only partly implemented.
PARAM
Core
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/param.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | |
Attributes
ipre
class-attribute
instance-attribute
ipre: Optional[int] = Field(0, description='Pre-processor flag (1: on; 0: off). Useful for checking grid errors etc. Use 1 core only for compute (plus necessary scribe cores) when enabled. Under scribe I/O, the code (scribe part) will hang but outputs will be available. Job should be manually terminated.')
ibc
class-attribute
instance-attribute
ibc: Optional[int] = Field(0, description='Baroclinic option flag. If set to 0 (baroclinic model), ibtp is not used.')
ibtp
class-attribute
instance-attribute
rnday
class-attribute
instance-attribute
dt
class-attribute
instance-attribute
msc2
class-attribute
instance-attribute
msc2: Optional[int] = Field(24, description='Number of spectral frequencies for WWM grid. Must be the same as msc in .nml for consistency between SCHISM and WWM.')
mdc2
class-attribute
instance-attribute
mdc2: Optional[int] = Field(24, description='Number of directional bins for WWM grid. Must be the same as mdc in .nml for consistency between SCHISM and WWM.')
ntracer_gen
class-attribute
instance-attribute
ntracer_gen: Optional[int] = Field(2, description='Number of tracers in user-defined module (USE_GEN).')
ntracer_age
class-attribute
instance-attribute
ntracer_age: Optional[int] = Field(4, description='Number of tracers for age calculation (USE_AGE). Must be equal to 2*N where N is the number of age tracers.')
sed_class
class-attribute
instance-attribute
sed_class: Optional[int] = Field(5, description='Number of sediment classes for SED3D module (USE_SED).')
eco_class
class-attribute
instance-attribute
eco_class: Optional[int] = Field(27, description='Number of ecological variables for EcoSim module (USE_ECO). Must be between 25 and 60, inclusive.')
nspool
class-attribute
instance-attribute
ihfskip
class-attribute
instance-attribute
ihfskip: Optional[int] = Field(864, description='Stack spool for global output controls. Every ihfskip steps will be put into 1_*, 2_*, etc.')
nbins_veg_vert
class-attribute
instance-attribute
nbins_veg_vert: Optional[int] = Field(2, description='Number of vertical bins for vegetation model. Only used if iveg=1.')
Functions
validate_ipre
classmethod
validate_ibc
classmethod
validate_ibtp
classmethod
validate_rnday
classmethod
validate_dt
classmethod
validate_msc2
classmethod
validate_mdc2
classmethod
validate_ntracer_gen
classmethod
validate_ntracer_age
classmethod
validate_sed_class
classmethod
validate_eco_class
classmethod
validate_nspool
classmethod
validate_ihfskip
classmethod
Opt
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/param.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 | |
Attributes
ipre2
class-attribute
instance-attribute
ipre2: Optional[int] = Field(0, description='Pre-processing flag for diagnostic outputs. If non-zero, the code will output drag coefficients (Cdp) and stop.')
itransport_only
class-attribute
instance-attribute
itransport_only: Optional[int] = Field(0, description='Option to solve only tracer transport. 0: off, 1 or 2: on. When 2, additional variables are needed.')
iloadtide
class-attribute
instance-attribute
iloadtide: Optional[int] = Field(0, description='Option to add self-attracting and loading tide (SAL) into tidal potential. 0: off, 1: needs loadtide_[FREQ].gr3 inputs, 2 or 3: simple scaling for gravity approach.')
loadtide_coef
class-attribute
instance-attribute
loadtide_coef: Optional[float] = Field(0.1, description='Coefficient for SAL scaling. Used only if iloadtide is 2 or 3.')
start_year
class-attribute
instance-attribute
start_month
class-attribute
instance-attribute
start_hour
class-attribute
instance-attribute
utc_start
class-attribute
instance-attribute
ics
class-attribute
instance-attribute
ieos_pres
class-attribute
instance-attribute
ieos_pres: Optional[int] = Field(0, description='used only if ieos_type=0. 0: without pressure effects')
eos_a
class-attribute
instance-attribute
eos_b
class-attribute
instance-attribute
dramp
class-attribute
instance-attribute
dramp: Optional[float] = Field(1.0, description='ramp-up period in days for b.c. etc (no ramp-up if <=0)')
drampbc
class-attribute
instance-attribute
iupwind_mom
class-attribute
instance-attribute
hvis_coef0
class-attribute
instance-attribute
hvis_coef0: Optional[float] = Field(0.025, description='const. diffusion # if ihorcon/=0; <=0.025 for ihorcon=2, <=0.125 for ihorcon=1')
ishapiro
class-attribute
instance-attribute
niter_shap
class-attribute
instance-attribute
niter_shap: Optional[int] = Field(1, description='needed if ishapiro/=0: # of iterations with Shapiro filter')
shapiro0
class-attribute
instance-attribute
icou_elfe_wwm
class-attribute
instance-attribute
nstep_wwm
class-attribute
instance-attribute
iwbl
class-attribute
instance-attribute
iwbl: Optional[int] = Field(0, description='wave boundary layer formulation (used only if USE_WMM and')
hmin_radstress
class-attribute
instance-attribute
hmin_radstress: Optional[float] = Field(1.0, description='min. total water depth used only in radiation stress calculation [m]')
drampwafo
class-attribute
instance-attribute
drampwafo: Optional[float] = Field(0.0, description='ramp-up period in days for the wave forces (no ramp-up if <=0)')
turbinj
class-attribute
instance-attribute
turbinj: Optional[float] = Field(0.15, description='% of depth-induced wave breaking energy injected in turbulence')
turbinjds
class-attribute
instance-attribute
turbinjds: Optional[float] = Field(1.0, description='% of wave energy dissipated through whitecapping injected in turbulence')
alphaw
class-attribute
instance-attribute
alphaw: Optional[float] = Field(0.5, description='for itur=4 : scaling parameter for the surface roughness z0s = alphaw*Hm0.')
fwvor_advxy_stokes
class-attribute
instance-attribute
fwvor_advxy_stokes: Optional[int] = Field(1, description='--> Stokes drift advection (xy), Coriolis')
fwvor_advz_stokes
class-attribute
instance-attribute
fwvor_advz_stokes: Optional[int] = Field(1, description='--> Stokes drift advection (z) , Coriolis')
fwvor_gradpress
class-attribute
instance-attribute
fwvor_breaking
class-attribute
instance-attribute
fwvor_streaming
class-attribute
instance-attribute
fwvor_wveg
class-attribute
instance-attribute
fwvor_wveg: Optional[int] = Field(0, description='--> Wave dissipation by vegetation acceleration term')
fwvor_wveg_nl
class-attribute
instance-attribute
fwvor_wveg_nl: Optional[int] = Field(0, description='--> Non linear intrawave vegetation force (see Dean and Bender, 2006 or van Rooijen et al., 2016 for details)')
cur_wwm
class-attribute
instance-attribute
wafo_obcramp
class-attribute
instance-attribute
wafo_obcramp: Optional[int] = Field(0, description='Ramp on wave forces at open boundary (1: on / 0: off)')
ibdef
class-attribute
instance-attribute
slam0
class-attribute
instance-attribute
iunder_deep
class-attribute
instance-attribute
h2_bcc
class-attribute
instance-attribute
hw_depth
class-attribute
instance-attribute
hw_ratio
class-attribute
instance-attribute
ihydraulics
class-attribute
instance-attribute
dramp_ss
class-attribute
instance-attribute
dramp_ss: Optional[int] = Field(2, description='needed if if_source/=0; ramp-up period in days for source/sinks (no ramp-up if <=0)')
lev_tr_source__1
class-attribute
instance-attribute
lev_tr_source__2
class-attribute
instance-attribute
lev_tr_source__3
class-attribute
instance-attribute
lev_tr_source__4
class-attribute
instance-attribute
lev_tr_source__5
class-attribute
instance-attribute
lev_tr_source__6
class-attribute
instance-attribute
lev_tr_source__7
class-attribute
instance-attribute
lev_tr_source__8
class-attribute
instance-attribute
lev_tr_source__9
class-attribute
instance-attribute
lev_tr_source__10
class-attribute
instance-attribute
lev_tr_source__11
class-attribute
instance-attribute
lev_tr_source__12
class-attribute
instance-attribute
level_age
class-attribute
instance-attribute
dzb_min
class-attribute
instance-attribute
dzb_min: Optional[float] = Field(0.5, description='needed if nchi=1; min. bottom boundary layer thickness [m].')
hmin_man
class-attribute
instance-attribute
hmin_man: Optional[float] = Field(1.0, description="needed if nchi=-1: min. depth in Manning's formulation [m]")
ncor
class-attribute
instance-attribute
rlatitude
class-attribute
instance-attribute
coricoef
class-attribute
instance-attribute
inv_atm_bnd
class-attribute
instance-attribute
prmsl_ref
class-attribute
instance-attribute
flag_ic__3
class-attribute
instance-attribute
flag_ic__5
class-attribute
instance-attribute
flag_ic__6
class-attribute
instance-attribute
flag_ic__7
class-attribute
instance-attribute
flag_ic__8
class-attribute
instance-attribute
flag_ic__9
class-attribute
instance-attribute
flag_ic__10
class-attribute
instance-attribute
flag_ic__11
class-attribute
instance-attribute
flag_ic__12
class-attribute
instance-attribute
gen_wsett
class-attribute
instance-attribute
velmin_btrack
class-attribute
instance-attribute
velmin_btrack: Optional[float] = Field(0.0001, description='min. vel for invoking btrack and for abnormal exit in quicksearch')
btrack_nudge
class-attribute
instance-attribute
btrack_nudge: Optional[float] = Field(0.009013, description='Nudging factors for starting side/node')
h0
class-attribute
instance-attribute
shorewafo
class-attribute
instance-attribute
moitn0
class-attribute
instance-attribute
mxitn0
class-attribute
instance-attribute
rtol0
class-attribute
instance-attribute
dtb_max
class-attribute
instance-attribute
kr_co
class-attribute
instance-attribute
h_tvd
class-attribute
instance-attribute
eps1_tvd_imp
class-attribute
instance-attribute
eps1_tvd_imp: Optional[float] = Field(0.0001, description='suggested value is 1.e-4, but for large suspended load, need to use a smaller value (e.g. 1.e-9)')
eps2_tvd_imp
class-attribute
instance-attribute
ielm_transport
class-attribute
instance-attribute
max_subcyc
class-attribute
instance-attribute
max_subcyc: Optional[int] = Field(10, description='used only if ielm_transport/=0. Max # of subcycling per time step in transport allowed')
ip_weno
class-attribute
instance-attribute
ip_weno: Optional[int] = Field(2, description='order of accuracy: 0- upwind; 1- linear polynomial, 2nd order; 2- quadratic polynomial, 3rd order')
courant_weno
class-attribute
instance-attribute
nquad
class-attribute
instance-attribute
ntd_weno
class-attribute
instance-attribute
ntd_weno: Optional[int] = Field(1, description='order of temporal discretization: (1) Euler (default); (3): 3rd-order Runge-Kutta (only for benchmarking)')
epsilon1
class-attribute
instance-attribute
epsilon1: Optional[float] = Field(0.001, description='coefficient for 2nd order weno smoother (larger values are more prone to numerical dispersion)')
epsilon2
class-attribute
instance-attribute
epsilon2: Optional[float] = Field(1e-10, description='1st coefficient for 3rd order weno smoother (larger values are more prone to numerical dispersion')
i_prtnftl_weno
class-attribute
instance-attribute
i_prtnftl_weno: Optional[int] = Field(0, description='option for writing nonfatal errors on invalid temp. or salinity for density: (0) off; (1) on.')
epsilon3
class-attribute
instance-attribute
epsilon3: Optional[float] = Field(1e-25, description='2nd coefficient for 3rd order weno smoother (inactive at the moment)')
ielad_weno
class-attribute
instance-attribute
ielad_weno: Optional[int] = Field(0, description='ielad, if ielad=1, use ELAD method to suppress dispersion (inactive at the moment)')
small_elad
class-attribute
instance-attribute
nws
class-attribute
instance-attribute
nws: Optional[int] = Field(0, description='\n Atmos. option. Use nws=2 and USE_ATMOS for coupling with atmospheric model.\n If nws=0, no atmos. forcing is applied. If nws=1, atmos.\n variables are read in from wind.th. If nws=2, atmos. variables are\n read in from sflux_ files.\n If nws=4, ascii format is used for wind and atmos. pressure at each node (see source code).\n If nws=-1 (requires USE_PAHM), use Holland parametric wind model (barotropic only with wind and atmos. pressure).\n In this case, the Holland model is called every step so wtiminc is not used. An extra \n input file is needed: hurricane-track.dat, in addition to a few parameters below.\n\n Stress calculation:\n If nws=2, ihconsv=1 and iwind_form=0, the stress is calculated from heat exchange\n routine; in this case USE_ATMOS cannot be on.\n Otherwise if iwind_form=-1, the stress is calculated from Pond & Pichard formulation;\n if iwind_form=1, Hwang (2018) formulation (Cd tapers off at high wind).\n If WWM is enabled and icou_elfe_wwm>0 and iwind_form=-2 or -3, stress is overwritten by WWM:\n If iwind_form=-2, stress=rho_air*ufric^2; scaled by rho_water\n If iwind_form=-3, the stress is calculated according to the param. of Donelan et al. (1993) based on the wave age.\n In all cases, if USE_ICE the stress in ice-covered portion is calculated by ICE routine.\n ')
wtiminc
class-attribute
instance-attribute
wtiminc: Optional[float] = Field(150.0, description='time step for atmos. forcing. Default: same as dt')
drampwind
class-attribute
instance-attribute
drampwind: Optional[float] = Field(1.0, description='ramp-up period in days for wind (no ramp-up if <=0)')
iwindoff
class-attribute
instance-attribute
iwind_form
class-attribute
instance-attribute
model_type_pahm
class-attribute
instance-attribute
model_type_pahm: Optional[int] = Field(10, description='only used if nws=-1: hurricane model type (1: Holland; 10: GAHM)')
ihconsv
class-attribute
instance-attribute
isconsv
class-attribute
instance-attribute
i_hmin_airsea_ex
class-attribute
instance-attribute
hmin_airsea_ex
class-attribute
instance-attribute
i_hmin_salt_ex
class-attribute
instance-attribute
hmin_salt_ex
class-attribute
instance-attribute
iprecip_off_bnd
class-attribute
instance-attribute
iprecip_off_bnd: Optional[int] = Field(0, description='if /=0, precip will be turned off near land bnd')
dfv0
class-attribute
instance-attribute
dfh0
class-attribute
instance-attribute
mid
class-attribute
instance-attribute
stab
class-attribute
instance-attribute
stab: Optional[str] = Field('KC', description="needed if itur=3 or 5. Use 'GA' if turb_met='MY'; otherwise use 'KC'.")
xlsc0
class-attribute
instance-attribute
xlsc0: Optional[float] = Field(0.1, description='needed if itur=3 or 5. Scale for surface & bottom mixing length (>0)')
inu_tr__5
class-attribute
instance-attribute
inu_tr__6
class-attribute
instance-attribute
inu_tr__8
class-attribute
instance-attribute
inu_tr__10
class-attribute
instance-attribute
inu_tr__11
class-attribute
instance-attribute
inu_tr__12
class-attribute
instance-attribute
nu_sum_mult
class-attribute
instance-attribute
Functions
validate_ipre2
classmethod
validate_itransport_only
classmethod
validate_iloadtide
classmethod
validate_loadtide_coef
classmethod
validate_start_year
classmethod
validate_start_month
classmethod
check_loadtide_coef
Schout
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/param.py
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 | |
Attributes
nc_out
class-attribute
instance-attribute
nc_out: Optional[int] = Field(1, description="Main switch to control netcdf output. If 0, SCHISM won't output nc files at all.")
iof_ugrid
class-attribute
instance-attribute
iof_ugrid: Optional[int] = Field(0, description='UGRID option for 3D outputs. If non-zero, 3D outputs will have UGRID metadata.')
nhot
class-attribute
instance-attribute
nhot: Optional[int] = Field(0, description="Option for hotstart outputs. If 1, outputs hotstart every 'nhot_write' steps.")
nhot_write
class-attribute
instance-attribute
nhot_write: Optional[int] = Field(8640, description='Number of steps between hotstart outputs. Must be a multiple of ihfskip if nhot=1.')
iout_sta
class-attribute
instance-attribute
iout_sta: Optional[int] = Field(0, description='Station output option. If non-zero, requires output skip (nspool_sta) and a station.in file.')
nspool_sta
class-attribute
instance-attribute
nspool_sta: Optional[int] = Field(10, description='Number of steps between station outputs. Required if iout_sta is non-zero.')
iof_hydro__1
class-attribute
instance-attribute
iof_hydro__2
class-attribute
instance-attribute
iof_hydro__3
class-attribute
instance-attribute
iof_hydro__4
class-attribute
instance-attribute
iof_hydro__5
class-attribute
instance-attribute
iof_hydro__5: Optional[int] = Field(0, description='Net downward solar (shortwave) radiation after albedo [W/m/m] {solarRadiation} 2D')
iof_hydro__6
class-attribute
instance-attribute
iof_hydro__6: Optional[int] = Field(0, description='sensible flux (positive upward) [W/m/m] {sensibleHeat} 2D')
iof_hydro__7
class-attribute
instance-attribute
iof_hydro__7: Optional[int] = Field(0, description='latent heat flux (positive upward) [W/m/m] {latentHeat} 2D')
iof_hydro__8
class-attribute
instance-attribute
iof_hydro__8: Optional[int] = Field(0, description='upward longwave radiation (positive upward) [W/m/m] {upwardLongwave} 2D')
iof_hydro__9
class-attribute
instance-attribute
iof_hydro__9: Optional[int] = Field(0, description='downward longwave radiation (positive downward) [W/m/m] {downwardLongwave} 2D')
iof_hydro__10
class-attribute
instance-attribute
iof_hydro__10: Optional[int] = Field(0, description='total flux=-flsu-fllu-(radu-radd) [W/m/m] {totalHeat} 2D')
iof_hydro__11
class-attribute
instance-attribute
iof_hydro__11: Optional[int] = Field(0, description='evaporation rate [kg/m/m/s] {evaporationRate} 2D')
iof_hydro__12
class-attribute
instance-attribute
iof_hydro__12: Optional[int] = Field(0, description='precipitation rate [kg/m/m/s] {precipitationRate} 2D')
iof_hydro__13
class-attribute
instance-attribute
iof_hydro__13: Optional[int] = Field(0, description='Bottom stress vector [kg/m/s^2(Pa)] {bottomStressX,Y} 2D vector')
iof_hydro__14
class-attribute
instance-attribute
iof_hydro__14: Optional[int] = Field(0, description='wind velocity vector [m/s] {windSpeedX,Y} 2D vector')
iof_hydro__15
class-attribute
instance-attribute
iof_hydro__15: Optional[int] = Field(0, description='wind stress vector [m^2/s/s] {windStressX,Y} 2D vector')
iof_hydro__16
class-attribute
instance-attribute
iof_hydro__16: Optional[int] = Field(1, description='depth-averaged vel vector [m/s] {depthAverageVelX,Y} 2D vector')
iof_hydro__17
class-attribute
instance-attribute
iof_hydro__17: Optional[int] = Field(0, description='vertical velocity [m/s] {verticalVelocity} 3D')
iof_hydro__18
class-attribute
instance-attribute
iof_hydro__19
class-attribute
instance-attribute
iof_hydro__20
class-attribute
instance-attribute
iof_hydro__21
class-attribute
instance-attribute
iof_hydro__21: Optional[int] = Field(0, description='vertical eddy diffusivity [m^2/s] {diffusivity} 3D')
iof_hydro__22
class-attribute
instance-attribute
iof_hydro__22: Optional[int] = Field(0, description='vertical eddy viscosity [m^2/s] {viscosity} 3D')
iof_hydro__23
class-attribute
instance-attribute
iof_hydro__23: Optional[int] = Field(0, description='turbulent kinetic energy {turbulentKineticEner} 3D')
iof_hydro__24
class-attribute
instance-attribute
iof_hydro__24: Optional[int] = Field(0, description='turbulent mixing length [m] {mixingLength} 3D')
iof_hydro__26
class-attribute
instance-attribute
iof_hydro__26: Optional[int] = Field(1, description='horizontal vel vector [m/s] {horizontalVelX,Y} 3D vector')
iof_hydro__27
class-attribute
instance-attribute
iof_hydro__27: Optional[int] = Field(0, description='horizontal vel vector defined @side [m/s] {horizontalSideVelX,Y} 3D vector')
iof_hydro__28
class-attribute
instance-attribute
iof_hydro__28: Optional[int] = Field(0, description='vertical vel. @elem [m/s] {verticalVelAtElement} 3D')
iof_hydro__29
class-attribute
instance-attribute
iof_hydro__29: Optional[int] = Field(0, description='T @prism centers [C] {temperatureAtElement} 3D')
iof_hydro__30
class-attribute
instance-attribute
iof_hydro__30: Optional[int] = Field(0, description='S @prism centers [PSU] {salinityAtElement} 3D')
iof_hydro__31
class-attribute
instance-attribute
iof_hydro__31: Optional[int] = Field(0, description='Barotropic pressure gradient force vector (m.s-2) @side centers {pressure_gradient} 2D vector')
iof_wwm__1
class-attribute
instance-attribute
iof_wwm__2
class-attribute
instance-attribute
iof_wwm__2: Optional[int] = Field(0, description='Mean average period (sec) - TM01 {meanWavePeriod} 2D')
iof_wwm__3
class-attribute
instance-attribute
iof_wwm__3: Optional[int] = Field(0, description='Zero down crossing period for comparison with buoy (s) - TM02 {zeroDowncrossPeriod} 2D')
iof_wwm__4
class-attribute
instance-attribute
iof_wwm__4: Optional[int] = Field(0, description='Average period of wave runup/overtopping - TM10 {TM10} 2D')
iof_wwm__5
class-attribute
instance-attribute
iof_wwm__6
class-attribute
instance-attribute
iof_wwm__7
class-attribute
instance-attribute
iof_wwm__7: Optional[int] = Field(0, description='Mean average energy transport direction (degr) - MWD in NDBC? {meanWaveDirection} 2D')
iof_wwm__8
class-attribute
instance-attribute
iof_wwm__8: Optional[int] = Field(0, description='Mean directional spreading (degr) {meanDirSpreading} 2D')
iof_wwm__9
class-attribute
instance-attribute
iof_wwm__10
class-attribute
instance-attribute
iof_wwm__10: Optional[int] = Field(0, description='Continuous peak period based on higher order moments (sec) {continuousPeakPeriod} 2D')
iof_wwm__11
class-attribute
instance-attribute
iof_wwm__12
class-attribute
instance-attribute
iof_wwm__13
class-attribute
instance-attribute
iof_wwm__14
class-attribute
instance-attribute
iof_wwm__15
class-attribute
instance-attribute
iof_wwm__16
class-attribute
instance-attribute
iof_wwm__16: Optional[int] = Field(0, description='Peak (dominant) direction (degr) {dominantDirection} 2D')
iof_wwm__17
class-attribute
instance-attribute
iof_wwm__18
class-attribute
instance-attribute
iof_wwm__18: Optional[int] = Field(0, description='Discrete peak direction (radian?) {discretePeakDirectio} 2D')
iof_wwm__19
class-attribute
instance-attribute
iof_wwm__20
class-attribute
instance-attribute
iof_wwm__21
class-attribute
instance-attribute
iof_wwm__21: Optional[int] = Field(0, description='Bottom excursion period (sec?) {bottomExcursionPerio} 2D')
iof_wwm__22
class-attribute
instance-attribute
iof_wwm__23
class-attribute
instance-attribute
iof_wwm__23: Optional[int] = Field(0, description='Uresell number based on peak period {UresellNumber} 2D')
iof_wwm__24
class-attribute
instance-attribute
iof_wwm__24: Optional[int] = Field(0, description='Friction velocity (m/s?) {frictionalVelocity} 2D')
iof_wwm__25
class-attribute
instance-attribute
iof_wwm__26
class-attribute
instance-attribute
iof_wwm__27
class-attribute
instance-attribute
iof_wwm__27: Optional[int] = Field(0, description='Roller energy dissipation rate (W/m²) @nodes {Drol} 2D')
iof_wwm__28
class-attribute
instance-attribute
iof_wwm__28: Optional[int] = Field(0, description='Total wave energy dissipation rate by depth-induced breaking (W/m²) @nodes {wave_sbrtot} 2D')
iof_wwm__29
class-attribute
instance-attribute
iof_wwm__29: Optional[int] = Field(0, description='Total wave energy dissipation rate by bottom friction (W/m²) @nodes {wave_sbftot} 2D')
iof_wwm__30
class-attribute
instance-attribute
iof_wwm__30: Optional[int] = Field(0, description='Total wave energy dissipation rate by whitecapping (W/m²) @nodes {wave_sdstot} 2D')
iof_wwm__31
class-attribute
instance-attribute
iof_wwm__31: Optional[int] = Field(0, description='Total wave energy dissipation rate by vegetation (W/m²) @nodes {wave_svegtot} 2D')
iof_wwm__32
class-attribute
instance-attribute
iof_wwm__32: Optional[int] = Field(0, description='Total wave energy input rate from atmospheric forcing (W/m²) @nodes {wave_sintot} 2D')
iof_wwm__33
class-attribute
instance-attribute
iof_wwm__34
class-attribute
instance-attribute
iof_wwm__34: Optional[int] = Field(0, description='Vertical Stokes velocity (m.s-1) @sides and whole levels {stokes_wvel} 3D')
iof_wwm__35
class-attribute
instance-attribute
iof_wwm__35: Optional[int] = Field(0, description='Wave force vector (m.s-2) computed by wwm @side centers and whole levels {waveForceX,Y} 3D vector')
iof_wwm__36
class-attribute
instance-attribute
iof_wwm__36: Optional[int] = Field(0, description='Horizontal Stokes velocity (m.s-1) @nodes and whole levels {stokes_hvel} 3D vector')
iof_wwm__37
class-attribute
instance-attribute
iof_wwm__37: Optional[int] = Field(0, description='Roller contribution to horizontal Stokes velocity (m.s-1) @nodes and whole levels {roller_stokes_hvel} 3D vector')
Functions
validate_nc_out
classmethod
validate_iof_ugrid
classmethod
validate_nhot
classmethod
validate_nhot_write
classmethod
validate_iout_sta
classmethod
validate_nspool_sta
classmethod
validate_nhot_write_multiple
Source code in rompy_schism/namelists/param.py
validate_nspool_sta_requirement
Vertical
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/param.py
631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 | |
Attributes
vnh1
class-attribute
instance-attribute
vnh1: Optional[int] = Field(400, description='Vertical nudging depth 1 in meters. Used in vertical relaxation scheme.')
vnf1
class-attribute
instance-attribute
vnf1: Optional[float] = Field(0.0, description='Vertical relaxation factor for depth 1. Must be between 0 and 1.')
vnh2
class-attribute
instance-attribute
vnh2: Optional[int] = Field(500, description='Vertical nudging depth 2 in meters. Must be greater than vnh1.')
vnf2
class-attribute
instance-attribute
vnf2: Optional[float] = Field(0.0, description='Vertical relaxation factor for depth 2. Must be between 0 and 1.')
step_nu_tr
class-attribute
instance-attribute
step_nu_tr: Optional[float] = Field(86400.0, description='Time step in seconds for all *_nu.nc files when inu_[MOD]=2.')
h_bcc1
class-attribute
instance-attribute
h_bcc1: Optional[float] = Field(100.0, description='Cut-off depth for cubic spline interpolation near bottom when computing horizontal gradients.')
s1_mxnbt
class-attribute
instance-attribute
s1_mxnbt: Optional[float] = Field(0.5, description='Dimensioning parameter for inter-subdomain backtracking.')
s2_mxnbt
class-attribute
instance-attribute
s2_mxnbt: Optional[float] = Field(3.5, description='Another dimensioning parameter for inter-subdomain backtracking.')
iharind
class-attribute
instance-attribute
iharind: Optional[int] = Field(0, description='Flag for harmonic analysis of elevation. 0 for off, non-zero for on.')
iflux
class-attribute
instance-attribute
iflux: Optional[int] = Field(0, description='Conservation check option. 0: off, 1: basic output, 2: more elaborate outputs.')
izonal5
class-attribute
instance-attribute
izonal5: Optional[int] = Field(0, description='Flag for Williamson test #5 (zonal flow over an isolated mount). 0 for off, non-zero for on.')
ibtrack_test
class-attribute
instance-attribute
ibtrack_test: Optional[int] = Field(0, description='Flag for rotating Gausshill test with stratified T,S. 0: off, 1: on.')
irouse_test
class-attribute
instance-attribute
irouse_test: Optional[int] = Field(0, description='Flag for Rouse profile test. 0: off, 1: on. Requires USE_TIMOR to be on if enabled.')
flag_fib
class-attribute
instance-attribute
flag_fib: Optional[int] = Field(1, description='Flag to choose FIB model for bacteria decay. 1: Constant decay rate, 2: Canteras et al., 1995, 3: Servais et al., 2007.')
slr_rate
class-attribute
instance-attribute
slr_rate: Optional[float] = Field(120.0, description='Sea-level rise rate in mm/year for marsh model. Only used if USE_MARSH is on.')
nstep_ice
class-attribute
instance-attribute
nstep_ice: Optional[int] = Field(1, description='Number of SCHISM steps between calls to the ICE module.')
rearth_pole
class-attribute
instance-attribute
rearth_pole: Optional[float] = Field(6378206.4, description="Earth's radius at the pole in meters.")
rearth_eq
class-attribute
instance-attribute
rearth_eq: Optional[float] = Field(6378206.4, description="Earth's radius at the equator in meters.")
shw
class-attribute
instance-attribute
rho0
class-attribute
instance-attribute
rho0: Optional[float] = Field(1000.0, description='Reference water density for Boussinesq approximation in kg/m^3.')
vclose_surf_frac
class-attribute
instance-attribute
vclose_surf_frac: Optional[float] = Field(1.0, description='Fraction of vertical flux closure adjustment applied at surface for T,S.')
iadjust_mass_consv0__1
class-attribute
instance-attribute
iadjust_mass_consv0__2
class-attribute
instance-attribute
iadjust_mass_consv0__3
class-attribute
instance-attribute
iadjust_mass_consv0__4
class-attribute
instance-attribute
iadjust_mass_consv0__5
class-attribute
instance-attribute
iadjust_mass_consv0__5: Optional[int] = Field(0, description="SED3D (code won't allow non-0 for this module)")
iadjust_mass_consv0__6
class-attribute
instance-attribute
iadjust_mass_consv0__7
class-attribute
instance-attribute
iadjust_mass_consv0__8
class-attribute
instance-attribute
iadjust_mass_consv0__9
class-attribute
instance-attribute
iadjust_mass_consv0__10
class-attribute
instance-attribute
iadjust_mass_consv0__11
class-attribute
instance-attribute
iadjust_mass_consv0__12
class-attribute
instance-attribute
h_massconsv
class-attribute
instance-attribute
h_massconsv: Optional[float] = Field(2.0, description='Threshold depth for ICM mass conservation in meters.')
rinflation_icm
class-attribute
instance-attribute
rinflation_icm: Optional[float] = Field(0.001, description='Maximum ratio between H^{n+1} and H^n allowed for ICM mass conservation.')
Functions
check_vnh1
classmethod
check_vnf1
classmethod
check_vnh2
classmethod
check_vnf2
classmethod
check_step_nu_tr
classmethod
check_h_bcc1
classmethod
check_s1_mxnbt
classmethod
check_s2_mxnbt
classmethod
check_iharind
classmethod
check_iflux
classmethod
check_izonal5
classmethod
check_ibtrack_test
classmethod
check_irouse_test
classmethod
check_flag_fib
classmethod
check_slr_rate
classmethod
check_nstep_ice
classmethod
check_rearth_pole
classmethod
check_rearth_eq
classmethod
check_shw
classmethod
check_rho0
classmethod
check_vclose_surf_frac
classmethod
check_h_massconsv
classmethod
check_rinflation_icm
classmethod
Param
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/param.py
Attributes
vertical
class-attribute
instance-attribute
vegetation
class-attribute
instance-attribute
ICE
Ice_in
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/ice.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 | |
Attributes
ice_tests
class-attribute
instance-attribute
ice_advection
class-attribute
instance-attribute
ice_advection: Optional[int] = Field(1, description='Flag to enable/disable ice advection. 1 enables, 0 disables.')
ice_therm_on
class-attribute
instance-attribute
ice_therm_on: Optional[int] = Field(1, description='Flag to enable/disable ice thermodynamics. 1 enables, 0 disables.')
ievp
class-attribute
instance-attribute
ievp: Optional[int] = Field(2, description='Selects the rheology model. 1 for EVP (Elastic-Viscous-Plastic), 2 for mEVP (modified EVP).')
ice_cutoff
class-attribute
instance-attribute
ice_cutoff: Optional[float] = Field(0.001, description='Cut-off thickness [m] or fraction for ice. No ice velocity if ice thickness is less than or equal to ice_cutoff.')
evp_rheol_steps
class-attribute
instance-attribute
evp_rheol_steps: Optional[int] = Field(200, description='Number of subcycling steps in EVP rheology model.')
mevp_rheol_steps
class-attribute
instance-attribute
mevp_rheol_steps: Optional[int] = Field(200, description='Number of iterations in mEVP rheology model.')
ice_atmos_stress_form
class-attribute
instance-attribute
ice_atmos_stress_form: Optional[int] = Field(1, description='Form of atmospheric stress calculation. 0 for constant Cd, 1 for FESOM formulation.')
cdwin0
class-attribute
instance-attribute
cdwin0: Optional[float] = Field(0.002, description='Constant drag coefficient for wind stress, used if ice_atmos_stress_form=0.')
delta_min
class-attribute
instance-attribute
delta_min: Optional[float] = Field(2e-09, description='Limit for minimum divergence (1/s). Used in both VP and EVP rheology models.')
theta_io
class-attribute
instance-attribute
theta_io: Optional[float] = Field(0.0, description='Ice/ocean rotation angle in degrees. Usually 0 unless vertical grid is too coarse.')
mevp_coef
class-attribute
instance-attribute
mevp_coef: Optional[int] = Field(0, description='Options for specifying 2 relax coefficients in mEVP. 0 for constant, 1 for variable coefficients.')
mevp_alpha1
class-attribute
instance-attribute
mevp_alpha1: Optional[float] = Field(200.0, description='Constant used in mEVP for constitutive equation if mevp_coef=0.')
mevp_alpha2
class-attribute
instance-attribute
mevp_alpha2: Optional[float] = Field(200.0, description='Constant used in mEVP for momentum equation if mevp_coef=0.')
mevp_alpha3
class-attribute
instance-attribute
mevp_alpha3: Optional[float] = Field(200.0, description='Minimum value for variable coefficients if mevp_coef=1.')
mevp_alpha4
class-attribute
instance-attribute
mevp_alpha4: Optional[float] = Field(0.02, description='Coefficient used in variable coefficient calculation if mevp_coef=1.')
pstar
class-attribute
instance-attribute
ellipse
class-attribute
instance-attribute
c_pressure
class-attribute
instance-attribute
ncyc_fct
class-attribute
instance-attribute
ncyc_fct: Optional[int] = Field(1, description='Number of subcycling steps in transport for FCT scheme.')
niter_fct
class-attribute
instance-attribute
niter_fct: Optional[int] = Field(3, description='Number of iterations in higher-order solve for FCT scheme.')
ice_gamma_fct
class-attribute
instance-attribute
ice_gamma_fct: Optional[float] = Field(0.25, description='Smoothing parameter for FCT scheme. 1 for maximum positivity preserving.')
depth_ice_fct
class-attribute
instance-attribute
depth_ice_fct: Optional[float] = Field(5.0, description='Cut-off depth (m) for non-FCT zone in ice_fct.gr3.')
h_ml0
class-attribute
instance-attribute
h_ml0: Optional[float] = Field(0.1, description='Ocean mixed layer depth [m] for thermodynamics calculations.')
salt_ice
class-attribute
instance-attribute
salt_ice: Optional[float] = Field(5.0, description='Salinity for ice [PSU] (must be non-negative).')
salt_water
class-attribute
instance-attribute
salt_water: Optional[float] = Field(34.0, description='Salinity for water [PSU] (must be non-negative).')
lead_closing
class-attribute
instance-attribute
lead_closing: Optional[float] = Field(0.5, description='Lead closing parameter [m]. Larger values slow down freezing-up but increase sea ice thickness.')
saterm
class-attribute
instance-attribute
saterm: Optional[float] = Field(0.5, description='Semter constant. Smaller values could slow down melting.')
albsn
class-attribute
instance-attribute
albsnm
class-attribute
instance-attribute
albsnm: Optional[float] = Field(0.75, description='Albedo for melting snow (must be less than or equal to albsn).')
albi
class-attribute
instance-attribute
albi: Optional[float] = Field(0.75, description='Albedo for frozen ice (must be less than or equal to albsn).')
albm
class-attribute
instance-attribute
albm: Optional[float] = Field(0.66, description='Albedo for melting ice (must be less than or equal to albi).')
Functions
validate_ice_tests
classmethod
validate_ice_advection
classmethod
validate_ice_therm_on
classmethod
validate_ievp
classmethod
validate_ice_cutoff
classmethod
validate_evp_rheol_steps
classmethod
validate_mevp_rheol_steps
classmethod
validate_ice_atmos_stress_form
classmethod
validate_cdwin0
classmethod
validate_delta_min
classmethod
validate_theta_io
classmethod
validate_mevp_coef
classmethod
validate_mevp_alpha1
classmethod
validate_mevp_alpha2
classmethod
validate_mevp_alpha3
classmethod
validate_mevp_alpha4
classmethod
validate_pstar
classmethod
validate_ellipse
classmethod
validate_c_pressure
classmethod
validate_ncyc_fct
classmethod
validate_niter_fct
classmethod
validate_ice_gamma_fct
classmethod
validate_depth_ice_fct
classmethod
validate_h_ml0
classmethod
validate_salt_ice
classmethod
validate_salt_water
classmethod
validate_lead_closing
classmethod
validate_saterm
classmethod
validate_albsn
classmethod
validate_albsnm
classmethod
validate_albi
classmethod
validate_albm
classmethod
validate_rheol_steps
validate_cdwin0_usage
validate_mevp_alpha1_usage
validate_mevp_alpha2_usage
validate_mevp_alpha3_usage
validate_mevp_alpha4_usage
validate_albsnm_relation
validate_albi_relation
Ice
MICE
Mice_in
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/mice.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | |
Attributes
ice_tests
class-attribute
instance-attribute
ihot_mice
class-attribute
instance-attribute
ihot_mice: Optional[int] = Field(1, description='Start mode for ice model. 0: cold start, 1: restart, 2: hotstart from HYCOM.')
ice_advection
class-attribute
instance-attribute
ice_advection: Optional[int] = Field(6, description='Ice advection scheme. 3: upwind, 4: center-difference, 5: tvd, 6: tvd-up, 7: TVD_Casulli.')
ice_therm_on
class-attribute
instance-attribute
ievp
class-attribute
instance-attribute
ievp: Optional[int] = Field(2, description='Elastic-Viscous-Plastic (EVP) model selection. 1: EVP, 2: modified EVP (mEVP).')
ice_cutoff
class-attribute
instance-attribute
ice_cutoff: Optional[float] = Field(0.001, description='Cut-off thickness [m] or fraction for ice. No ice velocity if ice thickness <= ice_cutoff.')
evp_rheol_steps
class-attribute
instance-attribute
mevp_rheol_steps
class-attribute
instance-attribute
mevp_rheol_steps: Optional[int] = Field(500, description='Number of iterations in modified EVP (mEVP).')
delta_min
class-attribute
instance-attribute
delta_min: Optional[float] = Field(1e-11, description='Limit for minimum divergence (1/s). Used in both VP and EVP.')
theta_io
class-attribute
instance-attribute
mevp_alpha1
class-attribute
instance-attribute
mevp_alpha1: Optional[float] = Field(200.0, description='Constant used in mEVP for constitutive equation.')
mevp_alpha2
class-attribute
instance-attribute
mevp_alpha2: Optional[float] = Field(200.0, description='Constant used in mEVP for momentum equation.')
pstar
class-attribute
instance-attribute
ellipse
class-attribute
instance-attribute
c_pressure
class-attribute
instance-attribute
niter_fct
class-attribute
instance-attribute
niter_fct: Optional[int] = Field(3, description='Number of iterations in higher-order solve for FCT (Flux-Corrected Transport).')
ice_gamma_fct
class-attribute
instance-attribute
h_ml0
class-attribute
instance-attribute
salt_ice
class-attribute
instance-attribute
salt_water
class-attribute
instance-attribute
Functions
validate_ice_tests
classmethod
validate_ihot_mice
classmethod
validate_ice_advection
classmethod
validate_ice_therm_on
classmethod
validate_ievp
classmethod
validate_ice_cutoff
classmethod
validate_evp_rheol_steps
classmethod
validate_mevp_rheol_steps
classmethod
validate_delta_min
classmethod
validate_theta_io
classmethod
validate_mevp_alpha1
classmethod
validate_mevp_alpha2
classmethod
validate_pstar
classmethod
validate_ellipse
classmethod
validate_c_pressure
classmethod
validate_niter_fct
classmethod
validate_ice_gamma_fct
classmethod
validate_h_ml0
classmethod
validate_salt_ice
classmethod
validate_salt_water
classmethod
Mice
ICM
Bag
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 | |
Attributes
gpatch0
class-attribute
instance-attribute
gpatch0: Optional[int] = Field(-999, description='Region flag for Benthic Algae (BA). 1 indicates BA is ON for all elements, -999 indicates spatial distribution.')
ba0
class-attribute
instance-attribute
ba0: Optional[float] = Field(5.0, description='Initial Benthic Algae (BA) concentration in grams of carbon per square meter.')
ggpm
class-attribute
instance-attribute
ggpm: Optional[float] = Field(2.25, description='Maximum growth rate for Benthic Algae (BA) per day.')
gtgp
class-attribute
instance-attribute
gtgp: Optional[float] = Field(20.0, description='Optimal temperature for Benthic Algae (BA) growth in degrees Celsius.')
gktgp
class-attribute
instance-attribute
gktgp: Optional[list] = Field([0.004, 0.006], description='Temperature dependence coefficients for Benthic Algae (BA) growth in inverse degrees Celsius squared.')
gmtb
class-attribute
instance-attribute
gmtb: Optional[float] = Field(0.05, description='Respiration rate for Benthic Algae (BA) at the reference temperature gTR, per day.')
gprr
class-attribute
instance-attribute
gprr: Optional[float] = Field(0.1, description='Predation rate for Benthic Algae (BA) at the reference temperature gTR, per day.')
gtr
class-attribute
instance-attribute
gtr: Optional[float] = Field(20.0, description='Reference temperature for Benthic Algae (BA) respiration in degrees Celsius.')
gktr
class-attribute
instance-attribute
gktr: Optional[float] = Field(0.069, description='Temperature dependence coefficient for Benthic Algae (BA) respiration in inverse degrees Celsius.')
galpha
class-attribute
instance-attribute
galpha: Optional[float] = Field(0.1, description='Initial slope of the Photosynthesis-Irradiance (P-I) curve for Benthic Algae (BA) in square meters per Einstein.')
gksed
class-attribute
instance-attribute
gksed: Optional[float] = Field(0.0, description='Light attenuation due to sediment for Benthic Algae (BA) growth (dimensionless).')
gkba
class-attribute
instance-attribute
gkba: Optional[float] = Field(0.01, description='Light attenuation coefficient due to Benthic Algae (BA) self-shading in square meters per gram of carbon.')
gkhn
class-attribute
instance-attribute
gkhn: Optional[float] = Field(0.01, description='Nitrogen half-saturation constant for Benthic Algae (BA) growth in grams of nitrogen per square meter.')
gkhp
class-attribute
instance-attribute
gkhp: Optional[float] = Field(0.001, description='Phosphorus half-saturation constant for Benthic Algae (BA) growth in grams of phosphorus per square meter.')
gp2c
class-attribute
instance-attribute
gp2c: Optional[float] = Field(0.0167, description='Phosphorus to carbon ratio in Benthic Algae (BA) biomass.')
gn2c
class-attribute
instance-attribute
gn2c: Optional[float] = Field(0.167, description='Nitrogen to carbon ratio in Benthic Algae (BA) biomass.')
go2c
class-attribute
instance-attribute
go2c: Optional[float] = Field(2.67, description='Oxygen to carbon ratio for Benthic Algae (BA) respiration.')
gfcp
class-attribute
instance-attribute
gfcp: Optional[list] = Field([0.5, 0.45, 0.05], description='Fractions of predated Benthic Algae (BA) carbon distributed into three classes in sediment.')
gfnp
class-attribute
instance-attribute
gfnp: Optional[list] = Field([0.5, 0.45, 0.05], description='Fractions of predated Benthic Algae (BA) nitrogen distributed into three classes in sediment.')
gfpp
class-attribute
instance-attribute
gfpp: Optional[list] = Field([0.5, 0.45, 0.05], description='Fractions of predated Benthic Algae (BA) phosphorus distributed into three classes in sediment.')
Functions
check_gpatch0
classmethod
check_ba0
classmethod
check_ggpm
classmethod
check_gtgp
classmethod
check_gktgp
classmethod
check_gmtb
classmethod
check_gprr
classmethod
check_gtr
classmethod
check_gktr
classmethod
check_galpha
classmethod
check_gksed
classmethod
check_gkba
classmethod
check_gkhn
classmethod
check_gkhp
classmethod
check_gp2c
classmethod
check_gn2c
classmethod
check_go2c
classmethod
check_gfcp
classmethod
Source code in rompy_schism/namelists/icm.py
check_gfnp
classmethod
Source code in rompy_schism/namelists/icm.py
check_gfpp
classmethod
Source code in rompy_schism/namelists/icm.py
Core
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 | |
Attributes
gpm
class-attribute
instance-attribute
gpm: Optional[list] = Field([2.5, 2.8, 3.5], description='Phytoplankton growth rates for three different species (day^-1)')
tgp
class-attribute
instance-attribute
tgp: Optional[list] = Field([15.0, 22.0, 27.0], description='Optimal temperatures for phytoplankton growth for three different species (°C)')
ktgp
class-attribute
instance-attribute
ktgp: Optional[list] = Field([0.005, 0.004, 0.003, 0.008, 0.006, 0.004], description='Temperature dependence for phytoplankton growth, dimensioned as (PB=1:3,1:2) (°C^-2)')
mtr
class-attribute
instance-attribute
mtr: Optional[list] = Field([0.0, 0.0, 0.0], description='Phytoplankton photorespiration coefficients for three species (0 < MTR < 1)')
mtb
class-attribute
instance-attribute
mtb: Optional[list] = Field([0.01, 0.02, 0.03], description='Phytoplankton metabolism rates for three species (day^-1)')
tmt
class-attribute
instance-attribute
tmt: Optional[list] = Field([20.0, 20.0, 20.0], description='Reference temperatures for phytoplankton metabolism for three species (°C)')
ktmt
class-attribute
instance-attribute
ktmt: Optional[list] = Field([0.0322, 0.0322, 0.0322], description='Temperature dependence for phytoplankton metabolism for three species (°C^-1)')
fcp
class-attribute
instance-attribute
fcp: Optional[list] = Field([0.35, 0.3, 0.2, 0.55, 0.5, 0.5, 0.1, 0.2, 0.3, 0.0, 0.0, 0.0], description='Fractions of phytoplankton carbon into (RPOC,LPOC,DOC,SRPOC) for three species')
fnp
class-attribute
instance-attribute
fnp: Optional[list] = Field([0.35, 0.35, 0.35, 0.5, 0.5, 0.5, 0.1, 0.1, 0.1, 0.05, 0.05, 0.05, 0.0, 0.0, 0.0], description='Fractions of phytoplankton nitrogen into (RPON,LPON,DON,NH4,SRPON) for three species')
fpp
class-attribute
instance-attribute
fpp: Optional[list] = Field([0.1, 0.1, 0.1, 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.2, 0.2, 0.2, 0.0, 0.0, 0.0], description='Fractions of phytoplankton Phosphorus into (RPOP,LPOP,DOP,PO4,SRPOP) for three species')
fcm
class-attribute
instance-attribute
fcm: Optional[list] = Field([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1, 0.0, 0.0, 0.0], description='Fractions of phytoplankton metabolism carbon into (RPOC,LPOC,DOC,SRPOC) for three species')
fnm
class-attribute
instance-attribute
fnm: Optional[list] = Field([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], description='Fractions of phytoplankton metabolism nitrogen into (RPON,LPON,DON,NH4,SRPON) for three species')
fpm
class-attribute
instance-attribute
fpm: Optional[list] = Field([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], description='Fractions of phytoplankton metabolism phosphorus into (RPOP,LPOP,DOP,PO4,SRPOP) for three species')
nit
class-attribute
instance-attribute
tnit
class-attribute
instance-attribute
ktnit
class-attribute
instance-attribute
ktnit: Optional[list] = Field([0.0045, 0.0045], description='Temperature dependence for nitrification (T<=TNit & T>TNit) (°C^-2)')
khdon
class-attribute
instance-attribute
khdon: Optional[float] = Field(1.0, description='Dissolved Oxygen half saturation for nitrification (mg/L)')
khdoox
class-attribute
instance-attribute
khdoox: Optional[float] = Field(0.5, description="Dissolved Oxygen half saturation for denitrification & DOC's oxic respiration (mg/L)")
khno3dn
class-attribute
instance-attribute
khno3dn: Optional[float] = Field(0.1, description='Nitrate half saturation for denitrification (mg/L)')
kc0
class-attribute
instance-attribute
kc0: Optional[list] = Field([0.005, 0.075, 0.2], description='Minimum decay rates of RPOC, LPOC, DOC (day^-1)')
kn0
class-attribute
instance-attribute
kn0: Optional[list] = Field([0.005, 0.075, 0.2], description='Minimum decay rates of RPON, LPON, DON (day^-1)')
kp0
class-attribute
instance-attribute
kp0: Optional[list] = Field([0.005, 0.075, 0.2], description='Minimum decay rates of RPOP, LPOP, DOP (day^-1)')
kcalg
class-attribute
instance-attribute
kcalg: Optional[list] = Field([0.0, 0.0, 0.0], description='Algae effect on RPOC, LPOC, DOC decay (day^-1.m3.g[C]^-1)')
knalg
class-attribute
instance-attribute
knalg: Optional[list] = Field([0.0, 0.0, 0.0], description='Algae effect on RPON, LPON, DON decay (day^-1.m3.g[C]^-1)')
kpalg
class-attribute
instance-attribute
kpalg: Optional[list] = Field([0.0, 0.0, 0.0], description='Algae effect on RPOP, LPOP, DOP decay (day^-1.m3.g[C]^-1)')
trm
class-attribute
instance-attribute
trm: Optional[list] = Field([20.0, 20.0, 20.0], description='Reference temperatures for (RPOM,LPOM,DOM) decay (°C)')
ktrm
class-attribute
instance-attribute
ktrm: Optional[list] = Field([0.069, 0.069, 0.069], description='Temperature dependence for (RPOM,LPOM,DOM) decay (°C^-1)')
ksr0
class-attribute
instance-attribute
ksr0: Optional[list] = Field([0.001, 0.001, 0.001], description='Decay rates of SRPOC, SRPON, SRPOP (day^-1)')
trsr
class-attribute
instance-attribute
trsr: Optional[list] = Field([20.0, 20.0, 20.0], description='Reference temperatures for (SRPOC,SRPON,SRPOP) decay (°C)')
ktrsr
class-attribute
instance-attribute
ktrsr: Optional[list] = Field([0.069, 0.069, 0.069], description='Temperature dependence for (SRPOC,SRPON,SRPOP) decay (°C^-1)')
kpip
class-attribute
instance-attribute
kcd
class-attribute
instance-attribute
trcod
class-attribute
instance-attribute
ktrcod
class-attribute
instance-attribute
ktrcod: Optional[float] = Field(0.041, description='Temperature dependence for COD oxidation (°C^-1)')
khcod
class-attribute
instance-attribute
khn
class-attribute
instance-attribute
khn: Optional[list] = Field([0.01, 0.01, 0.01], description='Nitrogen half saturation for three phytoplankton species (mg/L)')
khp
class-attribute
instance-attribute
khp: Optional[list] = Field([0.001, 0.001, 0.001], description='Phosphorus half saturation for three phytoplankton species (mg/L)')
khsal
class-attribute
instance-attribute
khsal: Optional[list] = Field([1000000.0, 1000000.0, 0.1], description='Salinity when phytoplankton growth is halved for three species (PSU); (1e6: no salinity stress)')
c2chl
class-attribute
instance-attribute
c2chl: Optional[list] = Field([0.059, 0.059, 0.059], description='Carbon to chlorophyll ratio for three phytoplankton species (g[C]/mg[Chl])')
n2c
class-attribute
instance-attribute
n2c: Optional[list] = Field([0.167, 0.167, 0.167], description='Nitrogen to carbon ratio for three phytoplankton species')
p2c
class-attribute
instance-attribute
p2c: Optional[list] = Field([0.02, 0.02, 0.02], description='Phosphorus to carbon ratio for three phytoplankton species')
o2c
class-attribute
instance-attribute
o2n
class-attribute
instance-attribute
dn2c
class-attribute
instance-attribute
dn2c: Optional[float] = Field(0.933, description='Mass of NO3 consumed per mass of DOC oxidized in denitrification (g[N]/g[C])')
an2c
class-attribute
instance-attribute
an2c: Optional[float] = Field(0.5, description='Ratio of denitrification rate to oxic DOC respiration rate')
khdo
class-attribute
instance-attribute
khdo: Optional[list] = Field([0.5, 0.5, 0.5], description="DO half saturation for phytoplankton's DOC excretion (mg/L) for three species")
kpo4p
class-attribute
instance-attribute
wrea
class-attribute
instance-attribute
wrea: Optional[float] = Field(0.0, description='Baseline wind-induced reaeration coefficient for DO (day^-1)')
pbmin
class-attribute
instance-attribute
pbmin: Optional[list] = Field([0.01, 0.01, 0.01], description='Minimum phytoplankton concentration (mg[C]/L) for three species')
dz_flux
class-attribute
instance-attribute
dz_flux: Optional[list] = Field([1.0, 1.0], description='Surface/bottom thickness (m) within which surface flux/bottom flux are redistributed')
Functions
validate_gpm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_tgp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_ktgp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_mtr
classmethod
Source code in rompy_schism/namelists/icm.py
validate_mtb
classmethod
Source code in rompy_schism/namelists/icm.py
validate_tmt
classmethod
Source code in rompy_schism/namelists/icm.py
validate_ktmt
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fcp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fnp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fpp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fcm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fnm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fpm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_nit
classmethod
validate_tnit
classmethod
validate_ktnit
classmethod
Source code in rompy_schism/namelists/icm.py
validate_khdon
classmethod
validate_khdoox
classmethod
validate_khno3dn
classmethod
validate_kc0
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kn0
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kp0
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kcalg
classmethod
Source code in rompy_schism/namelists/icm.py
validate_knalg
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kpalg
classmethod
Source code in rompy_schism/namelists/icm.py
validate_trm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_ktrm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_ksr0
classmethod
Source code in rompy_schism/namelists/icm.py
validate_trsr
classmethod
Source code in rompy_schism/namelists/icm.py
validate_ktrsr
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kpip
classmethod
validate_kcd
classmethod
validate_trcod
classmethod
validate_ktrcod
classmethod
validate_khcod
classmethod
validate_khn
classmethod
Source code in rompy_schism/namelists/icm.py
validate_khp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_khsal
classmethod
Source code in rompy_schism/namelists/icm.py
validate_c2chl
classmethod
Source code in rompy_schism/namelists/icm.py
validate_n2c
classmethod
Source code in rompy_schism/namelists/icm.py
validate_p2c
classmethod
Source code in rompy_schism/namelists/icm.py
validate_o2c
classmethod
validate_o2n
classmethod
validate_dn2c
classmethod
validate_an2c
classmethod
validate_khdo
classmethod
Source code in rompy_schism/namelists/icm.py
validate_kpo4p
classmethod
validate_wrea
classmethod
validate_pbmin
classmethod
Source code in rompy_schism/namelists/icm.py
validate_dz_flux
classmethod
Source code in rompy_schism/namelists/icm.py
validate_fcp_sum
validate_fnp_sum
validate_fpp_sum
validate_fcm_sum
validate_fnm_sum
validate_fpm_sum
Ero
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
Marco
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | |
Attributes
nsub
class-attribute
instance-attribute
ike
class-attribute
instance-attribute
ike: Optional[int] = Field(0, description='Option for computing light attenuation coefficients. 0: Ke=Ke0+KeC*Chl+KeS*(tss2c*POC), 1: Ke=Ke0+KeC*Chl+KeS*TSS, 2: Ke=Ke0+KeC*Chl+KeSalt*Salt')
ke0
class-attribute
instance-attribute
kec
class-attribute
instance-attribute
kes
class-attribute
instance-attribute
kesalt
class-attribute
instance-attribute
kesalt: Optional[float] = Field(-0.02, description='Light attenuation due to CDOM (related to salinity)')
tss2c
class-attribute
instance-attribute
ilight
class-attribute
instance-attribute
ilight: Optional[int] = Field(0, description='Option for computing light limitation factor. 0: Carl Cerco method (unit: E/m^2)')
alpha
class-attribute
instance-attribute
alpha: Optional[list] = Field([8.0, 8.0, 8.0], description='Initial slope of P-I curve (g[C]*m2/g[Chl]/E) for each phytoplankton group')
ipr
class-attribute
instance-attribute
ipr: Optional[int] = Field(1, description='Option for phytoplankton predation term. 0: linear formulation, 1: quadratic')
prr
class-attribute
instance-attribute
prr: Optional[list] = Field([0.1, 0.2, 0.05], description='Predation rate by higher trophic level (day-1 or day-1.g-1.m3) for each phytoplankton group')
wqc0
class-attribute
instance-attribute
wqc0: Optional[list] = Field([1.0, 0.5, 0.05, 1.0, 0.5, 0.5, 0.15, 0.15, 0.05, 0.01, 0.05, 0.005, 0.005, 0.01, 0.05, 0.0, 12.0], description='Initial values for ICM state variables')
wsp
class-attribute
instance-attribute
wsp: Optional[list] = Field([0.3, 0.1, 0.0, 0.25, 0.25, 0.0, 0.25, 0.25, 0.0, 0.0, 0.0, 0.25, 0.25, 0.0, 1.0, 0.0, 0.0], description='Settling velocity for ICM state variables (m.day-1)')
wspn
class-attribute
instance-attribute
wspn: Optional[list] = Field([0.3, 0.1, 0.0, 0.25, 0.25, 0.0, 0.25, 0.25, 0.0, 0.0, 0.0, 0.25, 0.25, 0.0, 1.0, 0.0, 0.0], description='Net settling velocity for ICM state variables (m.day-1)')
isilica
class-attribute
instance-attribute
izb
class-attribute
instance-attribute
izb: Optional[int] = Field(0, description="Zooplankton dynamics switch. 0: don't use, 1: use zooplankton dynamics")
iph
class-attribute
instance-attribute
icbp
class-attribute
instance-attribute
isav_icm
class-attribute
instance-attribute
isav_icm: Optional[int] = Field(0, description='Submerged Aquatic Vegetation switch. 0: OFF, 1: ON')
iveg_icm
class-attribute
instance-attribute
ised
class-attribute
instance-attribute
ised: Optional[int] = Field(1, description='Sediment module switch. 0: OFF, 1: Use sediment flux model')
iba
class-attribute
instance-attribute
irad
class-attribute
instance-attribute
irad: Optional[int] = Field(0, description='Solar radiation option. 0: short wave from sflux, 1: short wave from ICM_rad.th.nc')
isflux
class-attribute
instance-attribute
isflux: Optional[int] = Field(0, description='Atmospheric fluxes option. 0: OFF, 1: additional nutrient fluxes from ICM_sflux.th.nc')
ibflux
class-attribute
instance-attribute
ibflux: Optional[int] = Field(0, description='Bottom fluxes option. 0: OFF, 1: additional nutrient fluxes from ICM_bflux.th.nc')
iout_icm
class-attribute
instance-attribute
iout_icm: Optional[int] = Field(0, description='ICM station outputs switch. 0: OFF, 1: ON (requires istation.in with *.bp format)')
nspool_icm
class-attribute
instance-attribute
ilimit
class-attribute
instance-attribute
ilimit: Optional[int] = Field(0, description='Option for nutrient limitation on phytoplankton growth. 0: f=min[f(N),f(P)]*f(I), 1: f=min[f(N),f(P),f(I)]')
idry_icm
class-attribute
instance-attribute
idry_icm: Optional[int] = Field(0, description='Shallow kinetic biochemical process option. 0: jump dry elements, keep last wet value, 1: turn on shallow kinetic biochemical process')
Functions
validate_nsub
classmethod
validate_ike
classmethod
validate_ke0
classmethod
validate_kec
classmethod
validate_kes
classmethod
validate_kesalt
classmethod
validate_tss2c
classmethod
validate_ilight
classmethod
validate_alpha
classmethod
validate_ipr
classmethod
validate_prr
classmethod
validate_wqc0
classmethod
validate_wsp
classmethod
validate_wspn
classmethod
validate_isilica
classmethod
validate_izb
classmethod
validate_iph
classmethod
validate_icbp
classmethod
validate_isav_icm
classmethod
validate_iveg_icm
classmethod
validate_ised
classmethod
validate_iba
classmethod
validate_irad
classmethod
validate_isflux
classmethod
validate_ibflux
classmethod
validate_iout_icm
classmethod
validate_nspool_icm
classmethod
validate_ilimit
classmethod
Ph_icm
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
Attributes
ppatch0
class-attribute
instance-attribute
ppatch0: Optional[int] = Field(-999, description='Region flag for pH modeling. If set to 1, pH modeling is enabled for all elements. If set to -999, spatial pH modeling is used.')
pkcaco3
class-attribute
instance-attribute
pkcaco3: Optional[float] = Field(60.0, description='Dissolution rate constant between calcium carbonate (CaCO3) and calcium ions (Ca++)')
pkca
class-attribute
instance-attribute
pkca: Optional[float] = Field(60.0, description='Sediment surface transfer coefficient from calcium carbonate (CaCO3) to calcium ions (Ca++)')
prea
class-attribute
instance-attribute
inu_ph
class-attribute
instance-attribute
inu_ph: Optional[int] = Field(0, description='Nudge option for pH model. Controls whether pH values are adjusted during simulation.')
Functions
validate_ppatch0
classmethod
validate_pkcaco3
classmethod
validate_pkca
classmethod
validate_prea
classmethod
Poc
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 | |
Attributes
erosion
class-attribute
instance-attribute
erosion: Optional[int] = Field(864, description='Erosion rate in kilograms per square meter per day')
etau
class-attribute
instance-attribute
eporo
class-attribute
instance-attribute
eporo: Optional[float] = Field(0.8, description='Coefficient in erosion formula (see code in icm_sfm.F90)')
efrac
class-attribute
instance-attribute
efrac: Optional[float] = Field(0.5, description='Fraction coefficient in erosion formula (see code in icm_sfm.F90)')
ediso
class-attribute
instance-attribute
ediso: Optional[float] = Field(2.5, description='H2S erosion coefficient (see code in icm_sfm.F90)')
dfrac
class-attribute
instance-attribute
dfrac: Optional[list] = Field([0.02, 0.02], description='Deposition fraction of POC (Particulate Organic Carbon). If negative, dfrac will be computed')
dws_poc
class-attribute
instance-attribute
dws_poc: Optional[list] = Field([3.0, 3.0], description='Coefficient in POC erosion (see code in icm_sfm.F90)')
Functions
validate_erosion
classmethod
validate_etau
classmethod
validate_eporo
classmethod
validate_efrac
classmethod
validate_ediso
classmethod
validate_dfrac
classmethod
validate_dws_poc
classmethod
Sav
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 | |
Attributes
spatch0
class-attribute
instance-attribute
spatch0: Optional[int] = Field(-999, description='Region flag for SAV. 1 indicates SAV is active on all elements, -999 indicates spatial distribution')
stleaf0
class-attribute
instance-attribute
ststem0
class-attribute
instance-attribute
stroot0
class-attribute
instance-attribute
sgpm
class-attribute
instance-attribute
stgp
class-attribute
instance-attribute
stgp: Optional[int] = Field(32, description='Optimal growth temperature for SAV in degrees Celsius')
sktgp
class-attribute
instance-attribute
sktgp: Optional[list] = Field([0.003, 0.005], description='Temperature dependence coefficients for SAV growth (for T<=sTGP and T>sTGP)')
sfam
class-attribute
instance-attribute
sfam: Optional[float] = Field(0.2, description='Fraction of SAV leaf production allocated to active metabolism')
sfcp
class-attribute
instance-attribute
sfcp: Optional[list] = Field([0.6, 0.3, 0.1], description='Fractions of SAV production allocated to leaf, stem, and root biomass')
smtb
class-attribute
instance-attribute
smtb: Optional[list] = Field([0.02, 0.02, 0.02], description='Metabolism rates of SAV leaf, stem, and root')
stmt
class-attribute
instance-attribute
stmt: Optional[list] = Field([20, 20, 20], description='Reference temperatures for SAV leaf, stem, and root metabolism in degrees Celsius')
sktmt
class-attribute
instance-attribute
sktmt: Optional[list] = Field([0.069, 0.069, 0.069], description='Temperature dependence coefficients for SAV leaf, stem, and root metabolism')
sfcm
class-attribute
instance-attribute
sfcm: Optional[list] = Field([0.05, 0.15, 0.3, 0.5], description='Fractions of SAV metabolism carbon allocated to RPOC, LPOC, DOC, and CO2')
sfnm
class-attribute
instance-attribute
sfnm: Optional[list] = Field([0.05, 0.15, 0.3, 0.5], description='Fractions of SAV metabolism nitrogen allocated to RPON, LPON, DON, and NH4')
sfpm
class-attribute
instance-attribute
sfpm: Optional[list] = Field([0.05, 0.1, 0.35, 0.5], description='Fractions of SAV metabolism phosphorus allocated to RPOP, LPOP, DOP, and PO4')
skhnw
class-attribute
instance-attribute
skhnw: Optional[float] = Field(0.01, description='Nitrogen half-saturation constant for SAV in water column')
skhns
class-attribute
instance-attribute
skhns: Optional[float] = Field(0.1, description='Nitrogen half-saturation constant for SAV in sediments')
skhnh4
class-attribute
instance-attribute
skhpw
class-attribute
instance-attribute
skhpw: Optional[float] = Field(0.001, description='Phosphorus half-saturation constant for SAV in water column')
skhps
class-attribute
instance-attribute
skhps: Optional[float] = Field(0.01, description='Phosphorus half-saturation constant for SAV in sediments')
salpha
class-attribute
instance-attribute
salpha: Optional[float] = Field(0.006, description='Initial slope of the SAV photosynthesis-irradiance curve')
ske
class-attribute
instance-attribute
ske: Optional[float] = Field(0.045, description='Light attenuation coefficient due to SAV absorption')
shtm
class-attribute
instance-attribute
shtm: Optional[list] = Field([0.054, 2.0], description='Minimum (base) and maximum SAV canopy height')
s2ht
class-attribute
instance-attribute
s2ht: Optional[list] = Field([0.0036, 0.0036, 0.0], description='Coefficients for converting SAV leaf, stem, and root biomass to canopy height')
sc2dw
class-attribute
instance-attribute
s2den
class-attribute
instance-attribute
s2den: Optional[int] = Field(10, description='Coefficient for computing SAV density from leaf biomass')
Functions
validate_spatch0
classmethod
validate_stleaf0
classmethod
validate_ststem0
classmethod
validate_stroot0
classmethod
validate_sgpm
classmethod
validate_stgp
classmethod
validate_sktgp
classmethod
validate_sfam
classmethod
validate_sfcp
classmethod
validate_smtb
classmethod
validate_stmt
classmethod
validate_sktmt
classmethod
validate_sfcm
classmethod
validate_sfnm
classmethod
validate_sfpm
classmethod
validate_skhnw
classmethod
validate_skhns
classmethod
validate_skhnh4
classmethod
validate_skhpw
classmethod
validate_skhps
classmethod
validate_salpha
classmethod
validate_ske
classmethod
validate_shtm
classmethod
Source code in rompy_schism/namelists/icm.py
validate_s2ht
classmethod
validate_sc2dw
classmethod
Sfm
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 | |
Attributes
btemp0
class-attribute
instance-attribute
btemp0: Optional[float] = Field(5.0, description='Initial temperature of the sediment layer in degrees Celsius')
bstc0
class-attribute
instance-attribute
bstc0: Optional[float] = Field(0.1, description='Initial surface transfer coefficient for the sediment layer')
bstr0
class-attribute
instance-attribute
bthp0
class-attribute
instance-attribute
btox0
class-attribute
instance-attribute
btox0: Optional[float] = Field(0.0, description='Initial consecutive days of oxic condition after hypoxia event')
bnh40
class-attribute
instance-attribute
bnh40: Optional[float] = Field(4.0, description='Initial NH4 concentration in the sediment layer (g/m3)')
bno30
class-attribute
instance-attribute
bno30: Optional[float] = Field(1.0, description='Initial NO3 concentration in the sediment layer (g/m3)')
bpo40
class-attribute
instance-attribute
bpo40: Optional[float] = Field(5.0, description='Initial PO4 concentration in the sediment layer (g/m3)')
bh2s0
class-attribute
instance-attribute
bh2s0: Optional[float] = Field(250.0, description='Initial H2S concentration in the sediment layer (g/m3)')
bch40
class-attribute
instance-attribute
bch40: Optional[float] = Field(40.0, description='Initial CH4 concentration in the sediment layer (g/m3)')
bpos0
class-attribute
instance-attribute
bpos0: Optional[float] = Field(500.0, description='Initial POS (Particulate Organic Silica) concentration in the sediment layer (g/m3)')
bsa0
class-attribute
instance-attribute
bsa0: Optional[float] = Field(500.0, description='Initial SA (Salinity) concentration in the sediment layer (g/m3)')
bpoc0
class-attribute
instance-attribute
bpoc0: Optional[list] = Field([1000.0, 3000.0, 5000.0], description='Initial POC (Particulate Organic Carbon) concentrations for 3 classes (G1, G2, G3) in the sediment layer (g/m3)')
bpon0
class-attribute
instance-attribute
bpon0: Optional[list] = Field([150.0, 500.0, 1500.0], description='Initial PON (Particulate Organic Nitrogen) concentrations for 3 classes (G1, G2, G3) in the sediment layer (g/m3)')
bpop0
class-attribute
instance-attribute
bpop0: Optional[list] = Field([30.0, 300.0, 500.0], description='Initial POP (Particulate Organic Phosphorus) concentrations for 3 classes (G1, G2, G3) in the sediment layer (g/m3)')
bdz
class-attribute
instance-attribute
bvb
class-attribute
instance-attribute
bsolid
class-attribute
instance-attribute
bsolid: Optional[list] = Field([0.5, 0.5], description='Sediment solid concentrations in Layer 1 and Layer 2 (Kg/L)')
bdiff
class-attribute
instance-attribute
bdiff: Optional[float] = Field(1.8e-07, description='Diffusion coefficient for sediment temperature (m2/s)')
btr
class-attribute
instance-attribute
bvpmin
class-attribute
instance-attribute
bvpmin: Optional[float] = Field(3e-06, description='minimum particle mixing velocity coefficient (m.day-1)')
bvp
class-attribute
instance-attribute
bvd
class-attribute
instance-attribute
bktvp
class-attribute
instance-attribute
bktvd
class-attribute
instance-attribute
bkst
class-attribute
instance-attribute
bstmax
class-attribute
instance-attribute
bstmax: Optional[float] = Field(20.0, description='maximum value of benthic stress (day) (note: smaller than 1/bKST)')
bkhdo_vp
class-attribute
instance-attribute
bdoc_st
class-attribute
instance-attribute
banoxic
class-attribute
instance-attribute
banoxic: Optional[float] = Field(10.0, description='consective days of hypoxia causing maximum benthic stress (day)')
boxic
class-attribute
instance-attribute
boxic: Optional[float] = Field(45.0, description='time lag for bethos recovery from hypoxia event (day)')
bp2d
class-attribute
instance-attribute
bp2d: Optional[float] = Field(0.0, description='ratio from mixing coef. to diffusion coef. (benthos enhanced effect)')
bkc
class-attribute
instance-attribute
bkc: Optional[list] = Field([0.035, 0.0018, 0.0], description='decay rate of POC (3G class) at bTR (day-1)')
bkn
class-attribute
instance-attribute
bkn: Optional[list] = Field([0.035, 0.0018, 0.0], description='decay rate of PON (3G class) at bTR (day-1)')
bkp
class-attribute
instance-attribute
bkp: Optional[list] = Field([0.035, 0.0018, 0.0], description='decay rate of POP (3G class) at bTR (day-1)')
bktc
class-attribute
instance-attribute
bktn
class-attribute
instance-attribute
bktp
class-attribute
instance-attribute
bfcp
class-attribute
instance-attribute
bfcp: Optional[list] = Field([0.35, 0.55, 0.01, 0.35, 0.55, 0.01, 0.35, 0.55, 0.01], description='Phyto POC into sed POC (G3,PB=1:3)')
bfnp
class-attribute
instance-attribute
bfnp: Optional[list] = Field([0.35, 0.55, 0.01, 0.35, 0.55, 0.01, 0.35, 0.55, 0.01], description='Phyto PON into sed PON (G3,PB=1:3)')
bfpp
class-attribute
instance-attribute
bfpp: Optional[list] = Field([0.35, 0.55, 0.01, 0.35, 0.55, 0.01, 0.35, 0.55, 0.01], description='Phyto POP into sed POP (G3,PB=1:3)')
bfcm
class-attribute
instance-attribute
bfnm
class-attribute
instance-attribute
bfpm
class-attribute
instance-attribute
bknh4f
class-attribute
instance-attribute
bknh4f: Optional[float] = Field(0.2, description='NH4 reaction rate in freshwater at bTR (1st layer) (m/day)')
bknh4s
class-attribute
instance-attribute
bknh4s: Optional[float] = Field(0.14, description='NH4 reaction rate in salty water at bTR (1st layer) (m/day)')
bktnh4
class-attribute
instance-attribute
bkhnh4
class-attribute
instance-attribute
bkhdo_nh4
class-attribute
instance-attribute
bpienh4
class-attribute
instance-attribute
bpienh4: Optional[float] = Field(1.0, description='partition coefficients of NH4 in Layer 1 & 2 (Kg-1.L)')
bsaltn
class-attribute
instance-attribute
bsaltn: Optional[float] = Field(1.0, description='salinity criteria of fresh/salty water for NH4/NO3 reaction (PSU)')
bkno3f
class-attribute
instance-attribute
bkno3f: Optional[float] = Field(0.3, description='NO3 reaction rate in freshwater at bTR (1st layer) (m/day)')
bkno3s
class-attribute
instance-attribute
bkno3s: Optional[float] = Field(0.125, description='NO3 reaction rate in salty water at bTR (1st layer) (m/day)')
bkno3
class-attribute
instance-attribute
bktno3
class-attribute
instance-attribute
bkh2sd
class-attribute
instance-attribute
bkh2sd: Optional[float] = Field(0.2, description='dissolved H2S reaction rate at bTR (1st layer) (m/day)')
bkh2sp
class-attribute
instance-attribute
bkh2sp: Optional[float] = Field(0.4, description='particulate H2S reaction rate at bTR (1st layer) (m/day)')
bkth2s
class-attribute
instance-attribute
bpieh2ss
class-attribute
instance-attribute
bpieh2ss: Optional[float] = Field(100.0, description='partition coefficient of NH4 in Layer 1 (Kg-1.L)')
bpieh2sb
class-attribute
instance-attribute
bpieh2sb: Optional[float] = Field(100.0, description='partition coefficient of NH4 in Layer 2 (Kg-1.L)')
bkhdo_h2s
class-attribute
instance-attribute
bkhdo_h2s: Optional[float] = Field(8.0, description='O2 constant to normalize H2S oxidation (g[O2]/m3)')
bsaltc
class-attribute
instance-attribute
bsaltc: Optional[float] = Field(1.0, description='salinity criteria of fresh/salty water for carbon reaction (PSU)')
bkch4
class-attribute
instance-attribute
bktch4
class-attribute
instance-attribute
bkhdo_ch4
class-attribute
instance-attribute
bkhdo_ch4: Optional[float] = Field(0.2, description='half-saturation DO for CH4 oxidation (g[O2]/m3)')
bo2n
class-attribute
instance-attribute
bo2n: Optional[float] = Field(2.86, description='oxygen to nitrogen ratio in sediment (denitrification)')
bpiepo4
class-attribute
instance-attribute
bpiepo4: Optional[float] = Field(50.0, description='partition coefficient of PO4 in Layer 2 (Kg-1.L)')
bkopo4f
class-attribute
instance-attribute
bkopo4f: Optional[float] = Field(3000.0, description='oxygen dependency for PO4 sorption in freshwater in Layer 1')
bkopo4s
class-attribute
instance-attribute
bkopo4s: Optional[float] = Field(300.0, description='oxygen dependency for PO4 sorption in salty water in Layer 1')
bdoc_po4
class-attribute
instance-attribute
bsaltp
class-attribute
instance-attribute
bsaltp: Optional[float] = Field(1.0, description='salinity criteria of fresh/salty water for PO4 partition (PSU)')
bks
class-attribute
instance-attribute
bkts
class-attribute
instance-attribute
bsisat
class-attribute
instance-attribute
bsisat: Optional[float] = Field(40.0, description='silica saturation conc. in pore water (g[Si]/m3)')
bpiesi
class-attribute
instance-attribute
bpiesi: Optional[float] = Field(100.0, description='partition coefficient of silica in Layer 2 (Kg-1.L)')
bkosi
class-attribute
instance-attribute
bkosi: Optional[float] = Field(10.0, description='oxygen dependency for silica sorption in Layer 1')
bkhpos
class-attribute
instance-attribute
bkhpos: Optional[float] = Field(50000.0, description='POS half saturation for POS dissolution (g/m3)')
bdoc_si
class-attribute
instance-attribute
bjposa
class-attribute
instance-attribute
bjposa: Optional[float] = Field(0.0, description='additional POS flux associated with POM detrius beside algea (g.m-2.day-1)')
bfcs
class-attribute
instance-attribute
bfns
class-attribute
instance-attribute
bfps
class-attribute
instance-attribute
bfcv
class-attribute
instance-attribute
bfcv: Optional[list] = Field([0.65, 0.255, 0.095, 0.65, 0.255, 0.095, 0.65, 0.255, 0.095], description='VEG POC into sed POC (G3,PB=1:3)')
bfnv
class-attribute
instance-attribute
bfnv: Optional[list] = Field([0.65, 0.3, 0.05, 0.65, 0.3, 0.05, 0.65, 0.3, 0.05], description='VEG PON into sed PON (G3,PB=1:3)')
bfpv
class-attribute
instance-attribute
bfpv: Optional[list] = Field([0.65, 0.255, 0.095, 0.65, 0.255, 0.095, 0.65, 0.255, 0.095], description='VEG POP into sed POP (G3,PB=1:3)')
Functions
validate_btemp0
classmethod
validate_bstc0
classmethod
validate_bstr0
classmethod
validate_bthp0
classmethod
validate_btox0
classmethod
validate_bnh40
classmethod
validate_bno30
classmethod
validate_bpo40
classmethod
validate_bh2s0
classmethod
validate_bch40
classmethod
validate_bpos0
classmethod
validate_bsa0
classmethod
validate_bpoc0
classmethod
validate_bpon0
classmethod
validate_bpop0
classmethod
validate_bdz
classmethod
validate_bvb
classmethod
validate_bsolid
classmethod
validate_bdiff
classmethod
Silica
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
Attributes
fsp
class-attribute
instance-attribute
fsm
class-attribute
instance-attribute
fsm: Optional[list] = Field([0.5, 0.5], description='fractions of diatom metabolism Si into (SU,SA)')
ks
class-attribute
instance-attribute
trs
class-attribute
instance-attribute
ktrs
class-attribute
instance-attribute
khs
class-attribute
instance-attribute
khs: Optional[list] = Field([0.05, 0.0, 0.0], description='silica half saturation (mg/L); (0.0: no Si limitation)')
Stem
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
Attributes
sn2c
class-attribute
instance-attribute
sn2c: Optional[float] = Field(0.09, description='Nitrogen to carbon ratio of submerged aquatic vegetation (SAV)')
sp2c
class-attribute
instance-attribute
so2c
class-attribute
instance-attribute
Functions
validate_sn2c
classmethod
validate_sp2c
classmethod
Veg
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 | |
Attributes
vpatch0
class-attribute
instance-attribute
vpatch0: Optional[int] = Field(-999, description='Region flag for VEG. (1: ON for all elements; -999: spatial distribution)')
vtleaf0
class-attribute
instance-attribute
vtleaf0: Optional[list] = Field([100.0, 100.0, 100.0], description='Initial concentration for total vegetation leaf biomass (3 values for different vegetation types)')
vtstem0
class-attribute
instance-attribute
vtstem0: Optional[list] = Field([100.0, 100.0, 100.0], description='Initial concentration for total vegetation stem biomass (3 values for different vegetation types)')
vtroot0
class-attribute
instance-attribute
vtroot0: Optional[list] = Field([30.0, 30.0, 30.0], description='Initial concentration for total vegetation root biomass (3 values for different vegetation types)')
vgpm
class-attribute
instance-attribute
vgpm: Optional[list] = Field([0.1, 0.1, 0.1], description='Maximum growth rate for vegetation (day^-1) (3 values for different vegetation types)')
vfam
class-attribute
instance-attribute
vfam: Optional[list] = Field([0.2, 0.2, 0.2], description='Fractions of leaf production allocated to active metabolism (3 values for different vegetation types)')
vtgp
class-attribute
instance-attribute
vtgp: Optional[list] = Field([32.0, 32.0, 32.0], description='Optimal growth temperature for vegetation (°C) (3 values for different vegetation types)')
vktgp
class-attribute
instance-attribute
vktgp: Optional[list] = Field([0.003, 0.003, 0.003, 0.005, 0.005, 0.005], description='Temperature dependence coefficients for growth (6 values: 3 for T<=vTGP and 3 for T>vTGP, for different vegetation types)')
vfcp
class-attribute
instance-attribute
vfcp: Optional[list] = Field([0.6, 0.6, 0.6, 0.3, 0.3, 0.3, 0.1, 0.1, 0.1], description='Fractions of production allocated to leaf/stem/root biomass (9 values: 3 for each vegetation type, 3 for each biomass component)')
vmtb
class-attribute
instance-attribute
vmtb: Optional[list] = Field([0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.01, 0.01, 0.01], description='Metabolism rates for leaf/stem/root (9 values: 3 for each vegetation type, 3 for each biomass component)')
vtmt
class-attribute
instance-attribute
vtmt: Optional[list] = Field([20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0, 20.0], description='Reference temperatures for leaf/stem/root metabolism (9 values: 3 for each vegetation type, 3 for each biomass component)')
vktmt
class-attribute
instance-attribute
vktmt: Optional[list] = Field([0.069, 0.069, 0.069, 0.069, 0.069, 0.069, 0.069, 0.069, 0.069], description='Temperature dependence coefficients for leaf/stem/root metabolism (9 values: 3 for each vegetation type, 3 for each biomass component)')
vfnm
class-attribute
instance-attribute
vfnm: Optional[list] = Field([0.05, 0.05, 0.05, 0.15, 0.15, 0.15, 0.3, 0.3, 0.3, 0.5, 0.5, 0.5], description='Fractions of metabolism N into RPON, LPON, DON, NH4 (12 values: 3 for each vegetation type, 4 for each N form)')
vfpm
class-attribute
instance-attribute
vfpm: Optional[list] = Field([0.05, 0.05, 0.05, 0.1, 0.1, 0.1, 0.35, 0.35, 0.35, 0.5, 0.5, 0.5], description='Fractions of metabolism P into RPOP, LPOP, DOP, PO4 (12 values: 3 for each vegetation type, 4 for each P form)')
vfcm
class-attribute
instance-attribute
vfcm: Optional[list] = Field([0.05, 0.05, 0.05, 0.15, 0.15, 0.15, 0.3, 0.3, 0.3, 0.5, 0.5, 0.5], description='Fractions of metabolism C into RPOC, LPOC, DOC, CO2 (12 values: 3 for each vegetation type, 4 for each C form)')
ivnc
class-attribute
instance-attribute
ivnc: Optional[int] = Field(1, description='Flag for recycled vegetation N destination (0: sediment; 1: water)')
ivpc
class-attribute
instance-attribute
ivpc: Optional[int] = Field(1, description='Flag for recycled vegetation P destination (0: sediment; 1: water)')
vkhns
class-attribute
instance-attribute
vkhns: Optional[list] = Field([0.1, 0.1, 0.1], description='Nitrogen half-saturation constant in sediments (3 values for different vegetation types)')
vkhps
class-attribute
instance-attribute
vkhps: Optional[list] = Field([0.01, 0.01, 0.01], description='Phosphorus half-saturation constant in sediments (3 values for different vegetation types)')
vscr
class-attribute
instance-attribute
vscr: Optional[list] = Field([35.0, 35.0, 35.0], description='Reference salinity for computing vegetation growth (3 values for different vegetation types)')
vsopt
class-attribute
instance-attribute
vsopt: Optional[list] = Field([35.0, 15.0, 0.0], description='Optimal salinity for vegetation growth (3 values for different vegetation types)')
vinun
class-attribute
instance-attribute
vinun: Optional[list] = Field([1.0, 1.0, 1.0], description='Reference value for inundation stress (nondimensional) (3 values for different vegetation types)')
ivns
class-attribute
instance-attribute
ivns: Optional[int] = Field(1, description='Flag for N limitation on vegetation growth (0: OFF; 1: ON)')
ivps
class-attribute
instance-attribute
ivps: Optional[int] = Field(1, description='Flag for P limitation on vegetation growth (0: OFF; 1: ON)')
ivmrt
class-attribute
instance-attribute
vtmr
class-attribute
instance-attribute
vtmr: Optional[list] = Field([17.0, 17.0, 17.0, 17.0, 17.0, 17.0], description='Reference temperatures for leaf/stem mortality (6 values: 3 for each vegetation type, 2 for leaf/stem)')
vktmr
class-attribute
instance-attribute
vktmr: Optional[list] = Field([4.0, 4.0, 4.0, 4.0, 4.0, 4.0], description='Temperature dependence coefficients for leaf/stem mortality (6 values: 3 for each vegetation type, 2 for leaf/stem)')
vmr0
class-attribute
instance-attribute
vmr0: Optional[list] = Field([12.8, 12.8, 12.8, 12.8, 12.8, 12.8], description='Base value of temperature effect on mortality (6 values: 3 for each vegetation type, 2 for leaf/stem)')
vmrcr
class-attribute
instance-attribute
vmrcr: Optional[list] = Field([15.0, 15.0, 15.0, 15.0, 15.0, 15.0], description='Reference value for computing mortality (6 values: 3 for each vegetation type, 2 for leaf/stem)')
valpha
class-attribute
instance-attribute
valpha: Optional[list] = Field([0.006, 0.006, 0.006], description='Initial slope of P-I curve (3 values for different vegetation types)')
vke
class-attribute
instance-attribute
vke: Optional[list] = Field([0.045, 0.045, 0.045], description='Light attenuation coefficient from vegetation absorption (3 values for different vegetation types)')
vht0
class-attribute
instance-attribute
vht0: Optional[list] = Field([0.054, 0.054, 0.054], description='Base vegetation canopy height (3 values for different vegetation types)')
vcrit
class-attribute
instance-attribute
vcrit: Optional[list] = Field([250.0, 250.0, 250.0], description='Critical mass for computing vegetation height (3 values for different vegetation types)')
v2ht
class-attribute
instance-attribute
v2ht: Optional[list] = Field([0.0036, 0.0036, 0.0036, 0.001, 0.001, 0.001], description='Coefficients to convert mass to canopy height (6 values: 3 for each vegetation type, 2 for different conditions)')
vc2dw
class-attribute
instance-attribute
vc2dw: Optional[list] = Field([0.38, 0.38, 0.38], description='Carbon to dry weight ratio of vegetation (3 values for different vegetation types)')
v2den
class-attribute
instance-attribute
v2den: Optional[list] = Field([10, 10, 10], description='Coefficient for computing vegetation density (3 values for different vegetation types)')
vp2c
class-attribute
instance-attribute
vp2c: Optional[list] = Field([0.01, 0.01, 0.01], description='Phosphorus to carbon ratio in vegetation (3 values for different vegetation types)')
vn2c
class-attribute
instance-attribute
vn2c: Optional[list] = Field([0.09, 0.09, 0.09], description='Nitrogen to carbon ratio in vegetation (3 values for different vegetation types)')
vo2c
class-attribute
instance-attribute
vo2c: Optional[list] = Field([2.67, 2.67, 2.67], description='Oxygen to carbon ratio in vegetation (3 values for different vegetation types)')
Functions
check_vpatch0
classmethod
check_vtleaf0
classmethod
check_vtstem0
classmethod
check_vtroot0
classmethod
check_vgpm
classmethod
check_vfam
classmethod
check_vtgp
classmethod
Source code in rompy_schism/namelists/icm.py
check_vktgp
classmethod
check_vfcp
classmethod
Source code in rompy_schism/namelists/icm.py
check_vmtb
classmethod
check_vtmt
classmethod
Source code in rompy_schism/namelists/icm.py
check_vktmt
classmethod
check_vfnm
classmethod
Source code in rompy_schism/namelists/icm.py
check_vfpm
classmethod
Source code in rompy_schism/namelists/icm.py
check_vfcm
classmethod
Source code in rompy_schism/namelists/icm.py
check_ivnc
classmethod
check_ivpc
classmethod
check_vkhns
classmethod
check_vkhps
classmethod
check_vscr
classmethod
Source code in rompy_schism/namelists/icm.py
check_vsopt
classmethod
Source code in rompy_schism/namelists/icm.py
check_vinun
classmethod
check_ivns
classmethod
check_ivps
classmethod
check_ivmrt
classmethod
check_vtmr
classmethod
Source code in rompy_schism/namelists/icm.py
check_vktmr
classmethod
check_vmr0
classmethod
check_vmrcr
classmethod
check_valpha
classmethod
check_vke
classmethod
check_vht0
classmethod
check_vcrit
classmethod
check_v2ht
classmethod
check_vc2dw
classmethod
check_v2den
classmethod
check_vp2c
classmethod
check_vn2c
classmethod
check_vo2c
classmethod
check_vfcp_sum
check_vfnm_sum
check_vfpm_sum
check_vfcm_sum
Zb
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 | |
Attributes
zgpm
class-attribute
instance-attribute
zgpm: Optional[list] = Field([0.0, 0.0, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 1.0, 0.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0], description='Zooplankton predation rate (day^-1) for different prey types and zooplankton groups. Dimension: (prey=1:8, ZB=1:2)')
zkhg
class-attribute
instance-attribute
zkhg: Optional[list] = Field([0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175, 0.175], description='Reference prey concentration (mg/L) for zooplankton growth. Dimension: (prey=1:8, ZB=1:2)')
ztgp
class-attribute
instance-attribute
ztgp: Optional[list] = Field([25.0, 25.0], description='Optimal temperature for zooplankton growth (°C)')
zktgp
class-attribute
instance-attribute
zktgp: Optional[list] = Field([0.0035, 0.008, 0.025, 0.03], description='Temperature dependence for zooplankton growth (°C^-2). Dimension: (ZB=1:2, 1:2) for T<=zTGP & T>zTGP')
zag
class-attribute
instance-attribute
zrg
class-attribute
instance-attribute
zmrt
class-attribute
instance-attribute
zmtb
class-attribute
instance-attribute
ztmt
class-attribute
instance-attribute
ztmt: Optional[list] = Field([20.0, 20.0], description='Reference temperature for zooplankton metabolism (°C)')
zktmt
class-attribute
instance-attribute
zktmt: Optional[list] = Field([0.0693, 0.0693], description='Temperature dependence for zooplankton metabolism (°C^-1)')
zfcp
class-attribute
instance-attribute
zfcp: Optional[list] = Field([0.35, 0.55, 0.1], description='Fractions of zooplankton carbon partitioned into (RPOC, LPOC, DOC)')
zfnp
class-attribute
instance-attribute
zfnp: Optional[list] = Field([0.35, 0.5, 0.1, 0.05], description='Fractions of zooplankton nitrogen partitioned into (RPON, LPON, DON, NH4)')
zfpp
class-attribute
instance-attribute
zfpp: Optional[list] = Field([0.1, 0.2, 0.5, 0.2], description='Fractions of zooplankton phosphorus partitioned into (RPOP, LPOP, DOP, PO4)')
zfsp
class-attribute
instance-attribute
zfsp: Optional[list] = Field([0.7, 0.25], description='Fractions of zooplankton silica partitioned into (SU, SA)')
zfcm
class-attribute
instance-attribute
zfcm: Optional[list] = Field([0.1, 0.0], description='Fractions of zooplankton metabolism carbon partitioned into DOC. Dimension: (ZB=1:2)')
zfnm
class-attribute
instance-attribute
zfnm: Optional[list] = Field([0.35, 0.3, 0.5, 0.4, 0.1, 0.2, 0.05, 0.1], description='Fractions of zooplankton metabolism nitrogen partitioned into (RPON, LPON, DON, NH4). Dimension: (ZB=1:2, 4)')
zfpm
class-attribute
instance-attribute
zfpm: Optional[list] = Field([0.35, 0.3, 0.5, 0.4, 0.1, 0.2, 0.05, 0.1], description='Fractions of zooplankton metabolism phosphorus partitioned into (RPOP, LPOP, DOP, PO4). Dimension: (ZB=1:2, 4)')
zfsm
class-attribute
instance-attribute
zfsm: Optional[list] = Field([0.5, 0.4, 0.5, 0.6], description='Fractions of zooplankton metabolism silica partitioned into (SU, SA). Dimension: (ZB=1:2, 2)')
zkhdo
class-attribute
instance-attribute
zkhdo: Optional[list] = Field([0.5, 0.5], description="Dissolved oxygen half-saturation for zooplankton's DOC excretion (mg/L)")
zn2c
class-attribute
instance-attribute
zp2c
class-attribute
instance-attribute
zp2c: Optional[list] = Field([0.02, 0.02], description='Phosphorus to carbon ratio for zooplankton')
zs2c
class-attribute
instance-attribute
z2pr
class-attribute
instance-attribute
z2pr: Optional[list] = Field([0.5, 0.5], description='Ratio converting zooplankton and phytoplankton biomass to predation rates on zooplankton (L.mg^-1.day^-1)')
p2pr
class-attribute
instance-attribute
p2pr: Optional[float] = Field(0.25, description='Ratio converting zooplankton and phytoplankton biomass to predation rates on phytoplankton (L.mg^-1.day^-1)')
Functions
validate_zgpm
classmethod
validate_zkhg
classmethod
validate_ztgp
classmethod
validate_zktgp
classmethod
validate_zag
classmethod
validate_zrg
classmethod
validate_zmrt
classmethod
validate_zmtb
classmethod
validate_ztmt
classmethod
validate_zktmt
classmethod
validate_zfcp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_zfnp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_zfpp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_zfsp
classmethod
Source code in rompy_schism/namelists/icm.py
validate_zfcm
classmethod
validate_zfnm
classmethod
validate_zfpm
classmethod
validate_zfsm
classmethod
validate_zkhdo
classmethod
validate_zn2c
classmethod
validate_zp2c
classmethod
validate_zs2c
classmethod
validate_z2pr
classmethod
Icm
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/icm.py
Attributes
SEDIMENT
Sed_opt
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/sediment.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | |
Attributes
isedtype
class-attribute
instance-attribute
isedtype: Optional[list] = Field([1, 1, 1, 1, 1], description='Sediment type for each class. 0: MUD-like (suspension only), 1: SAND-like (suspension + bedload), 2: GRAVEL-like (not available)')
srho
class-attribute
instance-attribute
srho: Optional[list] = Field([2650.0, 2650.0, 2650.0, 2650.0, 2650.0], description='Sediment grain density (kg/m3) for each sediment class')
comp_ws
class-attribute
instance-attribute
comp_ws: Optional[int] = Field(0, description='Flag to enable/disable computation of sediment settling velocity. 0: Disabled (user-defined), 1: Enabled (computed from SAND_SD50 and SAND_SRHO)')
comp_tauce
class-attribute
instance-attribute
comp_tauce: Optional[int] = Field(0, description='Flag to enable/disable computation of sediment critical shear stress. 0: Disabled (user-defined), 1: Enabled (computed from SAND_SD50 and SAND_SRHO)')
wsed
class-attribute
instance-attribute
wsed: Optional[list] = Field([1.06, 3.92, 5.43, 10.19, 28.65], description='Particle settling velocity (mm/s) for each sediment class')
tau_ce
class-attribute
instance-attribute
tau_ce: Optional[list] = Field([0.15, 0.17, 0.23, 0.3, 0.6], description='Critical shear stress for erosion (Pa) for each sediment class')
sed_debug
class-attribute
instance-attribute
sed_debug: Optional[int] = Field(0, description='Debug flag. 0: silent, 1: output variables to outputs/nonfatal_*')
ised_dump
class-attribute
instance-attribute
ised_dump: Optional[int] = Field(0, description='Dumping/dredging option. 0: no, 1: needs input sed_dump.in')
bedload
class-attribute
instance-attribute
bedload: Optional[int] = Field(1, description='Bedload transport formula. 0: Disabled, 1: van Rijn (2007), 3: Soulsby and Damgaard (2005), 4: Wu and Lin (2014)')
bedload_filter
class-attribute
instance-attribute
bedload_filter: Optional[int] = Field(0, description='Flag to enable/disable diffusive filter for bedload fluxes. 0: Disabled, 1: Enabled')
bedload_limiter
class-attribute
instance-attribute
bedload_limiter: Optional[int] = Field(0, description='Flag to enable/disable limiting of bedload flux components. 0: Disabled, 1: Enabled')
suspended_load
class-attribute
instance-attribute
suspended_load: Optional[int] = Field(1, description='Flag to enable/disable suspended load transport. 0: Disabled, 1: Enabled')
w_asym_max
class-attribute
instance-attribute
elfrink_filter
class-attribute
instance-attribute
bedload_acc
class-attribute
instance-attribute
bedload_acc_filter
class-attribute
instance-attribute
kacc_hoe
class-attribute
instance-attribute
kacc_dub
class-attribute
instance-attribute
thresh_acc_opt
class-attribute
instance-attribute
tau_max
class-attribute
instance-attribute
zstress
class-attribute
instance-attribute
slope_formulation
class-attribute
instance-attribute
alpha_bs
class-attribute
instance-attribute
alpha_bn
class-attribute
instance-attribute
ised_bc_bot
class-attribute
instance-attribute
refht
class-attribute
instance-attribute
tbp
class-attribute
instance-attribute
sed_morph_time
class-attribute
instance-attribute
morph_fac
class-attribute
instance-attribute
drag_formulation
class-attribute
instance-attribute
bedforms_rough
class-attribute
instance-attribute
iwave_ripple
class-attribute
instance-attribute
irough_bdld
class-attribute
instance-attribute
slope_avalanching
class-attribute
instance-attribute
dry_slope_cr
class-attribute
instance-attribute
wet_slope_cr
class-attribute
instance-attribute
bedmass_filter
class-attribute
instance-attribute
bedmass_threshold
class-attribute
instance-attribute
bedload_coeff
class-attribute
instance-attribute
sedlay_ini_opt
class-attribute
instance-attribute
toplay_inithick
class-attribute
instance-attribute
newlayer_thick
class-attribute
instance-attribute
imeth_bed_evol
class-attribute
instance-attribute
poro_option
class-attribute
instance-attribute
bwooster
class-attribute
instance-attribute
Functions
validate_isedtype
classmethod
validate_srho
classmethod
validate_comp_ws
classmethod
validate_comp_tauce
classmethod
validate_wsed
classmethod
validate_tau_ce
classmethod
validate_sed_debug
classmethod
validate_ised_dump
classmethod
validate_bedload
classmethod
validate_bedload_filter
classmethod
validate_bedload_limiter
classmethod
validate_suspended_load
classmethod
check_wsed_comp_ws
Source code in rompy_schism/namelists/sediment.py
check_tau_ce_comp_tauce
Source code in rompy_schism/namelists/sediment.py
Sed_core
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/sediment.py
Attributes
sd50
class-attribute
instance-attribute
sd50: Optional[list] = Field([0.12, 0.18, 0.39, 0.6, 1.2], description='Median sediment grain diameter (D50) for each sediment tracer, specified in millimeters. This is a list of values corresponding to the number of sediment tracers (Ntracers).')
erate
class-attribute
instance-attribute
erate: Optional[list] = Field([0.0016, 0.0016, 0.0016, 0.0016, 0.0016], description="Surface erosion rate for each sediment tracer. The interpretation and units depend on the 'ierosion' parameter. If ierosion=0, the units are kg/m²/s. If ierosion=1, the units are s/m (as per M_E in Winterwerp et al. 2012, JGR, vol 117).")
Functions
validate_sd50
classmethod
validate_erate
classmethod
Sediment
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/sediment.py
COSINE
Core
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/cosine.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | |
Attributes
gmaxs
class-attribute
instance-attribute
gmaxs: Optional[list] = Field([2.0, 2.5], description='Maximum growth rates for two phytoplankton types')
gammas
class-attribute
instance-attribute
gammas: Optional[list] = Field([0.2, 0.075], description='Mortality rates for two phytoplankton types')
pis
class-attribute
instance-attribute
pis: Optional[list] = Field([1.5, 1.5], description='Ammonium inhibition parameters for two phytoplankton types')
kno3s
class-attribute
instance-attribute
kno3s: Optional[list] = Field([1.0, 3.0], description='NO3 half-saturation constants for two phytoplankton types')
knh4s
class-attribute
instance-attribute
knh4s: Optional[list] = Field([0.15, 0.45], description='NH4 half-saturation constants for two phytoplankton types')
kpo4s
class-attribute
instance-attribute
kpo4s: Optional[list] = Field([0.1, 0.1], description='PO4 half-saturation constants for two phytoplankton types')
kco2s
class-attribute
instance-attribute
kco2s: Optional[list] = Field([50.0, 50.0], description='CO2 half-saturation constants for two phytoplankton types')
ksio4
class-attribute
instance-attribute
kns
class-attribute
instance-attribute
kns: Optional[list] = Field([0.0, 0.0], description='Nighttime uptake rates of NH4 for two phytoplankton types')
alphas
class-attribute
instance-attribute
alphas: Optional[list] = Field([0.1, 0.1], description='Initial slopes of P-I curve for two phytoplankton types')
betas
class-attribute
instance-attribute
betas: Optional[list] = Field([0.0, 0.0], description='Slopes for photo-inhibition for two phytoplankton types')
aks
class-attribute
instance-attribute
aks: Optional[list] = Field([0.75, 0.03, 0.066], description='Light extinction coefficients for phytoplankton and suspended particulate matter')
betaz
class-attribute
instance-attribute
betaz: Optional[list] = Field([1.35, 0.4], description='Maximum grazing rates for two zooplankton types')
alphaz
class-attribute
instance-attribute
alphaz: Optional[list] = Field([0.75, 0.75], description='Assimilation rates for two zooplankton types')
gammaz
class-attribute
instance-attribute
kez
class-attribute
instance-attribute
kgz
class-attribute
instance-attribute
kgz: Optional[list] = Field([0.5, 0.25], description='Reference prey concentrations for grazing for two zooplankton types')
rhoz
class-attribute
instance-attribute
rhoz: Optional[list] = Field([0.6, 0.3, 0.1], description='Prey preference factors of Z2 on (S2, Z1, DN)')
ipo4
class-attribute
instance-attribute
ipo4: Optional[int] = Field(1, description='Flag to add additional PO4 from biogenic silica dissolution')
tr
class-attribute
instance-attribute
tr: Optional[float] = Field(20.0, description='Reference temperature for temperature adjustment for CoSiNE sink and source')
kox
class-attribute
instance-attribute
wss2
class-attribute
instance-attribute
wsdn
class-attribute
instance-attribute
wsdsi
class-attribute
instance-attribute
si2n
class-attribute
instance-attribute
p2n
class-attribute
instance-attribute
o2no
class-attribute
instance-attribute
o2nh
class-attribute
instance-attribute
c2n
class-attribute
instance-attribute
gamman
class-attribute
instance-attribute
pco2a
class-attribute
instance-attribute
kmdn
class-attribute
instance-attribute
kmdn: Optional[list] = Field([0.009, 0.075], description='Remineralization coefficients for DN (detrital nitrogen)')
kmdsi
class-attribute
instance-attribute
kmdsi: Optional[list] = Field([0.0114, 0.015], description='Remineralization coefficients for DSi (dissolved silica)')
Functions
check_gmaxs
classmethod
Source code in rompy_schism/namelists/cosine.py
check_gammas
classmethod
Source code in rompy_schism/namelists/cosine.py
check_pis
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kno3s
classmethod
Source code in rompy_schism/namelists/cosine.py
check_knh4s
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kpo4s
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kco2s
classmethod
Source code in rompy_schism/namelists/cosine.py
check_ksio4
classmethod
check_kns
classmethod
Source code in rompy_schism/namelists/cosine.py
check_alphas
classmethod
Source code in rompy_schism/namelists/cosine.py
check_betas
classmethod
Source code in rompy_schism/namelists/cosine.py
check_aks
classmethod
Source code in rompy_schism/namelists/cosine.py
check_betaz
classmethod
Source code in rompy_schism/namelists/cosine.py
check_alphaz
classmethod
Source code in rompy_schism/namelists/cosine.py
check_gammaz
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kez
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kgz
classmethod
Source code in rompy_schism/namelists/cosine.py
check_rhoz
classmethod
Source code in rompy_schism/namelists/cosine.py
check_ipo4
classmethod
check_tr
classmethod
check_kox
classmethod
check_wss2
classmethod
check_wsdn
classmethod
check_wsdsi
classmethod
check_si2n
classmethod
check_p2n
classmethod
check_o2no
classmethod
check_o2nh
classmethod
check_c2n
classmethod
check_gamman
classmethod
check_pco2a
classmethod
check_kmdn
classmethod
Source code in rompy_schism/namelists/cosine.py
check_kmdsi
classmethod
Source code in rompy_schism/namelists/cosine.py
Marco
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/cosine.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |
Attributes
idelay
class-attribute
instance-attribute
idelay: Optional[int] = Field(0, description='Switch for 7-day delay in zooplankton predation (0: off, 1: on)')
ndelay
class-attribute
instance-attribute
ndelay: Optional[int] = Field(7, description='Number of days for zooplankton predation delay when idelay is active')
ibgraze
class-attribute
instance-attribute
idapt
class-attribute
instance-attribute
alpha_corr
class-attribute
instance-attribute
alpha_corr: Optional[float] = Field(1.25, description='Correction factor for light adaptation when idapt is active')
zeptic
class-attribute
instance-attribute
zeptic: Optional[float] = Field(10.0, description='Euphotic zone depth parameter for light adaptation when idapt is active')
iz2graze
class-attribute
instance-attribute
iz2graze: Optional[int] = Field(1, description='Switch for Z2 grazing on S2, Z1, and DN (0: off, 1: on)')
iout_cosine
class-attribute
instance-attribute
iout_cosine: Optional[int] = Field(0, description='CoSiNE model station output option (0: off, 1-5: various output levels)')
nspool_cosine
class-attribute
instance-attribute
nspool_cosine: Optional[int] = Field(30, description='Output interval (number of time steps) for CoSiNE model station output')
ico2s
class-attribute
instance-attribute
ico2s: Optional[int] = Field(0, description='Switch for CO2 limitation on phytoplankton growth (0: off, 1: on)')
ispm
class-attribute
instance-attribute
ispm: Optional[int] = Field(0, description='Suspended Particulate Matter (SPM) calculation method (0: constant, 1: spatial varying, 2: SED model)')
spm0
class-attribute
instance-attribute
ised
class-attribute
instance-attribute
Functions
validate_idelay
classmethod
validate_ndelay
classmethod
validate_ibgraze
classmethod
validate_idapt
classmethod
validate_alpha_corr
classmethod
validate_zeptic
classmethod
validate_iz2graze
classmethod
validate_iout_cosine
classmethod
validate_nspool_cosine
classmethod
validate_ico2s
classmethod
validate_ispm
classmethod
validate_spm0
classmethod
Misc
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/cosine.py
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 | |
Attributes
iws
class-attribute
instance-attribute
iws: Optional[int] = Field(0, description='Flag to enable or disable diatom sinking velocity dependence on NO3 concentration')
no3c
class-attribute
instance-attribute
no3c: Optional[float] = Field(2.0, description='Critical NO3 concentration (mmol/m3) for diatom sinking velocity calculation')
ws1
class-attribute
instance-attribute
ws1: Optional[float] = Field(2.5, description='Diatom sinking velocity (m/day) when NO3 concentration is below no3c')
ws2
class-attribute
instance-attribute
ws2: Optional[float] = Field(2.0, description='Diatom sinking velocity (m/day) when NO3 concentration is above no3c')
iclam
class-attribute
instance-attribute
deltaz
class-attribute
instance-attribute
kcex
class-attribute
instance-attribute
nperclam
class-attribute
instance-attribute
wclam
class-attribute
instance-attribute
fclam
class-attribute
instance-attribute
nclam0
class-attribute
instance-attribute
fs2
class-attribute
instance-attribute
fs2: Optional[list] = Field([0.1, 0.1, 0.8], description='Partitioning coefficients for S2 from water column into sediment (3 values)')
rks2
class-attribute
instance-attribute
rks2: Optional[list] = Field([0.004, 0.0001, 0.0], description='Changing rates of remineralization for sediment S2 (3 values, day^-1)')
mks2
class-attribute
instance-attribute
mks2: Optional[list] = Field([0.1, 0.01, 0.0], description='Maximum remineralization rates for sediment S2 (3 values, day^-1)')
fdn
class-attribute
instance-attribute
fdn: Optional[list] = Field([0.15, 0.1, 0.75], description='Partitioning coefficients for DN from water column into sediment (3 values)')
rkdn
class-attribute
instance-attribute
rkdn: Optional[list] = Field([0.004, 0.0001, 0.0], description='Changing rates of remineralization for sediment DN (3 values, day^-1)')
mkdn
class-attribute
instance-attribute
mkdn: Optional[list] = Field([0.1, 0.01, 0.0], description='Maximum remineralization rates for sediment DN (3 values, day^-1)')
fdsi
class-attribute
instance-attribute
fdsi: Optional[list] = Field([0.3, 0.3, 0.4], description='Partitioning coefficients for DSi from water column into sediment (3 values)')
rkdsi
class-attribute
instance-attribute
rkdsi: Optional[list] = Field([0.004, 0.0001, 0.0], description='Changing rates of remineralization for sediment DSi (3 values, day^-1)')
mkdsi
class-attribute
instance-attribute
mkdsi: Optional[list] = Field([0.1, 0.01, 0.0], description='Maximum remineralization rates for sediment DSi (3 values, day^-1)')
Functions
validate_iws
classmethod
validate_no3c
classmethod
validate_ws1
classmethod
validate_ws2
classmethod
validate_iclam
classmethod
validate_deltaz
classmethod
validate_kcex
classmethod
validate_nperclam
classmethod
validate_wclam
classmethod
validate_fclam
classmethod
validate_nclam0
classmethod
validate_fs2
classmethod
Source code in rompy_schism/namelists/cosine.py
validate_rks2
classmethod
validate_mks2
classmethod
validate_fdn
classmethod
Source code in rompy_schism/namelists/cosine.py
validate_rkdn
classmethod
validate_mkdn
classmethod
validate_fdsi
classmethod
Source code in rompy_schism/namelists/cosine.py
validate_rkdsi
classmethod
validate_mkdsi
classmethod
Cosine
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/cosine.py
WWMINPUT
Coupl
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
Attributes
lcpl
class-attribute
instance-attribute
lcpl: Optional[bool] = Field(True, description='Main switch to enable coupling with the current model. Should be kept on for SCHISM-WWM coupling.')
radflag
class-attribute
instance-attribute
radflag: Optional[str] = Field('LON', description="Determines the formulation for wave-induced forces. 'LON' for Longuet-Higgins formulation, 'VOR' for vortex formulation. Usually set to 'LON'.")
letot
class-attribute
instance-attribute
letot: Optional[bool] = Field(False, description="Option to compute wave-induced radiation stress. If True, radiation stress is based on the integrated wave spectrum. If False (recommended), it's estimated using the directional spectra as described in Roland et al. (2008). False is preferred as it preserves spectral information.")
nlvt
class-attribute
instance-attribute
nlvt: Optional[int] = Field(10, description='Number of vertical layers. Not used when coupled with SCHISM.')
dtcoup
class-attribute
instance-attribute
dtcoup: Optional[float] = Field(600.0, description='Coupling time step in seconds. Not used when coupled to SCHISM.')
Functions
validate_lcpl
classmethod
validate_radflag
classmethod
validate_letot
classmethod
validate_nlvt
classmethod
Engs
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 | |
Attributes
mesnl
class-attribute
instance-attribute
mesnl: Optional[int] = Field(1, description='Controls the nonlinear wave-wave interactions (NL4) using the Discrete Interaction Approximation. 1 enables the interactions, 0 disables them.')
mesin
class-attribute
instance-attribute
mesin: Optional[int] = Field(1, description='Specifies the wind input formulation. Options include: 0 (no wind), 1 (Ardhuin et al.), 2 (ECMWF physics), 3 (Makin Stam), 4 (Babanin et al.), 5 (Cycle 3).')
ifric
class-attribute
instance-attribute
ifric: Optional[int] = Field(1, description='Determines the formulation for the atmospheric boundary layer. Should be 1 when MESIN=1, and 4 when MESIN=3.')
mesbf
class-attribute
instance-attribute
mesbf: Optional[int] = Field(2, description='Selects the bottom friction formulation. 1 for JONSWAP (Default), 2 for Madsen et al. (1989), 3 for SHOWEX.')
fricc
class-attribute
instance-attribute
fricc: Optional[float] = Field(0.006, description='Bottom friction coefficient or roughness, depending on MESBF. For MESBF=1: JONSWAP coefficient [0.038,0.067]. For MESBF=2: physical bottom roughness. For MESBF=3: D50 (negative value reads from SHOWEX_D50.gr3).')
mesbr
class-attribute
instance-attribute
mesbr: Optional[int] = Field(1, description='Enables (1) or disables (0) shallow water wave breaking.')
ibreak
class-attribute
instance-attribute
ibreak: Optional[int] = Field(1, description='Selects the wave breaking formulation. Options range from 1 to 6, each representing a different model or approach.')
icrit
class-attribute
instance-attribute
icrit: Optional[int] = Field(1, description='Specifies the wave breaking criterion. Options 1-6 represent different methods for determining the breaking point.')
brcr
class-attribute
instance-attribute
brcr: Optional[float] = Field(0.73, description='Breaking criterion parameter. Its meaning depends on IBREAK and ICRIT settings.')
a_brcr
class-attribute
instance-attribute
a_brcr: Optional[float] = Field(0.76, description='Coefficient used in ICRIT=4,5 for calculating the breaking criterion.')
b_brcr
class-attribute
instance-attribute
b_brcr: Optional[float] = Field(0.29, description='Coefficient used in ICRIT=4,5 for calculating the breaking criterion.')
min_brcr
class-attribute
instance-attribute
min_brcr: Optional[float] = Field(0.25, description='Minimum value for the breaking criterion when ICRIT=4,5.')
max_brcr
class-attribute
instance-attribute
max_brcr: Optional[float] = Field(0.8, description='Maximum value for the breaking criterion when ICRIT=4,5.')
a_biph
class-attribute
instance-attribute
br_coef_method
class-attribute
instance-attribute
br_coef_method: Optional[int] = Field(1, description='Method for determining the breaking coefficient. 1 for constant, 2 for adaptive.')
b_alp
class-attribute
instance-attribute
b_alp: Optional[float] = Field(0.5, description='Breaking coefficient. If BR_COEF_METHOD = 2, B_ALP should be around 40.')
zprof_break
class-attribute
instance-attribute
zprof_break: Optional[int] = Field(2, description='Specifies the vertical distribution function of the wave breaking source term in 3D runs. Options 1-6 represent different distribution functions.')
bc_break
class-attribute
instance-attribute
bc_break: Optional[int] = Field(1, description='Controls the application of depth-limited breaking at boundaries. 1 to enable, 0 to disable.')
iroller
class-attribute
instance-attribute
iroller: Optional[int] = Field(0, description='Enables (1) or disables (0) the wave roller model. Currently not in use.')
alprol
class-attribute
instance-attribute
alprol: Optional[float] = Field(0.85, description='Alpha coefficient for the wave roller model, determining the energy transfer to the roller. Range: 0 to 1.')
meveg
class-attribute
instance-attribute
meveg: Optional[int] = Field(0, description='Enables (1) or disables (0) vegetation effects. If enabled, isav must be 1 in param.nml.')
lmaxetot
class-attribute
instance-attribute
lmaxetot: Optional[bool] = Field(True, description='Controls the use of wave breaking limiter to limit shallow water wave height. True to enable, False to disable.')
mesds
class-attribute
instance-attribute
mesds: Optional[int] = Field(1, description='Specifies the formulation for the whitecapping source function. Should have the same value as MESIN.')
mestr
class-attribute
instance-attribute
mestr: Optional[int] = Field(1, description='Selects the formulation for triad 3 wave interactions. 0 (off), 1 (Lumped Triad Approx.), 2 (corrected LTA by Salmon et al. (2016)).')
trico
class-attribute
instance-attribute
trico: Optional[float] = Field(0.1, description='Proportionality constant (α_EB) for triad interactions. Default is 0.1.')
trira
class-attribute
instance-attribute
trira: Optional[float] = Field(2.5, description='Ratio of maximum frequency considered in triads over mean frequency. Suggested value is 2.5.')
triurs
class-attribute
instance-attribute
triurs: Optional[float] = Field(0.1, description='Critical Ursell number for triad computations. Triads are not computed if Ursell number < TRIURS.')
Functions
validate_mesnl
classmethod
validate_mesin
classmethod
validate_ifric
classmethod
Source code in rompy_schism/namelists/wwminput.py
validate_mesbf
classmethod
validate_fricc
classmethod
validate_mesbr
classmethod
validate_ibreak
classmethod
validate_icrit
classmethod
validate_brcr
classmethod
Source code in rompy_schism/namelists/wwminput.py
validate_br_coef_method
classmethod
validate_b_alp
classmethod
validate_zprof_break
classmethod
validate_bc_break
classmethod
validate_iroller
classmethod
validate_alprol
classmethod
validate_meveg
classmethod
validate_mesds
classmethod
Grid
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | |
Attributes
lcird
class-attribute
instance-attribute
lcird: Optional[bool] = Field(True, description='Flag to indicate if a full circle in directional space is used. If True, MINDIR and MAXDIR are ignored.')
lstag
class-attribute
instance-attribute
lstag: Optional[bool] = Field(False, description='Flag to stagger directional bins with a half Dtheta. Can only be True for regular grids to avoid characteristic line aligning with grid line.')
mindir
class-attribute
instance-attribute
mindir: Optional[float] = Field(0.0, description='Minimum direction for simulation in degrees (nautical convention; 0: from N; 90: from E). Not used if LCIRD is True.')
maxdir
class-attribute
instance-attribute
maxdir: Optional[float] = Field(360.0, description='Maximum direction for simulation in degrees. May be less than MINDIR. Not used if LCIRD is True.')
mdc
class-attribute
instance-attribute
frlow
class-attribute
instance-attribute
frlow: Optional[float] = Field(0.04, description='Low frequency limit of the discrete wave period in Hz (1/period)')
frhigh
class-attribute
instance-attribute
frhigh: Optional[float] = Field(1.0, description='High frequency limit of the discrete wave period in Hz')
msc
class-attribute
instance-attribute
filegrid
class-attribute
instance-attribute
filegrid: Optional[str] = Field('hgrid_WWM.gr3', description="Name of the grid file. Should be 'hgridi_WWM.gr3' if IGRIDTYPE is 3 (SCHISM)")
igridtype
class-attribute
instance-attribute
igridtype: Optional[int] = Field(3, description='Grid type used. 1: XFN system.dat, 2: WWM-PERIODIC, 3: SCHISM, 4: old WWM type')
lslop
class-attribute
instance-attribute
slmax
class-attribute
instance-attribute
lvar1d
class-attribute
instance-attribute
lvar1d: Optional[bool] = Field(False, description='Flag to use variable dx in 1D mode. Not used with SCHISM (IGRIDTYPE = 3)')
loptsig
class-attribute
instance-attribute
loptsig: Optional[bool] = Field(False, description='Flag to use optimal distributions of frequencies in spectral space (fi+1 = fi * 1.1)')
Functions
validate_lcird
validate_lstag
validate_mindir
validate_maxdir
validate_mdc
validate_frlow
validate_frhigh
validate_msc
validate_filegrid
validate_igridtype
validate_lslop
validate_slmax
validate_lvar1d
History
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 | |
Attributes
begtc
class-attribute
instance-attribute
begtc: Optional[str] = Field('20200101.000000', description="Start output time in 'yyyymmdd.hhmmss' format. Must fit within the simulation time, otherwise no output. Defaults to PROC%BEGTC if not specified.")
deltc
class-attribute
instance-attribute
deltc: Optional[int] = Field(3600, description='Time step for output in seconds. If smaller than simulation time step, the latter is used. Used for better 1D and 2D spectra analysis.')
unitc
class-attribute
instance-attribute
unitc: Optional[str] = Field('SEC', description="Unit of time for DELTC. Currently only supports 'SEC' for seconds.")
endtc
class-attribute
instance-attribute
endtc: Optional[str] = Field('20200201.000000', description="Stop time for output in 'yyyymmdd.hhmmss' format. Defaults to PROC%ENDC if not specified.")
definetc
class-attribute
instance-attribute
definetc: Optional[int] = Field(-1, description='Time scoop (in seconds) for history files. If negative or unset, only one file is generated. For example, 86400 creates daily output files.')
outstyle
class-attribute
instance-attribute
outstyle: Optional[str] = Field('NO', description="Output option. 'NO' for no output, 'NC' for netCDF, 'XFN' for XFN (default), 'SHP' for DARKO SHP output.")
multipleout
class-attribute
instance-attribute
multipleout: Optional[int] = Field(0, description='Output file configuration. 0 for single netCDF file using MPI_reduce (default), 1 for separate netCDF files for each process.')
use_single_out
class-attribute
instance-attribute
use_single_out: Optional[bool] = Field(True, description='Use single precision in the output of model variables. True by default.')
paramwrite
class-attribute
instance-attribute
paramwrite: Optional[bool] = Field(True, description='Write the physical parametrization and chosen numerical method in the netCDF file. True by default.')
gridwrite
class-attribute
instance-attribute
gridwrite: Optional[bool] = Field(True, description='Write the grid in the netCDF history file. True by default.')
printmma
class-attribute
instance-attribute
printmma: Optional[bool] = Field(False, description='Print minimum, maximum and average value of statistics during runtime. Requires MPI_REDUCE. False by default.')
fileout
class-attribute
instance-attribute
hs
class-attribute
instance-attribute
tm01
class-attribute
instance-attribute
tm02
class-attribute
instance-attribute
klm
class-attribute
instance-attribute
wlm
class-attribute
instance-attribute
etotc
class-attribute
instance-attribute
etots
class-attribute
instance-attribute
dm
class-attribute
instance-attribute
dspr
class-attribute
instance-attribute
tppd
class-attribute
instance-attribute
tppd: Optional[bool] = Field(False, description='Output direction of the peak (check source code for details).')
tpp
class-attribute
instance-attribute
cpp
class-attribute
instance-attribute
wnpp
class-attribute
instance-attribute
cgpp
class-attribute
instance-attribute
kpp
class-attribute
instance-attribute
lpp
class-attribute
instance-attribute
peakd
class-attribute
instance-attribute
peakdspr
class-attribute
instance-attribute
dpeak
class-attribute
instance-attribute
ubot
class-attribute
instance-attribute
orbital
class-attribute
instance-attribute
botexper
class-attribute
instance-attribute
tmbot
class-attribute
instance-attribute
ursell
class-attribute
instance-attribute
ufric
class-attribute
instance-attribute
z0
class-attribute
instance-attribute
alpha_ch
class-attribute
instance-attribute
windx
class-attribute
instance-attribute
windy
class-attribute
instance-attribute
cd
class-attribute
instance-attribute
currtx
class-attribute
instance-attribute
currty
class-attribute
instance-attribute
watlev
class-attribute
instance-attribute
watlevold
class-attribute
instance-attribute
depdt
class-attribute
instance-attribute
dep
class-attribute
instance-attribute
tauw
class-attribute
instance-attribute
tauhf
class-attribute
instance-attribute
tautot
class-attribute
instance-attribute
stokessurfx
class-attribute
instance-attribute
stokessurfx: Optional[bool] = Field(True, description='Output surface Stokes drift in X direction.')
stokessurfy
class-attribute
instance-attribute
stokessurfy: Optional[bool] = Field(True, description='Output surface Stokes drift in Y direction.')
stokesbarox
class-attribute
instance-attribute
stokesbarox: Optional[bool] = Field(False, description='Output barotropic Stokes drift in X direction.')
stokesbaroy
class-attribute
instance-attribute
stokesbaroy: Optional[bool] = Field(False, description='Output barotropic Stokes drift in Y direction.')
rsxx
class-attribute
instance-attribute
rsxy
class-attribute
instance-attribute
rsyy
class-attribute
instance-attribute
cfl1
class-attribute
instance-attribute
cfl2
class-attribute
instance-attribute
cfl3
class-attribute
instance-attribute
Functions
validate_begtc
classmethod
validate_deltc
classmethod
validate_unitc
classmethod
validate_endtc
classmethod
validate_definetc
classmethod
validate_outstyle
classmethod
Source code in rompy_schism/namelists/wwminput.py
validate_multipleout
classmethod
validate_use_single_out
classmethod
validate_paramwrite
classmethod
validate_gridwrite
classmethod
validate_printmma
classmethod
validate_fileout
classmethod
validate_hs
classmethod
validate_tm01
classmethod
validate_tm02
classmethod
validate_klm
classmethod
validate_wlm
classmethod
validate_etotc
classmethod
validate_etots
classmethod
validate_dm
classmethod
validate_dspr
classmethod
validate_tppd
classmethod
validate_tpp
classmethod
validate_cpp
classmethod
validate_wnpp
classmethod
validate_cgpp
classmethod
validate_kpp
classmethod
validate_lpp
classmethod
validate_peakd
classmethod
validate_peakdspr
classmethod
validate_dpeak
classmethod
validate_ubot
classmethod
validate_orbital
classmethod
validate_botexper
classmethod
validate_tmbot
classmethod
validate_ursell
classmethod
validate_ufric
classmethod
validate_z0
classmethod
validate_alpha_ch
classmethod
validate_windx
classmethod
validate_windy
classmethod
validate_cd
classmethod
validate_currtx
classmethod
validate_currty
classmethod
validate_watlev
classmethod
validate_watlevold
classmethod
validate_depdt
classmethod
validate_dep
classmethod
validate_tauw
classmethod
validate_tauhf
classmethod
validate_tautot
classmethod
validate_stokessurfx
classmethod
validate_stokessurfy
classmethod
validate_stokesbarox
classmethod
validate_stokesbaroy
classmethod
validate_rsxx
classmethod
validate_rsxy
classmethod
validate_rsyy
classmethod
validate_cfl1
classmethod
validate_cfl2
classmethod
Hotfile
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
Attributes
lhotf
class-attribute
instance-attribute
filehot_out
class-attribute
instance-attribute
begtc
class-attribute
instance-attribute
begtc: Optional[str] = Field('20200101.000000', description='Starting time of hotfile writing. With ihot!=0 in SCHISM,')
deltc
class-attribute
instance-attribute
unitc
class-attribute
instance-attribute
endtc
class-attribute
instance-attribute
endtc: Optional[str] = Field('20200201.000000', description='Ending time of hotfile writing (adjust with BEGTC)')
lcyclehot
class-attribute
instance-attribute
hotstyle_out
class-attribute
instance-attribute
multipleout
class-attribute
instance-attribute
filehot_in
class-attribute
instance-attribute
filehot_in: Optional[str] = Field('wwm_hot_in.nc', description='(Full) hot file name for input (which can be copied from FILEHOT_OUT above)')
hotstyle_in
class-attribute
instance-attribute
ihotpos_in
class-attribute
instance-attribute
Init
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
Attributes
lhotr
class-attribute
instance-attribute
lhotr: Optional[bool] = Field(False, description='Flag to indicate whether to use a hotstart file for initial conditions. If True, the model will read initial conditions from a file specified in the HOTFILE section.')
linid
class-attribute
instance-attribute
linid: Optional[bool] = Field(True, description='Flag to control the initial condition setup. If False, default initial conditions are used. If True, it allows for using external sources (e.g., WW3) as initial conditions.')
initstyle
class-attribute
instance-attribute
initstyle: Optional[int] = Field(2, description='Specifies the method for initializing wave conditions. 1 for Parametric Jonswap, 2 for reading from Global NETCDF files. Option 2 only works if IBOUNDFORMAT is set to 3.')
Functions
check_init
Nesting
Nums
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 | |
Attributes
icomp
class-attribute
instance-attribute
icomp: Optional[int] = Field(3, description='Controls the integration scheme for splitting and advection. 0: All explicit. 1: Implicit geographical advection. 2: Implicit advection and semi-implicit source terms. 3: Fully implicit, no splitting.')
amethod
class-attribute
instance-attribute
amethod: Optional[int] = Field(7, description='Controls the advection method in geographical space. Values 0-7 represent different schemes, including explicit, implicit, and PETSc-based methods.')
smethod
class-attribute
instance-attribute
smethod: Optional[int] = Field(6, description='Controls the integration method for source terms. 0: No source terms. 1-6: Various splitting and integration schemes.')
dmethod
class-attribute
instance-attribute
dmethod: Optional[int] = Field(2, description='Controls the numerical method in directional space. 0: No advection. 1-4: Various schemes including Crank-Nicholson, Ultimate Quickest, RK5-WENO, and Explicit FVM Upwind.')
rtheta
class-attribute
instance-attribute
rtheta: Optional[float] = Field(0.5, description='Weighing factor for DMETHOD = 1. Only useful for Crank Nicholson integration with CFL <= 2.')
litersplit
class-attribute
instance-attribute
litersplit: Optional[bool] = Field(False, description='Splitting method. True: double Strang split. False: simple split (more efficient).')
lfilterth
class-attribute
instance-attribute
lfilterth: Optional[bool] = Field(False, description='Use a CFL filter to limit the advection velocity in directional space. Similar to WW3, but mostly unused as WWMII is always stable.')
maxcflth
class-attribute
instance-attribute
maxcflth: Optional[float] = Field(1.0, description='Maximum CFL number in Theta space. Used only if LFILTERTH=True.')
fmethod
class-attribute
instance-attribute
fmethod: Optional[int] = Field(1, description='Controls the numerical method in frequency space. 0: No advection. 1: Ultimate Quickest as in WW3 (best).')
lfiltersig
class-attribute
instance-attribute
lfiltersig: Optional[bool] = Field(False, description='Limit the advection velocity in frequency space. Usually False.')
maxcflsig
class-attribute
instance-attribute
maxcflsig: Optional[float] = Field(1.0, description='Maximum CFL number in frequency space. Used only if LFILTERSIG=True.')
llimt
class-attribute
instance-attribute
llimt: Optional[bool] = Field(True, description='Switch on/off Action limiter. Must mostly be turned on.')
melim
class-attribute
instance-attribute
melim: Optional[int] = Field(1, description='Formulation for the action limiter. 1: WAM group (1988). 2: Hersbach Janssen (1999). 3: For Cycle 4 formulation.')
limfak
class-attribute
instance-attribute
limfak: Optional[float] = Field(0.1, description='Proportionality coefficient for the action limiter. MAX_DAC_DT = Limfak * Limiter.')
ldifr
class-attribute
instance-attribute
ldifr: Optional[bool] = Field(False, description='Use phase decoupled diffraction approximation. Usually True; if crash, use False.')
idiffr
class-attribute
instance-attribute
idiffr: Optional[int] = Field(1, description='Extended WAE accounting for higher order effects. 1: Holthuijsen et al. 2: Liau et al. 3: Toledo et al.')
lconv
class-attribute
instance-attribute
lconv: Optional[bool] = Field(False, description='Estimate convergence criteria and write to disk (quasi-steady - qstea.out).')
lcfl
class-attribute
instance-attribute
nqsiter
class-attribute
instance-attribute
nqsiter: Optional[int] = Field(1, description='Number of quasi-steady (Q-S) sub-divisions within each WWM time step.')
qsconv1
class-attribute
instance-attribute
qsconv1: Optional[float] = Field(0.98, description='Fraction of grid points that must fulfill absolute wave height criteria EPSH1.')
qsconv2
class-attribute
instance-attribute
qsconv2: Optional[float] = Field(0.98, description='Fraction of grid points that must fulfill relative wave height criteria EPSH2.')
qsconv3
class-attribute
instance-attribute
qsconv3: Optional[float] = Field(0.98, description='Fraction of grid points that must fulfill sum. rel. wave action criteria EPSH3.')
qsconv4
class-attribute
instance-attribute
qsconv4: Optional[float] = Field(0.98, description='Fraction of grid points that must fulfill rel. avg. wave steepness criteria EPSH4.')
qsconv5
class-attribute
instance-attribute
qsconv5: Optional[float] = Field(0.98, description='Fraction of grid points that must fulfill avg. rel. wave period criteria EPSH5.')
lexpimp
class-attribute
instance-attribute
lexpimp: Optional[bool] = Field(False, description='Use implicit schemes for frequencies lower than FREQEXP. Used only if ICOMP=0.')
freqexp
class-attribute
instance-attribute
freqexp: Optional[float] = Field(0.1, description='Minimum frequency for explicit schemes. Only used if LEXPIMP=True and ICOMP=0.')
epsh1
class-attribute
instance-attribute
epsh2
class-attribute
instance-attribute
epsh3
class-attribute
instance-attribute
epsh3: Optional[float] = Field(0.01, description='Convergence criteria for the relative sum of wave action.')
epsh4
class-attribute
instance-attribute
epsh4: Optional[float] = Field(0.01, description='Convergence criteria for the relative average wave steepness.')
epsh5
class-attribute
instance-attribute
epsh5: Optional[float] = Field(0.01, description='Convergence criteria for the relative average wave period.')
lvector
class-attribute
instance-attribute
lvector: Optional[bool] = Field(False, description='Use optimized propagation routines for large high performance computers. Try False first.')
ivector
class-attribute
instance-attribute
ivector: Optional[int] = Field(2, description='Used if LVECTOR=True. Different flavors of communications and propagation styles.')
ladvtest
class-attribute
instance-attribute
lchkconv
class-attribute
instance-attribute
lchkconv: Optional[bool] = Field(False, description='Needs to be set to True for quasi-steady mode to compute and check the QSCONVi criteria.')
dtmin_dyn
class-attribute
instance-attribute
dtmin_dyn: Optional[float] = Field(1.0, description='Minimum time step (seconds) for dynamic integration. Controls the smallest time step for triads in SMETHOD.')
ndyniter
class-attribute
instance-attribute
ndyniter: Optional[int] = Field(100, description='Maximum iterations for dynamic scheme before limiter is applied in the last step.')
dtmin_sin
class-attribute
instance-attribute
dtmin_sin: Optional[float] = Field(1.0, description='Minimum time step for the full fractional step method, where each source term is integrated with its own fractional step.')
dtmin_snl4
class-attribute
instance-attribute
dtmin_snl4: Optional[float] = Field(1.0, description='Minimum time step for SNL4 source term in fractional step method.')
dtmin_sds
class-attribute
instance-attribute
dtmin_sds: Optional[float] = Field(1.0, description='Minimum time step for SDS source term in fractional step method.')
dtmin_snl3
class-attribute
instance-attribute
dtmin_snl3: Optional[float] = Field(1.0, description='Minimum time step for SNL3 source term in fractional step method.')
dtmin_sbr
class-attribute
instance-attribute
dtmin_sbr: Optional[float] = Field(0.1, description='Minimum time step for SBR source term in fractional step method.')
dtmin_sbf
class-attribute
instance-attribute
dtmin_sbf: Optional[float] = Field(1.0, description='Minimum time step for SBF source term in fractional step method.')
ndyniter_sin
class-attribute
instance-attribute
ndyniter_sin: Optional[int] = Field(10, description='Maximum iterations for SIN source term in fractional step approach.')
ndyniter_snl4
class-attribute
instance-attribute
ndyniter_snl4: Optional[int] = Field(10, description='Maximum iterations for SNL4 source term in fractional step approach.')
ndyniter_sds
class-attribute
instance-attribute
ndyniter_sds: Optional[int] = Field(10, description='Maximum iterations for SDS source term in fractional step approach.')
ndyniter_sbr
class-attribute
instance-attribute
ndyniter_sbr: Optional[int] = Field(10, description='Maximum iterations for SBR source term in fractional step approach.')
ndyniter_snl3
class-attribute
instance-attribute
ndyniter_snl3: Optional[int] = Field(10, description='Maximum iterations for SNL3 source term in fractional step approach.')
ndyniter_sbf
class-attribute
instance-attribute
ndyniter_sbf: Optional[int] = Field(10, description='Maximum iterations for SBF source term in fractional step approach.')
lsoubound
class-attribute
instance-attribute
lsoubound: Optional[bool] = Field(False, description='Do source terms on boundary. Useful for harbor studies and flume experiments.')
wae_solverthr
class-attribute
instance-attribute
wae_solverthr: Optional[float] = Field(1e-06, description='Threshold for the Block-Jacobi or Block-Gauss-Seider solver.')
maxiter
class-attribute
instance-attribute
pmin
class-attribute
instance-attribute
pmin: Optional[float] = Field(1.0, description='Maximum percentage of non-converged grid points allowed.')
lnaninfchk
class-attribute
instance-attribute
lnaninfchk: Optional[bool] = Field(False, description='Check for NaN and INF. Usually turned off for efficiency.')
lzeta_setup
class-attribute
instance-attribute
lzeta_setup: Optional[bool] = Field(False, description='Compute wave setup (simple momentum equation).')
zeta_meth
class-attribute
instance-attribute
lsourceswam
class-attribute
instance-attribute
lsourceswam: Optional[bool] = Field(False, description='Use ECMWF WAM formulation for deep water physics.')
block_gauss_seidel
class-attribute
instance-attribute
block_gauss_seidel: Optional[bool] = Field(True, description='Use Gauss-Seidel method on each computer block. Faster and uses less memory, but iterations depend on number of processors.')
lnonl
class-attribute
instance-attribute
lnonl: Optional[bool] = Field(False, description='Solve the nonlinear system using simpler algorithm (Patankar).')
aspar_local_level
class-attribute
instance-attribute
aspar_local_level: Optional[int] = Field(0, description='ASPAR locality level. Controls memory allocation and optimization strategies.')
l_solver_norm
class-attribute
instance-attribute
l_solver_norm: Optional[bool] = Field(False, description='Compute solver norm ||A*x-b|| as termination check of Jacobi-Gauss-Seidel solver. Increases cost if True.')
laccel
class-attribute
instance-attribute
Functions
check_icomp
classmethod
check_amethod
classmethod
check_smethod
classmethod
check_dmethod
classmethod
check_rtheta
classmethod
check_maxcflth
classmethod
check_fmethod
classmethod
check_maxcflsig
classmethod
check_melim
classmethod
check_limfak
classmethod
check_idiffr
classmethod
check_nqsiter
classmethod
check_qsconv1
classmethod
check_qsconv2
classmethod
check_qsconv3
classmethod
check_qsconv4
classmethod
check_qsconv5
classmethod
check_freqexp
classmethod
check_epsh1
classmethod
check_epsh2
classmethod
check_epsh3
classmethod
check_epsh4
classmethod
check_epsh5
classmethod
check_ivector
classmethod
check_dtmin_dyn
classmethod
check_ndyniter
classmethod
check_dtmin_sin
classmethod
check_dtmin_snl4
classmethod
check_dtmin_sds
classmethod
check_dtmin_snl3
classmethod
check_dtmin_sbr
classmethod
check_dtmin_sbf
classmethod
check_ndyniter_sin
classmethod
check_ndyniter_snl4
classmethod
check_ndyniter_sds
classmethod
check_ndyniter_sbr
classmethod
check_ndyniter_snl3
classmethod
check_ndyniter_sbf
classmethod
check_wae_solverthr
classmethod
check_maxiter
classmethod
check_pmin
classmethod
check_zeta_meth
classmethod
check_aspar_local_level
classmethod
Petscoptions
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 | |
Attributes
ksptype
class-attribute
instance-attribute
ksptype: Optional[str] = Field('LGMRES', description='Controls the linear solver type used by PETSc. Options include GMRES, LGMRES (augmented GMRES), DGMRES (deflated GMRES), PGMRES (pipelined GMRES), and KSPBCGSL (variant of Enhanced BiCGStab(L)).')
rtol
class-attribute
instance-attribute
rtol: Optional[float] = Field(1e-20, description='Relative convergence tolerance, representing the relative decrease in the residual norm for the iterative solver.')
abstol
class-attribute
instance-attribute
abstol: Optional[float] = Field(1e-20, description='Absolute convergence tolerance, representing the absolute size of the residual norm for the iterative solver.')
dtol
class-attribute
instance-attribute
dtol: Optional[float] = Field(10000.0, description='Divergence tolerance for the iterative solver.')
maxits
class-attribute
instance-attribute
maxits: Optional[int] = Field(1000, description='Maximum number of iterations allowed for the iterative solver.')
initialguessnonzero
class-attribute
instance-attribute
initialguessnonzero: Optional[bool] = Field(False, description='Boolean flag indicating whether the initial guess for the iterative solver is nonzero.')
gmrespreallocate
class-attribute
instance-attribute
gmrespreallocate: Optional[bool] = Field(True, description='Boolean flag indicating whether GMRES and FGMRES should preallocate all needed work vectors at initial setup.')
pctype
class-attribute
instance-attribute
pctype: Optional[str] = Field('SOR', description='Controls the preconditioner type used by PETSc. Options include SOR (successive over relaxation), ASM (additive Schwarz method), HYPRE (LLNL package), SPAI (Sparse Approximate Inverse), and NONE (no preconditioning).')
Functions
validate_ksptype
classmethod
Source code in rompy_schism/namelists/wwminput.py
validate_rtol
classmethod
validate_abstol
classmethod
validate_dtol
classmethod
validate_maxits
classmethod
validate_initialguessnonzero
classmethod
validate_gmrespreallocate
classmethod
validate_pctype
classmethod
Source code in rompy_schism/namelists/wwminput.py
Proc
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
Attributes
procname
class-attribute
instance-attribute
dimmode
class-attribute
instance-attribute
dimmode: Optional[int] = Field(2, description='Mode of run: 2 for 2D (always 2D when coupled to SCHISM)')
lstea
class-attribute
instance-attribute
lqstea
class-attribute
instance-attribute
lqstea: Optional[bool] = Field(False, description='Quasi-Steady Mode flag. If True, WWM-II performs subiterations defined as DELTC/NQSITER unless QSCONVI is reached')
lsphe
class-attribute
instance-attribute
lnautin
class-attribute
instance-attribute
lnautin: Optional[bool] = Field(True, description='Flag for nautical convention in input angles (degrees). Recommended to be True')
lnautout
class-attribute
instance-attribute
lnautout: Optional[bool] = Field(True, description='Flag for nautical convention in output angles. If True, 0 is from north, 90 is from east. If False, mathematical convention is used (0: to east, 90: to north)')
lmono_in
class-attribute
instance-attribute
lmono_in: Optional[bool] = Field(False, description='Flag for prescribing monochromatic wave height Hmono as boundary conditions. Incident wave is defined as Hmono = sqrt(2) * Hs')
lmono_out
class-attribute
instance-attribute
lmono_out: Optional[bool] = Field(False, description='Flag for outputting wave heights in terms of Lmono')
begtc
class-attribute
instance-attribute
begtc: Optional[str] = Field('20200101.000000', description="Start time of the simulation in format 'yyyymmdd.hhmmss'")
deltc
class-attribute
instance-attribute
deltc: Optional[int] = Field(600, description='Time step in seconds (must match dt*nstep_wwm in SCHISM)')
unitc
class-attribute
instance-attribute
endtc
class-attribute
instance-attribute
endtc: Optional[str] = Field('20200201.000000', description="End time of the simulation in format 'yyyymmdd.hhmmss'")
dmin
class-attribute
instance-attribute
dmin: Optional[float] = Field(0.01, description='Minimum water depth. Must be the same as h0 in SCHISM')
Functions
validate_procname
validate_dimmode
validate_lstea
validate_lqstea
validate_lsphe
validate_lnautin
validate_lnautout
validate_lmono_in
validate_lmono_out
validate_begtc
validate_deltc
validate_unitc
validate_endtc
Station
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 | |
Attributes
begtc
class-attribute
instance-attribute
begtc: Optional[str] = Field('20200101.000000', description="Start simulation time in 'yyyymmdd.hhmmss' format. Must fit the simulation time, otherwise no output is generated. Defaults to PROC%BEGTC if not specified.")
deltc
class-attribute
instance-attribute
deltc: Optional[int] = Field(3600, description='Time step for output in seconds. If smaller than simulation time step, the latter is used. Used for better 1D and 2D spectra analysis.')
unitc
class-attribute
instance-attribute
unitc: Optional[str] = Field('SEC', description="Time unit for DELTC. Only 'SEC' is currently supported.")
endtc
class-attribute
instance-attribute
endtc: Optional[str] = Field('20200201.000000', description="Stop time for simulation in 'yyyymmdd.hhmmss' format. Defaults to PROC%ENDC if not specified.")
definetc
class-attribute
instance-attribute
definetc: Optional[int] = Field(-1, description='Time for definition of station files in seconds. If negative or unset, only one file is generated. Otherwise, it defines the interval for creating output files (e.g., 86400 for daily files).')
outstyle
class-attribute
instance-attribute
outstyle: Optional[str] = Field('NC', description="Output option. 'NO' for no output, 'STE' for classic station output (default), 'NC' for netCDF output.")
multipleout
class-attribute
instance-attribute
multipleout: Optional[int] = Field(0, description='Output file configuration. 0 for a single netCDF file using MPI_reduce (default), 1 for separate netCDF files for each process.')
use_single_out
class-attribute
instance-attribute
use_single_out: Optional[bool] = Field(True, description='Use single precision in the output of model variables. True by default.')
paramwrite
class-attribute
instance-attribute
paramwrite: Optional[bool] = Field(True, description='Write the physical parametrization and chosen numerical method in the netCDF file. True by default.')
fileout
class-attribute
instance-attribute
loutiter
class-attribute
instance-attribute
iouts
class-attribute
instance-attribute
nouts
class-attribute
instance-attribute
nouts: Optional[list[str]] = Field(['BatemansBay', 'Brisbane', 'ByronBay', 'Cairns', 'CoffsHbr', 'CrowdyHead', 'Eden', 'HayPt', 'Mackay', 'PortKembla', 'Tsv', 'Mandurah'], description='Names of output stations.')
xouts
class-attribute
instance-attribute
xouts: Optional[list] = Field([150.31972, 153.63166, 153.745, 145.715167, 153.27722, 152.85333, 150.15833, 149.31025, 149.5467, 151.01667, 147.059333, 115.572227], description='Longitude coordinates of output stations.')
youts
class-attribute
instance-attribute
youts: Optional[list] = Field([-35.75528, -27.48716, -28.67167, -16.7305, -30.34361, -31.82694, -37.175, -21.2715, -21.037333, -34.46694, -19.159167, -32.452787], description='Latitude coordinates of output stations.')
cutoff
class-attribute
instance-attribute
cutoff: Optional[float] = Field(0.0, description='Cutoff frequency (Hz) for each station, consistent with buoys.')
lsp1d
class-attribute
instance-attribute
lsp2d
class-attribute
instance-attribute
lsigmax
class-attribute
instance-attribute
lsigmax: Optional[bool] = Field(True, description='Adjust the cut-off frequency for the output (e.g., consistent with buoy cut-off frequency).')
ac
class-attribute
instance-attribute
wk
class-attribute
instance-attribute
acout_1d
class-attribute
instance-attribute
acout_2d
class-attribute
instance-attribute
hs
class-attribute
instance-attribute
tm01
class-attribute
instance-attribute
tm02
class-attribute
instance-attribute
klm
class-attribute
instance-attribute
wlm
class-attribute
instance-attribute
etotc
class-attribute
instance-attribute
etots
class-attribute
instance-attribute
dm
class-attribute
instance-attribute
dspr
class-attribute
instance-attribute
tppd
class-attribute
instance-attribute
tpp
class-attribute
instance-attribute
cpp
class-attribute
instance-attribute
wnpp
class-attribute
instance-attribute
cgpp
class-attribute
instance-attribute
kpp
class-attribute
instance-attribute
lpp
class-attribute
instance-attribute
peakd
class-attribute
instance-attribute
peakdspr
class-attribute
instance-attribute
dpeak
class-attribute
instance-attribute
ubot
class-attribute
instance-attribute
orbital
class-attribute
instance-attribute
botexper
class-attribute
instance-attribute
tmbot
class-attribute
instance-attribute
ursell
class-attribute
instance-attribute
ufric
class-attribute
instance-attribute
z0
class-attribute
instance-attribute
alpha_ch
class-attribute
instance-attribute
windx
class-attribute
instance-attribute
windy
class-attribute
instance-attribute
cd
class-attribute
instance-attribute
currtx
class-attribute
instance-attribute
currty
class-attribute
instance-attribute
watlev
class-attribute
instance-attribute
watlevold
class-attribute
instance-attribute
depdt
class-attribute
instance-attribute
dep
class-attribute
instance-attribute
tauw
class-attribute
instance-attribute
tauhf
class-attribute
instance-attribute
tautot
class-attribute
instance-attribute
stokessurfx
class-attribute
instance-attribute
stokessurfx: Optional[bool] = Field(True, description='Output surface Stokes drift in X direction.')
stokessurfy
class-attribute
instance-attribute
stokessurfy: Optional[bool] = Field(True, description='Output surface Stokes drift in Y direction.')
stokesbarox
class-attribute
instance-attribute
stokesbarox: Optional[bool] = Field(False, description='Output barotropic Stokes drift in X direction.')
stokesbaroy
class-attribute
instance-attribute
stokesbaroy: Optional[bool] = Field(False, description='Output barotropic Stokes drift in Y direction.')
rsxx
class-attribute
instance-attribute
rsxy
class-attribute
instance-attribute
rsyy
class-attribute
instance-attribute
cfl1
class-attribute
instance-attribute
cfl2
class-attribute
instance-attribute
cfl3
class-attribute
instance-attribute
Functions
validate_begtc
validate_deltc
validate_unitc
validate_endtc
validate_definetc
validate_outstyle
validate_multipleout
validate_iouts
validate_nouts
validate_xouts
validate_youts
Wwminput
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/wwminput.py
Attributes
history
class-attribute
instance-attribute
station
class-attribute
instance-attribute
hotfile
class-attribute
instance-attribute
petscoptions
class-attribute
instance-attribute
petscoptions: Optional[Petscoptions] = Field(default_factory=Petscoptions)
nesting
class-attribute
instance-attribute
Functions
NML
This is the full namelist object that is the container for all the other namelist objects.
NML
Bases: NamelistBaseModel
Source code in rompy_schism/namelists/schism.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | |
Attributes
param
class-attribute
instance-attribute
param: Optional[Param] = Field(description='Model paramaters', default=None)
ice
class-attribute
instance-attribute
ice: Optional[Ice] = Field(description='Ice model parameters', default=None)
icm
class-attribute
instance-attribute
icm: Optional[Icm] = Field(description='Icm model parameters', default=None)
mice
class-attribute
instance-attribute
mice: Optional[Mice] = Field(description='Mice model parameters', default=None)
sediment
class-attribute
instance-attribute
sediment: Optional[Sediment] = Field(description='Sediment model parameters', default=None)
cosine
class-attribute
instance-attribute
cosine: Optional[Cosine] = Field(description='Cosine model parameters', default=None)
wwminput
class-attribute
instance-attribute
wwminput: Optional[Wwminput] = Field(description='Wave model input parameters', default=None)
Functions
serialize_model
Custom serializer to handle proper serialization of namelist components.
Source code in rompy_schism/namelists/schism.py
update_times
This class is used to set consistent time parameters in a group component by
redefining existing times component attribute based on the period field.
Source code in rompy_schism/namelists/schism.py
update_data_sources
Update the data sources in the namelist based on rompy data preparation.
Source code in rompy_schism/namelists/schism.py
write_nml
Config Object
SCHISMConfig
Bases: BaseConfig
Source code in rompy_schism/config.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | |
Attributes
model_type
class-attribute
instance-attribute
data
class-attribute
instance-attribute
data: Optional[SCHISMData] = Field(None, description='Model inputs')
nml
class-attribute
instance-attribute
template
class-attribute
instance-attribute
template: Optional[str] = Field(description='The path to the model template', default=SCHISM_TEMPLATE)
model_config
class-attribute
instance-attribute
plot_sflux_timeseries
class-attribute
instance-attribute
plot_sflux_timeseries = plot_sflux_timeseries
plot_boundary_timeseries
class-attribute
instance-attribute
plot_boundary_timeseries = plot_boundary_timeseries
plot_boundary_profile
class-attribute
instance-attribute
plot_boundary_profile = plot_boundary_profile
plot_tidal_boundaries
class-attribute
instance-attribute
plot_tidal_boundaries = plot_tidal_boundaries
Functions
check_hotstart
Source code in rompy_schism/config.py
serialize_model
Custom serializer to handle proper serialization of nested components.