]> Pileus Git - ~andy/rsl/commitdiff
Merge branch 'master' into aweather
authorAndy Spencer <andy753421@gmail.com>
Sun, 28 Aug 2011 20:24:04 +0000 (20:24 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 28 Aug 2011 20:32:45 +0000 (20:32 +0000)
Conflicts:
Makefile.am
configure.in
src/rsl.h

CHANGES
README
configure.ac
doc/RSL_radar_intro.html
doc/index.html
doc/whats_new.html
src/Makefile.am
src/nsig.c
src/nsig_to_radar.c
src/radar_to_uf.c

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.
diff --git a/README b/README
index 9062c340cd7b6857a4bf2e40218cde4a811b948c..6ec254dbbf481d147400754e4aa1de892e590e6d 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 fd7d07255f73b2f7194901a0ebb62fa0dd6b0f71..2b59634bc41bb6c6f5606535bd38bd123923cbed 100644 (file)
@@ -1,5 +1,5 @@
 # Process this file with autoconf to produce a configure script.
-AC_INIT(rsl, 1.41)
+AC_INIT(rsl, 1.42)
 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign])
 
 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 a28468a425b3f7670839542220c52d4f7850cc67..903b49a13122f8e2a639af5ad803d774adf4e7a1 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
@@ -151,6 +152,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>
index 511b83028c2aca082a61097059f911168933b51c..dbc3fd391b6c684210e2d2ac81690dcd1b994a33 100644 (file)
@@ -11,7 +11,7 @@ headers = africa.h dorade.h lassen.h \
          wsr88d.h \
          $(include_HEADERS)
 
-librsl_la_LDFLAGS  = -version-info 1:41
+librsl_la_LDFLAGS  = -version-info 1:42
 librsl_la_CPPFLAGS = -DDATADIR="\"$(datadir)/rsl\"" 
 librsl_la_SOURCES  = \
        rapic_parse.y rapic_scan.l rapic_to_radar.c rapic_routines.c \
index c00b5ed44257065c2c072c8610aff04a22bb5fb6..9ae591356cbd02b6d50b82377f452aef2e44cf31 100644 (file)
@@ -445,7 +445,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);
   
@@ -514,10 +514,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 5dda3ffb3450bdab18a8b46c098107cfb510ca1e..166aced2537babc0478a92edcc087b03f1747da8 100644 (file)
@@ -242,17 +242,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 b5ca2d4bb4409702588d629354f02b28d146ef42..f5a18abf3821d494808486cfbf8c3ce89cca5021 100644 (file)
@@ -432,7 +432,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;