Previous Next        Current Page: NeXtMidas Training / Working with Files / Basic File Commands / STATUS - Listing file headers
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   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The STATUS Command:
    • The STATUS command is used to show details about a file
    • For Midas (Blue) files, STATUS shows information in the Blue header.
      nM> status apenny.prm
      DataFile (BLUE)    :  file:/home/burdell/nxm230/nxm/sys/dat/apenny.prm
      Data Rep (H/D)     :  EEEI / EEEI
      Number of Elements :  128.0
      File Type          :  2000
      Data Format        :  SB - Scalar Byte
      Write Protect      :  false
      Abscissa units     :  No applicable units (U)
      Abscissa start     :  0.0
      Abscissa delta     :  1.0
      Frame Length       :  128
      Secondary units    :  No applicable units (U)
      Secondary start    :  0.0
      Secondary delta    :  1.0
    • For other file types, STATUS shows generally useful information like:
      • The number of bytes in the file (XML or TXT files)
      • That particular file type's header information (JPEG or SHP)
      • In general, any file type whose file handler subclasses BaseFile and can be STATUSed.
        • Isn't Java great?
      nM> status airports.csv{headerrows=1}
      CsvFile   : file:/home/burdell/nxm230/nxm/sys/dat/airports.csv
      Rows      : 726
      Columns   : 4
      Header    : First Row
      Column Name=AIRPORT_NAME    Format=??
      Column Name=CODE            Format=??
      Column Name=LATITUDE        Format=??
      Column Name=LONGITUDE       Format=??
    • The /KEY or /K switch can be used to show the Midas keywords.
    • The /DATA= or /D=<num_elements> switch can be used to show the data in the file (by running DATALIST).