Petrosys Tools: File Conversion Utility

Download this free file conversion utility that lets you run predefined conversions to Petrosys supported import formats, and to interactively define your own file conversion formats by browsing your data files. Specifically for contour, polygon, vector-culture, fault, and stacking velocity data.

Email or call Petrosys support if you'd like to have this utility available on other platforms.
Platform Last Updated Distribution Files
click on name to download
Redhat Enterprise Linux 5 July 08 2010 04:21:59 (EIT +0900)
Redhat Enterprise Linux 4 July 08 2010 04:43:01 (EIT +0900)
Solaris 8 February 09 2010 11:48:44 (EIT +0900)
Windows 32bit July 08 2010 09:31:37 (EIT +0900)

Example Formats

The format files shown here are small text files that can be used with the program to translate specific known formats. Example files for those formats are tabulated. Click on the example file names to browse them, or on the format file name to download a format file.

File Type Remarks Format file
Click on name to download
Example file
Click on name to browse
Contours - CPS text (ASCII) format The example data for this format was produced by exporting in CPS text format from Petrosys: if you'd like to submit some native CPS format data as an example we'd welcome it.

Stacking Velocities - 3D - Landmark SEGYCHECK This appears to be output from Landmark's SEGYCHECK utility for 3D stacking velocity data.

P1/90 File with Navigation Data The format files p190_clines.cft and p190_slines.cft are used to extract various types of seismic coordinate records from a P1/90 file. p190_clines extracts the Common-mid-point 'C' coordinates, p190_slines the Source 'S' coordinates. The formats will skip over records with H (header), R (receiver group), T (tailbuoy), A (antenna), E (echo sounder), V (vessel position) and Z (other) record identifiers. You will need to add further skip 'card types' if your P1/90 file contains other record types, or modify the data record to use other positions. The sample file is tiny, and not intended to be real data. The format will allow some modification of the line name.


Stacking Velocities - 3D - Promax Variant '1' This appears to be a current (2006) Promax export format for stacking velocities from 3D data. The data file must be sorted by times within crosslines within inlines: this is not always the case. The perl script sort_promax_1_vels.pl can be used to sort a file that does not conform. Information on using it is in the headers of the Perl script.


Excerpt from the HELP for this utility

This interface will convert a wide variety of ASCII files to one of several Petrosys ASCII formatted files. Files can be converted to one of the following file types:

The file to be converted can be a simple flat file or more complex files with varying record formats. Files can be fixed width or delimited (any character).

In all cases the general methodology for converting a file is the same. Each record type in the input file will need to have a "Format Card" defined for it.

If every record in the file has the same format then only one format card will be defined. If the input file has varying record formats, then a format card for each will need to be defined. Also, a set of "Key" fields and values will need to be defined on each format card to allow a record from the input file to be matched to a format card (see below for more details).

Once the complete set of format cards has been specified, it can be saved for future use (/Format/Save As menu option).

Getting Started

To convert a file do the following:

  1. Select your input file with the "Input File - Name" button.
    At this point you will see the input file displayed in the "Example Data" window.
  2. Set the "Input File - Type" to the appropriate setting. In general, most files will be "Fixed Format" but delimited files can be specified as well.
  3. Set an output file name with the "Output File - Name" button.
  4. Set the "Output file - Type" to the desired type of file.
  5. Set any required data in the bottom of the main window.
    After setting the output file type extra options will appear at the bottom of the interface. Fill in the appropriate data fields.
  6. Define the file header records.
    If the file contains any header records use the cursor and left mouse button to "paint" all of these header records. When doing so you must include the first record in the file. Once all the header records are highlighted click in the "Skip Headers" entry box (located just below the Example Data window). The number of header records should now be defined.
  7. Define the positions of each of the data fields for a record type.
    Use the mouse in the Example Data window and "paint" one of the individual data fields. After doing so, a popup window of various data types will appear. The list of data types will be different depending on what the Output File Type has been set to. Simply pick the appropriate data type from the list - at which point you will see one row appear in the "Data Fields" portion of the "Format Cards" window.
    Keep "painting" data fields on this record type until all data fields have been defined and each has a row in the "Data Fields" window. You can delete one of these rows by pressing the 'x' button for that row.
  8. Define a "Card Name".
    Each format card must have a unique name. Simply key in any name for this card. You will see the card name appear in the card list found under the "Manage Cards" window.
  9. Set the "Card Type".
    Each card must have a card type defined for it. In general, most cards will simply be "Data" cards. See the section entitled "Card Types" below for more details.
  10. Card "keys" or no card "keys"
    If every record (not including the header records) has the exact same format then there's no need to go any further. Simply press the "OK" button to perform the file conversion.
    However, in many cases the input file will have more than one record format. In this case you will need to:
  11. Defining card "keys".
    If your file has more than one record format you will need to define a set of "key" fields for each one. For example, if your file looks something like:
         A -100.54321 34.11345
         B -100.53219 34.22332
         B -100.49234 34.24582
         B -100.47869 34.30872
                    .
                    .
                    .
         A -100.64321 34.34591
         B -100.62221 34.37540
         B -100.68819 34.38001
         B -100.71109 34.41334
                    .
                    .
                    .
    
    In this example there are clearly two record format types. We'll term these the 'A' and 'B' cards. The A cards are starting a new object and the B's are a continuation of that object.
    To set a key field, simply paint the data that makes up the key (the 'A' in this example). Set the data type for this field to "Key 1". You will now see a new row under the Data Fields table and the value of 'A' will be shown under the "Key Fields" window for Key 1. Set the card type to 'Start New Object' for this card.
    Since the file has another record format type (the B cards) we need a second format card. Click the "New" button found under the Manage Cards window. Now repeat the same process as above but set the card type to 'Data'.
    Create a new format card (each with it's own set of keys) for each of the record types in the input file.