<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=STATUS</id>
	<title>STATUS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=STATUS"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=STATUS&amp;action=history"/>
	<updated>2026-06-13T14:08:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=STATUS&amp;diff=824&amp;oldid=prev</id>
		<title>ConvertBot: outputs the header information of a Midas or other file types</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=STATUS&amp;diff=824&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:09Z</updated>

		<summary type="html">&lt;p&gt;outputs the header information of a Midas or other file types&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;outputs the header information of a Midas or other file types&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;file&amp;gt; - name of file (Midas BLUE, text, shape, image,...)&lt;br /&gt;
&lt;br /&gt;
Outputs the header of the file named &amp;lt;file&amp;gt; to the terminal. Typically, this is&lt;br /&gt;
used on Midas BLUE files but in NeXtMidas one can status any file that extends&lt;br /&gt;
nxm.sys.lib.BaseFile and implements a listHeader method. For example:&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; status world.shp&lt;br /&gt;
&lt;br /&gt;
works because nxm.sys.lib.ShapeFile has a listHeader method. Other examples of&lt;br /&gt;
classes with this ability are:&lt;br /&gt;
&lt;br /&gt;
  * BaseFile.java   - The default implementation&lt;br /&gt;
  * CsvFile.java    - For CSV files (CSV)&lt;br /&gt;
  * DataFile.java   - For Midas files (TMP,PRM)&lt;br /&gt;
  * DbfFile.java    - Companions to shape files (DBF)&lt;br /&gt;
  * ImageFile.java  - Image files: JPEG, PNG,...&lt;br /&gt;
  * JarFile.java    - Java Archive (JAR) files&lt;br /&gt;
  * TextFile.java   - Text files (TXT)&lt;br /&gt;
  * ZipFile.java    - Compressed Zip Files (ZIP)&lt;br /&gt;
&lt;br /&gt;
If the user supplies other arguments of the form TAG=LABEL, these values&lt;br /&gt;
will be written to the results table and the terminal output is skipped.&lt;br /&gt;
&lt;br /&gt;
NOTE: For most of the tags (except some legacy tags to match X-Midas), you will&lt;br /&gt;
not find them in the STATUS intrinsic itself.  Java reflection is used to find&lt;br /&gt;
any &amp;quot;get&amp;quot; method in the class.  For instance,&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; stat world.shp type=xxx&lt;br /&gt;
&lt;br /&gt;
finds the getType method in nxm.sys.lib.ShapeFile.  Where appropriate, digraphs&lt;br /&gt;
or trigraphs can be used to provide shorter syntax.  For instance, the NC tag&lt;br /&gt;
finds the method getNumberComponents in DataFile for type 5000 files.  The NSR&lt;br /&gt;
tag finds the method getNumberSubRecords in DataFile for type 3000 files.&lt;br /&gt;
While short tags are convenient from the command line, generally, it is&lt;br /&gt;
recommended  that the full method name is used in macros.&lt;br /&gt;
&lt;br /&gt;
For 3000 and 5000 record oriented files, the record formats are also shown.&lt;br /&gt;
For 5000 files, the frame of reference and any information pertinent to the&lt;br /&gt;
frame is displayed.&lt;br /&gt;
&lt;br /&gt;
Common tags in the DataFile class (all Midas BLUE files) are:&lt;br /&gt;
&lt;br /&gt;
  TAG	Longname    Description&lt;br /&gt;
  ------------------------------------------------------------------------------&lt;br /&gt;
  TYPE	TYPE        Type of file&lt;br /&gt;
  SIZE	SIZE        Size in logical elements&lt;br /&gt;
  SZ    SIZE        Same as SIZE. Special tag for X-Midas backward compatibility&lt;br /&gt;
  DS    DATASTART   Data start in bytes (usually 512)&lt;br /&gt;
  DR    DATAREP     Data representation&lt;br /&gt;
  FORM	FORMAT      Data Format&lt;br /&gt;
  --	XUNITSNAME  X or Abscissa units name (PREFERRED)&lt;br /&gt;
  XS	XSTART      X or Abscissa start&lt;br /&gt;
  XD	XDELTA      X or Abscissa delta&lt;br /&gt;
  --	YUNITSNAME  Y or Abscissa units name (PREFERRED)&lt;br /&gt;
  YS	YSTART      Y or Secondary start&lt;br /&gt;
  YD	YDELTA      Y or Secondary delta&lt;br /&gt;
  TC    TIMECODE    Timecode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  also available through tags are:&lt;br /&gt;
