|
YAC 3.13.2
Yet Another Coupler
|
Initializies a YAC instance and provides further functionality. More...

Public Member Functions | |
| __init__ (self, comm=None, default_instance=False) | |
| default_instance_id_defined (cls) | |
| default_instance (cls) | |
| from_id (cls, id) | |
| __del__ (self) | |
| cleanup (self) | |
| size (self) | |
| number of processes in this instance | |
| rank (self) | |
| process index in this instance | |
| def_comp (self, str comp_name) | |
| def_comps (self, comp_names=[]) | |
| predef_comp (self, str comp_name) | |
| def_datetime (self, start_datetime, end_datetime) | |
| start_datetime (self) | |
| end_datetime (self) | |
| sync_def (self) | |
| def_couple (self, str src_comp, str src_grid, src_field, str tgt_comp, str tgt_grid, tgt_field, str coupling_timestep, TimeUnit timeunit, Reduction time_reduction, interp_stack, src_lag=0, tgt_lag=0, weight_file=None, WeightFileOnExisting weight_file_on_existing=WeightFileOnExisting.OVERWRITE, mapping_on_source=1, scale_factor=1.0, scale_summand=0.0, src_masks_names=None, tgt_mask_name=None, yaxt_exchanger_name=None, collection_selection=None, use_raw_exchange=False) | |
| enddef (self) | |
| component_names (self) | |
| grid_names (self) | |
| get_comp_grid_names (self, comp_name) | |
| get_field_names (self, str comp_name, str grid_name) | |
| get_field_is_defined (self, str comp_name, str grid_name, str field_name) | |
| get_field_id (self, str comp_name, str grid_name, str field_name) | |
| get_field_timestep (self, str comp_name, str grid_name, str field_name) | |
| get_field_role (self, str comp_name, str grid_name, str field_name) | |
| get_field_source (self, str comp_name, str grid_name, str field_name) | |
| get_field_collection_size (self, str comp_name, str grid_name, str field_name) | |
| get_field_frac_mask_fallback_value (self, str comp_name, str grid_name, str field_name) | |
| enable_field_frac_mask (self, str comp_name, str grid_name, str field_name, _np.float64 frac_mask_fallback_value) | |
| def_component_metadata (self, str comp_name, bytes metadata) | |
| def_grid_metadata (self, str grid_name, bytes metadata) | |
| def_field_metadata (self, str comp_name, str grid_name, str field_name, bytes metadata) | |
| get_component_metadata (self, str comp_name) | |
| get_grid_metadata (self, str grid_name) | |
| get_field_metadata (self, str comp_name, str grid_name, str field_name) | |
| get_comps_comm (self, comp_names) | |
| read_config_yaml (self, str yaml_file) | |
| set_config_output_file (self, str filename, ConfigOutputFormat fileformat, ConfigOutputSyncLoc sync_location, bool include_definitions=False) | |
| set_grid_output_file (self, str gridname, str filename) | |
Data Fields | |
| instance_id | |
| owned_instance | |
| default_instance_id_defined | |
Initializies a YAC instance and provides further functionality.
The destructor finalizes the YAC instance by calling yac_cfinalize_instance
| yac.YAC.__init__ | ( | self, | |
| comm = None, | |||
| default_instance = False ) |
Definition at line 699 of file yac.pyx.

| yac.YAC.__del__ | ( | self | ) |
| yac.YAC.cleanup | ( | self | ) |
Definition at line 759 of file yac.pyx.


| yac.YAC.component_names | ( | self | ) |
Definition at line 957 of file yac.pyx.

| yac.YAC.def_comp | ( | self, | |
| str | comp_name ) |
Definition at line 786 of file yac.pyx.

| yac.YAC.def_component_metadata | ( | self, | |
| str | comp_name, | ||
| bytes | metadata ) |
Definition at line 1087 of file yac.pyx.

| yac.YAC.def_comps | ( | self, | |
| comp_names = [] ) |
Definition at line 796 of file yac.pyx.

