subscript.grav_subs_points.grav_subs_points

class subscript.grav_subs_points.grav_subs_points.GravPointsCalc(**data)
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'phases': FieldInfo(annotation=List[str], required=True), 'poisson_ratio': FieldInfo(annotation=float, required=True, metadata=[Strict(strict=True), Ge(ge=0), Le(le=0.5)])}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class subscript.grav_subs_points.grav_subs_points.GravPointsConfig(**data)
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'calculations': FieldInfo(annotation=GravPointsCalc, required=True), 'input': FieldInfo(annotation=GravPointsInput, required=True), 'stations': FieldInfo(annotation=GravPointsStations, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class subscript.grav_subs_points.grav_subs_points.GravPointsInput(**data)
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'diffdates': FieldInfo(annotation=List[Tuple[datetime.date, datetime.date]], required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class subscript.grav_subs_points.grav_subs_points.GravPointsStations(**data)
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'grav': FieldInfo(annotation=Dict[str, Annotated[pathlib.Path, PathType(path_type='file')]], required=True), 'subs': FieldInfo(annotation=Dict[str, Annotated[pathlib.Path, PathType(path_type='file')]], required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

subscript.grav_subs_points.grav_subs_points.export_grav_points_ert(act_stations, diff_date, out_folder, pref_gendata, ext_gendata)

Export for ert for each diffdate, only total, not per phase

Return type:

None

subscript.grav_subs_points.grav_subs_points.export_grav_points_xyz(act_stations, phase, diff_date, out_folder)

Write points in xyz format, roxar.FileFormat.RMS_POINTS

Return type:

None

subscript.grav_subs_points.grav_subs_points.export_subs_points_ert(act_stations, diff_date, out_folder, pref_gendata, ext_gendata)

Export for ert for each diffdate

Return type:

None

subscript.grav_subs_points.grav_subs_points.export_subs_points_xyz(act_stations, diff_date, out_folder)

Write points in xyz format, roxar.FileFormat.RMS_POINTS

Return type:

None

subscript.grav_subs_points.grav_subs_points.get_parser()

Function to create the argument parser that is going to be served to the user.

Returns:

The argument parser to be served

Return type:

argparse.ArgumentParser

subscript.grav_subs_points.grav_subs_points.main()

Invocated from the command line, parsing command line arguments

Return type:

None

subscript.grav_subs_points.grav_subs_points.main_gravpoints(unrst_file, config, output_folder, pref_gendata, ext_gendata)

Process a configuration, model gravity and subsidence points and write to disk.

Parameters:
  • resdata – Path to flow simulation UNRST file

  • config (Dict[str, Any]) – Configuration for modelling

Return type:

None