Skip to content

Commit

Permalink
PlotDegreeAmplitudes: added simplified version without extra file/pro…
Browse files Browse the repository at this point in the history
…gram.
  • Loading branch information
tmayerguerr committed Nov 10, 2024
1 parent 31e4bda commit 511f053
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# main
- New class: PlotDegreeAmplitudes: degreeAmplitudesSimple.
- New option: GnssAntennaNormalsConstraint: gnssType selection for TEC constraint.
- Bugfix: GUI: fixed Ctrl+Shift+Up/Down for variables.
- Bugfix: slrParametrizationRangeBiasStationSatellite: Fix station index.
Expand Down
Binary file modified docs/documentation.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/html/Gravityfield2DegreeAmplitudes.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h1>Gravityfield2DegreeAmplitudes</h1><p>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config mustset">type</div></div></td><td>choice</td><td>type of variances</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">rms</div></div></td><td></td><td>degree amplitudes (square root of degree variances)</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">accumulation</div></div></td><td></td><td>cumulate variances over degrees</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">median</div></div></td><td></td><td>meadian of absolute values per degree</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">median</div></div></td><td></td><td>median of absolute values per degree</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">time</div></div></td><td>time</td><td>at this time the gravity field will be evaluated</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">evaluationRadius</div></div></td><td>double</td><td>evaluate the gravity field at this radius (default: evaluate at surface</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">polarGap</div></div></td><td>angle</td><td>exclude polar regions (aperture angle in degrees)</td></tr>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/documentationSearchIndex.js

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion docs/html/plotGraphLayerType.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h2>Text</h2><p>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">plotOnSecondAxis</div></div></td><td>boolean</td><td>draw dataset on a second Y-axis (if available).</td></tr>
</table>

<h2>DegreeAmplitudes</h2><p>
<h2 id="degreeAmplitudes">DegreeAmplitudes</h2><p>
Plot degree amplitudes of potential coefficients computed by <a class="groops-program" href="Gravityfield2DegreeAmplitudes.html">Gravityfield2DegreeAmplitudes</a>
or <a class="groops-program" href="PotentialCoefficients2DegreeAmplitudes.html">PotentialCoefficients2DegreeAmplitudes</a>.
The standard <a class="groops-ref" href="general.parser.html#dataVariables">dataVariables</a> are available to select
Expand All @@ -209,6 +209,31 @@ <h2>DegreeAmplitudes</h2><p>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">lineSignal</div></div></td><td><a href="plotLineType.html">plotLine</a></td><td></td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">lineErrors</div></div></td><td><a href="plotLineType.html">plotLine</a></td><td></td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">plotOnSecondAxis</div></div></td><td>boolean</td><td>draw dataset on a second Y-axis (if available).</td></tr>
</table>

<h2 id="degreeAmplitudesSimple">DegreeAmplitudesSimple</h2><p>
Plot degree amplitudes from a <a class="groops-class" href="gravityfieldType.html">gravityfield</a>.
The coefficients can be converted to different functionals with <a class="groops-class" href="kernelType.html">kernel</a>.
If set the expansion is limited in the range between <strong class="groops-config-element">minDegree</strong>
and <strong class="groops-config-element">maxDegree</strong> inclusivly. It plots a solid line for the degree amplitude (signal)
and a dotted line for the formal errors per default.</p><p>This is a simplified version of
<a class="groops-class" href="plotGraphLayerType.html#degreeAmplitudes">layer:degreeAmplitudes</a>.
</p>
<table class="table table-hover">
<tr class="table-primary"><th>Name</th><th>Type</th><th>Annotation</th></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config mustset-unbounded">gravityfield</div></div></td><td><a href="gravityfieldType.html">gravityfield</a></td><td></td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config mustset">kernel</div></div></td><td><a href="kernelType.html">kernel</a></td><td></td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config mustset">type</div></div></td><td>choice</td><td>type of variances</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">rms</div></div></td><td></td><td>degree amplitudes (square root of degree variances)</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">accumulation</div></div></td><td></td><td>cumulate variances over degrees</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-1"><div class="h-100 config mustset">median</div></div></td><td></td><td>median of absolute values per degree</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">time</div></div></td><td>time</td><td>at this time the gravity field will be evaluated</td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">minDegree</div></div></td><td>uint</td><td></td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">maxDegree</div></div></td><td>uint</td><td></td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">description</div></div></td><td>string</td><td>text of the legend</td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">lineSignal</div></div></td><td><a href="plotLineType.html">plotLine</a></td><td></td></tr>
<tr class=""><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">lineErrors</div></div></td><td><a href="plotLineType.html">plotLine</a></td><td></td></tr>
<tr class="table-light"><td class="m-0"><div class="h-100 config-tree depth-0"><div class="h-100 config optional">plotOnSecondAxis</div></div></td><td>boolean</td><td>draw dataset on a second Y-axis (if available).</td></tr>
</table>

