Details

      Description

      Adapted from email chain:

      Write ResourceList

      { MessageWindow = true, LogFile = true, ShowResourceNames = true, ReportFile = myReport }

      • ResourceList is a list of GMAT Resources and must contain at least one Resource
      • ShowResourceNames is optional and defaults to false. When true, the resource name is included with output (note, this is really useful when writing data, otherwise, you don’t know what data you are seeing.
      • MessageWindow is optional, defaults to true
      • LogFile optional, and defaults to false
      • ReportFile is optional and does not have a default

      Examples

      Write myArray

      { ShowResourceNames = true}

      writes this to the command window if myArray is 2x2 Identity matrix.

      myArray =

      1 0
      0 1

      Write mySat

      { LogFile = true }

      Would writes this to the message window

      Create Spacecraft mySat;
      GMAT mySat.DateFormat = TAIModJulian;
      GMAT mySat.Epoch = '21545';
      GMAT mySat.CoordinateSystem = EarthMJ2000Eq;
      GMAT mySat.DisplayStateType = Cartesian;
      GMAT mySat.X = 7100;
      GMAT mySat.Y = 0;
      GMAT mySat.Z = 1300;
      GMAT mySat.VX = 0;
      GMAT mySat.VY = 7.35;
      GMAT mySat.VZ = 1;
      GMAT mySat.DryMass = 850;
      GMAT mySat.Cd = 2.2;
      GMAT mySat.Cr = 1.8;
      GMAT mySat.DragArea = 15;
      GMAT mySat.SRPArea = 1;
      And the rest of spacecraft omitted for brevity

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            tgrubb Thomas Grubb added a comment -

            Should be in 2016-08-02 build

            Show
            tgrubb Thomas Grubb added a comment - Should be in 2016-08-02 build

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: