Current Page:
NeXtMidas Training
Macros - Part 1 (Basics)
Procedures and Subroutines
Lab 1 - Macro Procedures
Instructions
|
|
- Lab 1 - Macro Procedures:
- For this lab you will write a macro that will list the values in a state vector
at given times through the day.
- Three sample State Vector files are provided in the dat area of the SYS
option tree (sv1.prm, sv2.prm, and sv3.prm).
- A template for this macro is provided (be sure to save the file with
the correct name):
- The macro takes in four parameters:
IN= - The input file (no default value)
START= - The start time (default is 00:00:00)
END= - The end time (default is 24:00:00)
DELTA= - The delta between entries in seconds (default is 3600).
Use UPDATE to add this command to the dictionary.
- Will need to do the following in the macro:
- Try running the macro. For example:
nM> proclab1 sv3.prm 00:00:00 12:00:00 2:00:00
00:00:00.000: 136'55'17.921W 017'42'53.010N 25152090m
02:00:00.000: 128'19'14.927W 057'02'56.486N 20001890m
04:00:00.000: 041'58'50.918W 030'10'07.824N 14310786m
06:00:00.000: 020'13'14.114W 050'43'45.819S 16789154m
08:00:00.000: 056'13'10.695E 052'01'49.926S 23076766m
10:00:00.000: 055'28'49.007E 016'59'38.182S 26278971m
12:00:00.000: 042'53'30.995E 018'19'05.710N 25097732m
nM>
|
|
|