</div>
Expand Down
35 changes: 34 additions & 1 deletion docs/latex/classes.auto.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7384,7 +7384,7 @@ \subsection{Text}
\end{tabularx}


\subsection{DegreeAmplitudes}
\subsection{DegreeAmplitudes}\label{plotGraphLayerType:degreeAmplitudes}
Plot degree amplitudes of potential coefficients computed by \program{Gravityfield2DegreeAmplitudes}
or \program{PotentialCoefficients2DegreeAmplitudes}.
The standard \reference{dataVariables}{general.parser:dataVariables} are available to select
Expand All @@ -7408,6 +7408,39 @@ \subsection{DegreeAmplitudes}
\hline
\end{tabularx}


\subsection{DegreeAmplitudesSimple}\label{plotGraphLayerType:degreeAmplitudesSimple}
Plot degree amplitudes from a \configClass{gravityfield}{gravityfieldType}.
The coefficients can be converted to different functionals with \configClass{kernel}{kernelType}.
If set the expansion is limited in the range between \config{minDegree}
and \config{maxDegree} inclusivly. It plots a solid line for the degree amplitude (signal)
and a dotted line for the formal errors per default.

This is a simplified version of
\configClass{layer:degreeAmplitudes}{plotGraphLayerType:degreeAmplitudes}.


\keepXColumns
\begin{tabularx}{\textwidth}{N T A}
\hline
Name & Type & Annotation\\
\hline
\hfuzz=500pt\includegraphics[width=1em]{element-mustset-unbounded.pdf}~gravityfield & \hfuzz=500pt \hyperref[gravityfieldType]{gravityfield} & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element-mustset.pdf}~kernel & \hfuzz=500pt \hyperref[kernelType]{kernel} & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element-mustset.pdf}~type & \hfuzz=500pt choice & \hfuzz=500pt type of variances\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~rms & \hfuzz=500pt & \hfuzz=500pt degree amplitudes (square root of degree variances)\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~accumulation & \hfuzz=500pt & \hfuzz=500pt cumulate variances over degrees\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~median & \hfuzz=500pt & \hfuzz=500pt median of absolute values per degree\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~time & \hfuzz=500pt time & \hfuzz=500pt at this time the gravity field will be evaluated\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~minDegree & \hfuzz=500pt uint & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~maxDegree & \hfuzz=500pt uint & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~description & \hfuzz=500pt string & \hfuzz=500pt text of the legend\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~lineSignal & \hfuzz=500pt \hyperref[plotLineType]{plotLine} & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~lineErrors & \hfuzz=500pt \hyperref[plotLineType]{plotLine} & \hfuzz=500pt \\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~plotOnSecondAxis & \hfuzz=500pt boolean & \hfuzz=500pt draw dataset on a second Y-axis (if available).\\
\hline
\end{tabularx}

\clearpage
%==================================

