pybacktrack.write_well_metadata

pybacktrack.write_well_metadata(well_file, well, well_attributes=None)

Writes well metadata to file object well_file.

Parameters:
  • well_file (file object) – Well file object to write to.

  • well (pybacktrack.Well) – Well to extract metadata from.

  • well_attributes (dict, optional) – Attributes in pybacktrack.Well object to write to well file metadata. If specified then must be a dictionary mapping each attribute name to a metadata name. For example, {‘longitude’ : ‘SiteLongitude’, ‘latitude’ : ‘SiteLatitude’} will write well.longitude (if not None) to metadata ‘SiteLongitude’, etc. Not that the attributes must exist in well (but can be set to None).