dmpkf

A utility to extract information from a KF file and make it available in ASCII format.

dmpkf file {key1 .. keyn}

dmpkf prints the sections and/or variables from the file file indicated by key1 .. keyn on standard output. If no sections and/or variables are explicitly mentioned the complete file is printed.

The format to be used for key1 et cetera is:

Sec%Var

where Var is the variable, which must exist in section Sec. If no Var is mentioned, the complete section Sec is dumped.

By redirecting the result to another file you get an ASCII version of file:

dmpkf file > ascii_result

The output contains for each printed variable:

  • One line with the name of the section it belongs to;
  • One line with the name of the variable itself;
  • One line with three integers:
    • The amount of space reserved for the variable on the file (this aspect is relevant for
      the software that handles kf files and is mentioned here only for completeness);
    • The amount of data associated with the variable: for reals, integers, logicals:
      the number of such elements; for strings: the number of characters;
    • An integer code for the data type of the variable: 1=integer, 2=real, 3=character, 4=logical;
  • The values of the variable (on as many lines as necessary): for scalar variables only one value,
    for arrays as many values as the array contains.

 

Copyright      Terms of Use      Privacy Policy
Search:
Home
About
News
Sitemap
Contact
Why ADF?
Brochure
Demos
Trial Version
How to buy
Downloads
FAQ
Newsletters
Documentation
Community