SMS:2D Scatter Point Files (*.xy): Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
(Redirected page to SMS:2D Scatter Point Files)
 
Line 1: Line 1:
Two-dimensional scatter point sets are stored in 2D scatter point files. The file includes the scatter  point locations and requires that functional information be defined in a  separate dataset file. However, multiple  scatter point sets can be stored in a single file. An XY coordinate pair defines  each point in a scatter point set. The format allows time variant datasets to  be associated with scattered data points as well as to organize datasets by  allowing the user to assign an ID to the scattered dataset.
#redirect [[SMS:2D Scatter Point Files]]
 
Scatter files are opened through ''File | Open'' and are saved from ''File | Save Scatter'' from the  Scatter module. When scatter point files are saved, a super file is saved. The super file saves and  references the scatter and dataset files.
 
==File Format==
 
 
{|
|width="200"|SCAT2D
|/* File type identifier */
|-
|BEGSET
|/*  Beginning of cards for scatter point set */
|-
|NAME "name"
|/* Name of scatter  point set */
|-
|ID id
|/* ID of scatter point set  */
|-
|DELEV  elev1
|/* Default elevation */
|+
|IXY np
|/* Number of points  in set, begin point listing */
|+
|id<sub>1</sub> x<sub>1</sub> y<sub>1</sub>
|/* Point id and coordinatess, one  per line */
|+
|id<sub>2</sub> x<sub>2</sub> y<sub>2</sub>
|+
|.
|+
|.
|+
|id<sub>np</sub>x<sub>np</sub>y<sub>np</sub>
|+
|ENDSET
|/* End of cards for scatter point set  */
|+
|
|/*  Repeat point set cards as many times as necessary */
|}
 
==Sample File==
 
SCAT2D
 
BEGSET
 
NAME    "lakes"
 
ID  8493
 
DELEV 0.00000000000e+00
 
IXY 25
 
1 1.47000000000e+02  3.90000000000e+02
 
2 8.82000000000e+02 9.49000000000e+02
 
.
 
.
 
24 1.73000000000e+02  7.01000000000e+02
 
25 5.39000000000e+02 8.98000000000e+02
 
ENDSET
 
 
==Cards==
 
 
{|border="1" style="text-align:left"
|-
|width="100"|''Card Type''
|Colspan="3"|'''BEGSET'''
|-
|''Description''
|Colspan="3"|Identifies the beginning of a  scatter point set.  No fields.
|-
|''Required''||Colspan="3" style="text-align:left"|NO
|}
 
 
{|border="1" style="text-align:left"
|-
|''Card Type''
|Colspan="3"|'''NAME'''
|-
|''Description''
|Colspan="3"|Defines the name for the following scatter point set.
|-
|''Required''||Colspan="3" style="text-align:left"|NO
|-
|''Format''||Colspan="3" style="text-align:left"|NAME "name"
|-
|''Sample''||Colspan="3" style="text-align:left"|NAME "st mary"
|-
|width="100"|''Field''
|width="100"|''Variable''
|width="100"|''Value''
|width="450"|''Description''
|-
|style="text-align:center"|1||style="text-align:center"|name||style="text-align:center"|str||The name for the following scatter  points.  Remains as default until new NAME card is encountered.
|}
 
 
{|border="1" style="text-align:left"
|-
|''Card Type''
|Colspan="3"|'''ID'''
|-
|''Description''
|Colspan="3"|Defines the ID for the scatter  point set.
|-
|''Required''||Colspan="3" style="text-align:left"|YES
|-
|''Format''||Colspan="3" style="text-align:left"|ID id
|-
|''Sample''||Colspan="3" style="text-align:left"|ID 43098
|-
|width="100"|''Field''
|width="100"|''Variable''
|width="100"|''Value''
|width="450"|''Description''
|-
|style="text-align:center"|1||style="text-align:center"|id||style="text-align:center"|+||The ID for the following scatter  point set.
|}
 
 
{|border="1" style="text-align:left"
|-
|''Card Type''
|Colspan="3"|'''IXY'''
|-
|''Description''
|Colspan="3"|Defines a scatter point set.
|-
|''Required''||Colspan="3" style="text-align:left"|YES
|-
|''Format''||Colspan="3" style="text-align:left"|
{| CellPadding=0 CellSpacing=0 Align=Left
|-
|IXY np
|-
|id<sub>1</sub> x<sub>1</sub> y<sub>1</sub>
|-
|id<sub>2</sub> x<sub>2</sub>  y<sub>2</sub>
|-
|.
|-
|.
|-
|id<sub>np</sub> x<sub>np</sub> y<sub>np</sub>
|}
|-
|''Sample''||Colspan="3" style="text-align:left"|
{| CellPadding=0 CellSpacing=0 Align=Left
|-
|IXY 4
|-
|1 12.3 34.5
|-
|2 52.2 23.5
|-
|3 63.2 27.4
|-
|4 91.1 29.3
|}
|-
|width="100"|''Field''
|width="100"|''Variable''
|width="100"|''Value''
|width="450"|''Description''
|-
|style="text-align:center"|1||style="text-align:center"|np||style="text-align:center"|+||The number of scatter points in  the scatter point set.
|-
|style="text-align:center"|2||style="text-align:center"|id||style="text-align:center"|+||The ids of the points.
|-
|style="text-align:center"|3-4||style="text-align:center"|x,y||style="text-align:center"|&#177;||The coordinates of the points.
|-
|Colspan="4" style="text-align:center"|Repeat fields 2 - 4 np times
|}
 
 
{|border="1" style="text-align:left"
|-
|width="100"|''Card Type''
|Colspan="3"|'''ENDSET'''
|-
|''Description''
|Colspan="3"|Identifies the end of a scatter  point set.  No fields.
|-
|''Required''||Colspan="3" style="text-align:left"|NO
|}
 
 
== Related Topics ==
* [[SMS:File Formats|File Formats]]
 
{{Template:Navbox SMS}}
 
[[Category:SMS File Formats|2]]

Latest revision as of 15:53, 7 February 2014