]> Pileus Git - ~andy/rsl/commitdiff
RSL v1.42 lug/master win32/master v1.42
authorAndy Spencer <andy753421@gmail.com>
Sun, 28 Aug 2011 20:21:40 +0000 (20:21 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 28 Aug 2011 20:21:40 +0000 (20:21 +0000)
CHANGES
Makefile.am
README
configure.in
doc/RSL_radar_intro.html
doc/index.html
doc/whats_new.html
nsig.c
nsig_to_radar.c
radar_to_uf.c
rsl.h

diff --git a/CHANGES b/CHANGES
index 8f7c5ee4ca534786f0573cd32d0c56521392ed29..932965a4da3017993222237b1bb3ff38c18d49cc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,13 @@
 /* Changes for RSL
  *
  *---------------------------------------------------------------------
+ * v1.42 Released 7/12/2011
+ *
+ * 1. radar_to_uf.c (RSL_radar_to_uf_fp): Changed scale_factor used for storing
+ *    differential phase (PH) in UF from 100 to 10.  The usual scale factor
+ *    of 100 caused values over 327.67 to become negative when converted to
+ *    short integer.
+ *---------------------------------------------------------------------
  * v1.41 Released 6/22/2011
  *
  * 1. wsr88d_m31.c: Simplified the WSR-88D ray structure and supporting code.
index 3c106a8e4f2bffdd291a1c4f2f935b72645e3229..a941299e80c70297d0ad3dfa860d32feb1f87b8c 100644 (file)
@@ -8,7 +8,7 @@ colordir = $(libdir)/colors
 
 lib_LTLIBRARIES = librsl.la
 
-librsl_la_LDFLAGS = -version-info 1:41
+librsl_la_LDFLAGS = -version-info 1:42
 librsl_la_SOURCES = \
 $(rapic_c) $(radtec_c)\
 dorade.c dorade_print.c dorade_to_radar.c\
diff --git a/README b/README
index c61065a2ee0ee45982db77cd4ee1f366d8206d09..679b8f458fef03bb83688e2bd8946f3af23838c9 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-v1.41 (Released 6/22/2011)
+v1.42 (Released 7/12/2011)
 
 This is the README file for the Radar Software Library (RSL).
 
index 2791831873f6c3393eca4b5fc383dcf9ea74b354..381c25b853281ff08a7e3d0b8b19ab42976b176a 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(rsl, v1.41)
+AC_INIT(rsl, v1.42)
 AC_CONFIG_SRCDIR(volume.c)
 
 AM_INIT_AUTOMAKE
index c3563321d22fc5ab5ff5b0266de92d8917e7ee13..08f49b34f2931d0e7be6eb8d4f30c502a956788b 100644 (file)
@@ -19,7 +19,7 @@ Introduction</h2>
 <h4>
 By <a href="john.merritt.html">John H. Merritt</a> and <a href="david.wolff.html">David
 B. Wolff</a>; NASA/TRMM Office<br>
-Software Verson 1.41 (released 6/22/2011)</h4>
+Software Verson 1.42 (released 7/12/2011)</h4>
 
 <hr>This library is an object oriented programming environment to keep
 application programming simple, for the casual C programmer, as well as
index 113a315e145300faf805c36b3abf0308d7868442..2063d1730f7f18cea3772a9a74dc542b9cf547c1 100644 (file)
@@ -6,6 +6,7 @@
    <title>TRMM Satellite Validation Office Web Site</title>
 </head>
 <body>
+<script  src="/trmm_gv/header.js"></script>
 <center><table BORDER=2 >
 
 <h2><center>TRMM Radar Software Library</center></h2>
@@ -21,8 +22,8 @@
 <hr></center>
 
 <h2>
-Current RSL Version 1.40, released 10/10/2008<br>
-Supports WSR-88D Level II Build 10 Format</h2>
+Current RSL Version 1.42, released 7/12/2011<br>
+Supports WSR-88D Level II Build 12 Format</h2>
 
 In support of the <a href="http://trmm-fc.gsfc.nasa.gov">Tropical Rainfall
 Measuring Mission</a>'s (TRMM) <a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/index.html">Global
@@ -159,6 +160,6 @@ Supported Radar Data Formats</h1>
 
 <script  src="/trmm_gv/trailer.js"></script>
 
-
+</body>
 </HTML>
 
index 4ed91ef16e316dfa910bd8f73914ae44bd607714..ff96d41b0896d69e3948ce8fd1d8ffca7ba095de 100644 (file)
 What's new?</h1>
 
 <h2>
-06/22/2011: Version 1.41 supports WSR-88D Level II Build 12 format.</h2>
+Version 1.42: Bug fix.</h2>
+Changed scale_factor used for storing differential phase (PH) in UF from 100 to
+10.  The usual scale factor of 100 caused values over 327.67 to become negative
+when converted to short integer.
 <h2>
-07/24/2008: Version 1.39 supports WSR-88D Level II Build 10 format.</h2>
+Version 1.41 supports WSR-88D Level II Build 12 format.</h2>
 <h2>
-02/15/2006: Version 1.34 supports WSR-88D Level II Build 8 format.</h2>
+Version 1.39 supports WSR-88D Level II Build 10 format.</h2>
+<h2>
+Version 1.34 supports WSR-88D Level II Build 8 format.</h2>
 RSL can read both the old and new WSR-88D Level II data format.
 <h2>
 Version 1.33 supports WSR-88D Level II Build 5 format.</h2>
diff --git a/nsig.c b/nsig.c
index 7e5c3c1281d60ffd719e11d5824a97a1c4412a2d..256f26501fffc4d5037dc0876ca8bb2e956b2e7b 100644 (file)
--- a/nsig.c
+++ b/nsig.c
@@ -442,7 +442,7 @@ NSIG_Sweep **nsig_read_sweep(FILE *fp, NSIG_Product_file *prod_file)
    */
 
 #define Vprint
-#undef  Vprint
+/* #undef  Vprint */
   /* Determine if we need to byte-swap values. */
   (void)nsig_endianess(&prod_file->rec1);
   
@@ -511,10 +511,10 @@ NSIG_Sweep **nsig_read_sweep(FILE *fp, NSIG_Product_file *prod_file)
   /* This is a NEW sweep. */
   iray = 0;
 #ifdef Vprint
-  {int isweep;
+  int isweep;
   isweep = NSIG_I2(idh[0]->sweep_num);
   printf("Number of rays in sweep %d is %d\n", isweep, max_rays);
-  }
+  
 #endif
   /* Allocate memory for sweep. */
   s = (NSIG_Sweep **) calloc (nparams, sizeof(NSIG_Sweep*));
index 6ce808183a7f0c14db53f6a04312a3039a244eb6..03d739f75fe5b339ae31f5945bfde81e7e422d52 100644 (file)
@@ -240,17 +240,6 @@ RSL_nsig_to_radar
   if (radar_verbose_flag)
     fprintf(stderr, "Read %d bytes for rec2.\n", n);
 
-   /** Test for scan mode -- If scan is a RHI will return NULL  **/
-   /** because RSL can't handle RHI's.  In the future, replace  **/
-   /** NULL will a routine to convert RHI's to RSL Format       **/
-   ant_scan_mode =NSIG_I2(prod_file->rec2.task_config.scan_info.ant_scan_mode);
-   if(ant_scan_mode == 2)
-      {
-      if (radar_verbose_flag)
-      fprintf(stderr, "RHI scan detected. Unable to process, returning NULL.\n");
-      /*      return NULL; */
-      }
-  
   /* Count the bits set in 'data_mask' to determine the number
    * of parameters present.
    */
index 0d3af56a2311e6496895e3bb56b8a4fb7777ff3a..e281486ef5bc388d62b3ee243386cb8b581d8ac3 100644 (file)
@@ -431,7 +431,9 @@ void RSL_radar_to_uf_fp(Radar *r, FILE *fp)
             /* ---- Begining of FIELD HEADER. */
             if (q_fh) {
               uf_fh = uf+current_fh_index;
-              uf_fh[1] = scale_factor = 100;
+             if (k != PH_INDEX) scale_factor = 100;
+             else scale_factor = 10;
+              uf_fh[1] = scale_factor;
               uf_fh[2] = ray->h.range_bin1/1000.0;
               uf_fh[3] = ray->h.range_bin1 - (1000*uf_fh[2]);
               uf_fh[4] = ray->h.gate_size;
diff --git a/rsl.h b/rsl.h
index a8217656b9d42f3a2a822165314947076ef33100..b0dfb08400523cd6b2dac6b91c19d5dc6f7708bd 100644 (file)
--- a/rsl.h
+++ b/rsl.h
@@ -27,7 +27,7 @@
 #include "config.h"
 #endif
 
-#define RSL_VERSION_STR "v1.41"
+#define RSL_VERSION_STR "v1.42"
 
 /**********************************************************************/
 /* Configure: Define USE_TWO_BYTE_PRECISION to have RSL store internal*/