Previous Next        Current Page: NeXtMidas Training / Working with Files / Basic File Commands / HEADERMOD - Modifying file headers
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   - Basic File Commands   
      - FILES - Finding files   
      - FNAME - Forming file names   
      - STATUS - Listing file headers   
      - DATALIST - Listing file data   
      - HEADERMOD - Modifying file headers   
      - FILE - Modifying file data   
   + Lab 1   
   + File Names   
   + File Types   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   + Lab 4   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The HEADERMOD Command:
    • The HEADERMOD command is used to manipulate Midas (Blue) file headers.
    • Some of the more common tags are:
    •   TYPE  - To change the file type
        FORM  - To change the file format
        XU    - To change the file Abscissa (X) units
        XS    - To change the file Abscissa (X) start
        XD    - To change the file Abscissa (X) delta
        FS    - To change the file Frame size (type 2000)
        YU    - To change the file Secondary (Y) units
        YS    - To change the file Secondary (Y) start
        YD    - To change the file Secondary (Y) delta
    • For example:
      nM> waveform temp
      nM> headermod temp type=2000 fs=1024
      Changes a type 1000 into a type 2000 file with a frame size of 1024.
    • Additional switches in HEADERMOD allow you to view, create, attach or detach headers.
      • Detached headers are used to store the Midas data (.det) and header (.tmp) in separate files.
    • See the HEADERMOD explain file for more information.
X-Midas Users Take Note:
Some of the tags for the NeXtMidas HEADERMOD command do not match those of the X-Midas HEADERMOD command. For instance, the F= tag in X-Midas is FORM= in NeXtMidas. NeXtMidas makes use of a Java feature called reflection to find the appropriate method when a tag is given. In the case of FORM= it will find the DataFile.setFormat() method and call it. By using reflection NeXtMidas is able to eliminate any additional wrapper that would otherwise be present in the HEADERMOD command.

back