4 A GNSSTk example featuring some file input and processing to
5 create a plot with matplotlib.
11 ==============================================================================
13 This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
15 The GNSSTk is free software; you can redistribute it and/or modify
16 it under the terms of the GNU Lesser General Public License as published
17 by the Free Software Foundation; either version 3.0 of the License, or
20 The GNSSTk is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU Lesser General Public License for more details.
25 You should have received a copy of the GNU Lesser General Public
26 License along with GNSSTk; if not, write to the Free Software Foundation,
27 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
29 This software was developed by Applied Research Laboratories at the
30 University of Texas at Austin.
31 Copyright 2004-2022, The Board of Regents of The University of Texas System
33 ==============================================================================
35 ==============================================================================
37 This software was developed by Applied Research Laboratories at the
38 University of Texas at Austin, under contract to an agency or agencies
39 within the U.S. Department of Defense. The U.S. Government retains all
40 rights to use, duplicate, distribute, disclose, or release this software.
42 Pursuant to DoD Directive 523024
44 DISTRIBUTION STATEMENT A: This software has been approved for public
45 release, distribution is unlimited.
47 ==============================================================================
51 import matplotlib.pyplot
as plt
56 header, dataSets = gnsstk.readSEM( gnsstk.data.full_path(
'sem_data.txt'), strict=
True)
59 gnsstk.writeSEM( gnsstk.data.full_path(
'sem_data.txt.new'), header, dataSets)
62 orbit = dataSets[0].toAlmOrbit()
76 for t
in gnsstk.times(starttime, endtime, seconds=1000):
79 elevation = austin.elevation(location)
85 fig.suptitle(
'Elevation of a GPS satellite throughout the day',
86 fontsize=14, fontweight=
'bold')
87 ax = fig.add_subplot(111)
88 ax.set_xlabel(
'Time (days)')
89 ax.set_ylabel(
'Elevation (degrees)')
94 if __name__ ==
'__main__':