Expand Down
2 changes: 1 addition & 1 deletion docs/latex/programs.auto.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ \subsection{Gravityfield2DegreeAmplitudes}\label{Gravityfield2DegreeAmplitudes}
\hfuzz=500pt\includegraphics[width=1em]{element-mustset.pdf}~type & \hfuzz=500pt choice & \hfuzz=500pt type of variances\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~rms & \hfuzz=500pt & \hfuzz=500pt degree amplitudes (square root of degree variances)\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~accumulation & \hfuzz=500pt & \hfuzz=500pt cumulate variances over degrees\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~median & \hfuzz=500pt & \hfuzz=500pt meadian of absolute values per degree\\
\hfuzz=500pt\includegraphics[width=1em]{connector.pdf}\includegraphics[width=1em]{element-mustset.pdf}~median & \hfuzz=500pt & \hfuzz=500pt median of absolute values per degree\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~time & \hfuzz=500pt time & \hfuzz=500pt at this time the gravity field will be evaluated\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~evaluationRadius & \hfuzz=500pt double & \hfuzz=500pt evaluate the gravity field at this radius (default: evaluate at surface\\
\hfuzz=500pt\includegraphics[width=1em]{element.pdf}~polarGap & \hfuzz=500pt angle & \hfuzz=500pt exclude polar regions (aperture angle in degrees)\\
Expand Down
58 changes: 56 additions & 2 deletions groops.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -8386,6 +8386,60 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="degreeAmplitudesSimple">
<xs:annotation>
<xs:documentation>degree amplitudes of a gravity field</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="gravityfield" type="gravityfieldType" maxOccurs="unbounded"/>
<xs:element name="kernel" type="kernelType"/>
<xs:element name="type">
<xs:annotation>
<xs:documentation>type of variances</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element name="rms">
<xs:annotation>
<xs:documentation>degree amplitudes (square root of degree variances)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="accumulation">
<xs:annotation>
<xs:documentation>cumulate variances over degrees</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="median">
<xs:annotation>
<xs:documentation>median of absolute values per degree</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="time" type="time" minOccurs="0">
<xs:annotation>
<xs:documentation>at this time the gravity field will be evaluated</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="minDegree" type="uint" minOccurs="0" default="0"/>
<xs:element name="maxDegree" type="uint" minOccurs="0"/>
<xs:element name="description" type="string" minOccurs="0">
<xs:annotation>
<xs:documentation>text of the legend</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="lineSignal" type="plotLineType" minOccurs="0" default="solid"/>
<xs:element name="lineErrors" type="plotLineType" minOccurs="0" default="{&quot;custom&quot;: {&quot;style&quot;:&quot;5_2:0&quot;}}"/>
<xs:element name="plotOnSecondAxis" type="boolean" minOccurs="0" default="0">
<xs:annotation>
<xs:documentation>draw dataset on a second Y-axis (if available).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:complexType name="plotLegendType">
Expand Down Expand Up @@ -12917,7 +12971,7 @@
</xs:element>
<xs:element name="median">
<xs:annotation>
<xs:documentation>meadian of absolute values per degree</xs:documentation>
<xs:documentation>median of absolute values per degree</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
Expand Down Expand Up @@ -18189,7 +18243,7 @@
</xs:annotation>
</xs:element>
<xs:element name="title" type="string" minOccurs="0"/>
<xs:element name="layer" type="plotGraphLayerType" default="degreeAmplitudes" maxOccurs="unbounded"/>
<xs:element name="layer" type="plotGraphLayerType" default="degreeAmplitudesSimple" maxOccurs="unbounded"/>
<xs:element name="minDegree" type="uint" minOccurs="0" default="0"/>
<xs:element name="maxDegree" type="uint" minOccurs="0"/>
<xs:element name="majorTickSpacingDegree" type="double" minOccurs="0">
Expand Down
Loading

0 comments on commit 511f053

Please sign in to comment.