Scenario Measurements Scope Functions
The following methods are designed to support the verification and saving of observation files into another file and/or format.
|
bool HaveMoreObs() Use this to check whether more measurements are available or not. Return Value
|
Example VBS: Copy
|
|
PreviewTrackingDataStructure PreviewTrackingData() This function previews tracking data from the input tracking data file(s). It writes summary information to the Message Viewer, showing both file-by-file and overall summaries of the number of measurements and time span, as well as the names of trackers and satellites based on tracking IDs. If it cannot resolve the tracking IDs from the files to objects loaded in the scenario, then it shows the tracking ID. Return ValueThe function returns a PreviewTrackingDataStructure object that contains the following members:
|
Example JavaScript: Copy
|
|
bool Reset() This function resets measurement files to the beginning. You should do this before saving observations. Return Value
|
Example VBS: Copy
|
|
bool SaveObs(string fileName) Use this to save measurements to a file. If it can create the input file and the file format can accept the measurements, it saves the measurements to that file path. Before calling SaveObs, use VerifySaveObsMeasTypes to determine if the format is valid. It saves only those measurements that can be written to the specified format. Parameters
Return Value
|
Example VBS: Copy
|
|
bool SetValidation(bool bValidate) This function enables/disables measurement validation based on the input flag. Validation refers here to considering measurements that are applicable to a loaded scenario. For instance, if your scenario points to a tracking data file and not all of the measurements are related to the objects in your scenario, and you attempt to save it with validation on, it will only save the measurements related to your scenario. If you turn off validation, then it will save all of the measurements. Turning validation off will make saving measurements faster. The validation setting has no effect on the application of the scenario's Measurements.ViewAndSave.CustomDataEdting attributes. If you define and enable a schedule, it will be applied regardless of the validation being on or off. Parameters
Return Value
|
Example VBS: Copy
|
|
CAgAttr VerifySaveObsMeasTypes(string fileName) This function verifies the ability to save measurements to a specific file format, determining whether any are compatible with the file type specified in the input parameter file path. Parameters
Return ValueA CAgAttr object with the following members:
|
Example VBS: Copy
|