&lt;br /&gt;
  TAG	   Longname          Description&lt;br /&gt;
  ------------------------------------------------------------------------------&lt;br /&gt;
  FS       FRAMESIZE         Frame size&lt;br /&gt;
  RL       RECLENGTH         Record length (type 3000/5000)&lt;br /&gt;
  NSR      NUMBERSUBRECORDS  Number of subrecords (3000/5000)&lt;br /&gt;
  SR(NAME) N/A               Subrec specs table by name (PREFERRED)(3000/5000)&lt;br /&gt;
  SR(i)    N/A               Subrec specs table {NAME,FORMAT,OFFSET}: i=1..n&lt;br /&gt;
  NC       NUMBERCOMPONENTS  Number of components (type 5000)&lt;br /&gt;
  RF       REFERENCEFRAME    Frame of Reference (type 5000)&lt;br /&gt;
  C(i)     N/A               Component specs table: i=1..n&lt;br /&gt;
                                       {NAME,FORMAT,TYPE,UNITS}&lt;br /&gt;
  QW(i) N/A                  One-based version of QUADWORD(i) for legacy&lt;br /&gt;
                             X-Midas compatibility: i=1..n&lt;br /&gt;
  --       QUADWORD(i)       Quadword value: i=0..n-1 (type 5000)&lt;br /&gt;
	               QW(0)=ref frame  QW(1)=altitude   QW(2)=latitude,&lt;br /&gt;
                       QW(3)=longitude  QW(4)=azimuth    QW(5)=elevation,&lt;br /&gt;
                       QW(6)=roll,      QW(7)=unused     QW(8)=unused,&lt;br /&gt;
                       QW(9)=epoch_year QW(10)=epoch_sec QW(11)=epoch_hour_angle&lt;br /&gt;
&lt;br /&gt;
  common PIPE tags are:&lt;br /&gt;
&lt;br /&gt;
  TAG	   Longname          Description&lt;br /&gt;
  ------------------------------------------------------------------------------&lt;br /&gt;
  PS       PIPESIZE          Pipesize in bytes&lt;br /&gt;
  INB      INBYTE            Pipe input or writer byte&lt;br /&gt;
  OUTB     OUTBYTE           Pipe output or reader byte&lt;br /&gt;
&lt;br /&gt;
  DEPRECATED tags:&lt;br /&gt;
&lt;br /&gt;
  TAG	   Longname          Description&lt;br /&gt;
  ------------------------------------------------------------------------------&lt;br /&gt;
  XU	XUNITS      X or Abscissa units number  (Use XUNITSNAME instead)&lt;br /&gt;
  YU	YUNITS      Y or Secondary units number (Use YUNITSNAME instead)&lt;br /&gt;
&lt;br /&gt;
The tags may be used in conjunction with the file command. See example below.&lt;br /&gt;
&lt;br /&gt;
The EXIST qualifier may be used to change the behavior of the exists algorithm.&lt;br /&gt;
For example,&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; status http://localhost/nextmidas/nxm/sys/dat/world.prm{EXIST=NONE}&lt;br /&gt;
&lt;br /&gt;
turns off explicit existence checking, i.e. assume file exists.  The EXIST&lt;br /&gt;
qualifiers are CGI,STATUS,LIST and NONE and ALL may be used to select no or all&lt;br /&gt;
options, respectively. See help qualifiers for more details.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 * Put the frame size in result NFRAME.&lt;br /&gt;
  nM&amp;gt; status myfile framesize=nframe&lt;br /&gt;
&lt;br /&gt;
 * Test for a specific Midas file type and format.&lt;br /&gt;
  nM&amp;gt; file open/d mytag testxy3000&lt;br /&gt;
  nM&amp;gt; if mytag.type eq 3000 and mytag.format eqs &amp;quot;NH&amp;quot; then&lt;br /&gt;
&lt;br /&gt;
 * List information about the NeXtMidas version.txt text file&lt;br /&gt;
  nM&amp;gt; stat ^{ENV.NMROOT}/nxm/sys/version.txt&lt;br /&gt;
  TextFile : file:/home/midas/nxmxxx//nxm/sys/version.txt&lt;br /&gt;
  Size     : 457.0 bytes&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /ALL    List additional main header fields for debugging (since 3.1.1)&lt;br /&gt;
  /D=n    List n elements of data after the header (using DATALIST)&lt;br /&gt;
  /DATA=n Equivalent to /D  (since 2.7.3)&lt;br /&gt;
  /K      Equivalent to /KEY&lt;br /&gt;
  /KEY    Show keywords in the main and extended headers&lt;br /&gt;
  /PREC=n Equivalent to /PRECISION=  (since 3.3.0)&lt;br /&gt;
  /PRECISION=n Used only with /TIME to specify the number of decimal places to&lt;br /&gt;
          display for timeline entries. (since 3.3.0)               [DEF=3]&lt;br /&gt;
  /T      Equivalent to /TIME&lt;br /&gt;
  /TIME   Show a dump of any TimeLine keywords&lt;br /&gt;
&lt;br /&gt;
See Also: FILE, HEADERMOD, nxm.sys.lib.DataFile, nxm.sys.lib.BaseFile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>