[xnec2c] Import source
Randall 'Randy' Berry
dp67 at fedoraproject.org
Thu Jun 30 16:32:46 UTC 2011
commit f68bd22eb3c91f1c140eb854d60ba5892439f54d
Author: dp67 <dp67 at fedoraproject.org>
Date: Thu Jun 30 12:32:36 2011 -0400
Import source
xnec2c-1.4-plot_freqdata.c.patch | 35 +++++++++++++++++++++++++++++++++++
xnec2c.spec | 5 ++++-
2 files changed, 39 insertions(+), 1 deletions(-)
---
diff --git a/xnec2c-1.4-plot_freqdata.c.patch b/xnec2c-1.4-plot_freqdata.c.patch
new file mode 100644
index 0000000..c8d3714
--- /dev/null
+++ b/xnec2c-1.4-plot_freqdata.c.patch
@@ -0,0 +1,35 @@
+diff -up ./src/plot_freqdata.c.diff ./src/plot_freqdata.c
+--- ./src/plot_freqdata.c.diff 2010-05-14 07:07:16.000000000 -0400
++++ ./src/plot_freqdata.c 2011-06-30 11:55:06.584435999 -0400
+@@ -222,6 +222,22 @@ Plot_Frequency_Data( void )
+ else
+ nth = (int)( fbdir/fpat.dth + 0.5 );
+
++ /*
++ * No gain calculated in this theta (elevation)? This could be
++ * due to modeling an antenna over ground and not calculating the
++ * radiation underground. Try using the same theta as the max
++ * gain direction, relying on phi alone to take us to the back.
++ */
++ if( (nth >= fpat.nth) || (nth < 0) )
++ {
++ fbdir = rad_pattern[idx].max_gain_tht[pol];
++ if( fpat.dth == 0.0 )
++ nth = 0;
++ else
++ nth = (int)( fbdir/fpat.dth + 0.5 );
++ }
++
++
+ /* No F/B calc. possible if no theta step at +180 from max gain */
+ if( (nth >= fpat.nth) || (nth < 0) )
+ {
+@@ -231,7 +247,7 @@ Plot_Frequency_Data( void )
+
+ /* Find F/B direction in phi */
+ fbdir = gdir_phi[idx] + 180.0;
+- if( fbdir >= 360.0 ) fbdir -= 180.0;
++ if( fbdir >= 360.0 ) fbdir -= 360.0;
+ nph = (int)( fbdir/fpat.dph + 0.5 );
+
+ /* No F/B calc. possible if no phi step at +180 from max gain */
diff --git a/xnec2c.spec b/xnec2c.spec
old mode 100755
new mode 100644
index dd96d14..7576c22
--- a/xnec2c.spec
+++ b/xnec2c.spec
@@ -1,6 +1,6 @@
Name: xnec2c
Version: 1.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GTK based graphical wrapper for nec2c
Group: Applications/Communications
@@ -66,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644,root,root) %{_datadir}/pixmaps/*
%changelog
+* Thu Jun 30 2011 Randall J. Berry, N3LRX <dp67 at fedoraproject.org> - 1.4-3
+- Import and build for F15/master
+
* Thu Jun 30 2011 Randall J. Berry, N3LRX <dp67 at fedoraproject.org> - 1.4-2
- Apply patch by Rik van Riel, fix the Front/Back gain calculations
More information about the scm-commits
mailing list