| yac.YAC.def_couple | ( | self, | |
| str | src_comp, | ||
| str | src_grid, | ||
| src_field, | |||
| str | tgt_comp, | ||
| str | tgt_grid, | ||
| tgt_field, | |||
| str | coupling_timestep, | ||
| TimeUnit | timeunit, | ||
| Reduction | time_reduction, | ||
| interp_stack, | |||
| src_lag = 0, | |||
| tgt_lag = 0, | |||
| weight_file = None, | |||
| WeightFileOnExisting | weight_file_on_existing = WeightFileOnExisting.OVERWRITE, | ||
| mapping_on_source = 1, | |||
| scale_factor = 1.0, | |||
| scale_summand = 0.0, | |||
| src_masks_names = None, | |||
| tgt_mask_name = None, | |||
| yaxt_exchanger_name = None, | |||
| collection_selection = None, | |||
| use_raw_exchange = False ) |
Definition at line 877 of file yac.pyx.

| yac.YAC.def_datetime | ( | self, | |
| start_datetime, | |||
| end_datetime ) |
The parameters can be given either as a string in iso8601 format or as datetime objects
| yac.YAC.def_field_metadata | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name, | ||
| bytes | metadata ) |
Definition at line 1103 of file yac.pyx.

| yac.YAC.def_grid_metadata | ( | self, | |
| str | grid_name, | ||
| bytes | metadata ) |
Definition at line 1095 of file yac.pyx.

| yac.YAC.default_instance | ( | cls | ) |
| yac.YAC.default_instance_id_defined | ( | cls | ) |
| yac.YAC.enable_field_frac_mask | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name, | ||
| _np.float64 | frac_mask_fallback_value ) |
Definition at line 1075 of file yac.pyx.

| yac.YAC.end_datetime | ( | self | ) |
datetime.datetime, read-only). Definition at line 863 of file yac.pyx.

| yac.YAC.enddef | ( | self | ) |
Definition at line 949 of file yac.pyx.

| yac.YAC.get_comp_grid_names | ( | self, | |
| comp_name ) |
Definition at line 980 of file yac.pyx.

| yac.YAC.get_component_metadata | ( | self, | |
| str | comp_name ) |
Definition at line 1114 of file yac.pyx.

| yac.YAC.get_comps_comm | ( | self, | |
| comp_names ) |
Definition at line 1140 of file yac.pyx.

| yac.YAC.get_field_collection_size | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
Definition at line 1057 of file yac.pyx.

| yac.YAC.get_field_frac_mask_fallback_value | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
| yac.YAC.get_field_id | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
| yac.YAC.get_field_is_defined | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
| yac.YAC.get_field_metadata | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
Definition at line 1130 of file yac.pyx.

| yac.YAC.get_field_names | ( | self, | |
| str | comp_name, | ||
| str | grid_name ) |
Definition at line 991 of file yac.pyx.

| yac.YAC.get_field_role | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
| yac.YAC.get_field_source | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
| yac.YAC.get_field_timestep | ( | self, | |
| str | comp_name, | ||
| str | grid_name, | ||
| str | field_name ) |
Definition at line 1023 of file yac.pyx.

| yac.YAC.get_grid_metadata | ( | self, | |
| str | grid_name ) |
Definition at line 1122 of file yac.pyx.

| yac.YAC.grid_names | ( | self | ) |
Definition at line 969 of file yac.pyx.

| yac.YAC.predef_comp | ( | self, | |
| str | comp_name ) |
Definition at line 814 of file yac.pyx.

| yac.YAC.rank | ( | self | ) |
| yac.YAC.read_config_yaml | ( | self, | |
| str | yaml_file ) |
Definition at line 1155 of file yac.pyx.

| yac.YAC.set_config_output_file | ( | self, | |
| str | filename, | ||
| ConfigOutputFormat | fileformat, | ||
| ConfigOutputSyncLoc | sync_location, | ||
| bool | include_definitions = False ) |
| yac.YAC.set_grid_output_file | ( | self, | |
| str | gridname, | ||
| str | filename ) |
| yac.YAC.size | ( | self | ) |
| yac.YAC.start_datetime | ( | self | ) |
datetime.datetime, read-only). Definition at line 855 of file yac.pyx.

| yac.YAC.sync_def | ( | self | ) |
Definition at line 870 of file yac.pyx.
