View source: R/func_create_nasa_ames_1D.R
create_nasa_ames_1D | R Documentation |
Creates a 1 Dimentional NASA Ames file in the format
HL FFI
Header Length - File Format Index (supports 1001 only)
ONAME
Name of File Originator
ORG
Name of Organisation
SNAME
Name of Instrumentation
MNAME
Campagin Name
IVOL NVOL
Data Volume number - total number of volumes
DATE RDATE
Date of data collection - data of file creation
DX
Interval in independant variable, 0 if interval is not consistant
XNAME
Name of independant variable
NV
number of primary variables
VSCAL1...VSCALn
scaling factors for variables
VMISS1...VMISSn
missing flag for variables
VNAME1
first long name of variables
...
VNAMEn
last long name of variables
NSCOML
number of special comment lines
SCOM1
first special comment line
...
SCOMn
last special comment line
NNCOML
number of normal comment lines
NCOM1
first normal comment line
...
NCOMn
last normal comment line
create_nasa_ames_1D(
d,
ONAME,
ORG,
SNAME,
MNAME,
IVOL = 1,
NVOL = 1,
DATE,
DX,
XNAME,
X_col = 1,
NV_col,
VSCALn = NULL,
VMISSn = NULL,
VNAMEn,
SCOMn = NULL,
NCOMn = NULL,
file,
col.names = FALSE
)
d |
data frame of data to have header attached, column names should be simple, no need to match long names in header |
ONAME |
string containing lastname, firstname of file originator max length 132 characters |
ORG |
string containing name of organisation max length 132 characters |
SNAME |
string containing name of instrumentation max length 132 characters |
MNAME |
string containing name of mission/campaign/project max length 132 characters |
IVOL |
integer This files volume index |
NVOL |
integer Total number of files in volume (i.e. files that share ONAME, ORG, SNAME and MNAME) |
DATE |
string of date when data was taken in format to be parsed by |
DX |
interval of independant variable, zero if not consistant |
XNAME |
tring containing name of independant variable max length 132 characters |
X_col |
column number containing independant variable |
NV_col |
interger or vector of integers corresponding to column number containing primary variables |
VSCALn |
interger or vector of integers corresponding to scaling factors of primary variables, default all 1 |
VMISSn |
interger or vector of integers corresponding to missing values of primary variables, default all 99999 |
VNAMEn |
string or vector of string containing long names of primary variables, each should not exceed 132 characters |
SCOMn |
string or vector of string containing each special comment line |
NCOMn |
string or vector of string containing each normal comment line |
file |
save file here |
col.names |
include the column headers on the data table T/F. If true they will be added as the final normal comments line |
W. S. Drysdale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.