/* 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.
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\
-v1.41 (Released 6/22/2011)
+v1.42 (Released 7/12/2011)
This is the README file for the Radar Software Library (RSL).
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
<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
<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>
<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
<script src="/trmm_gv/trailer.js"></script>
-
+</body>
</HTML>
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>
*/
#define Vprint
-#undef Vprint
+/* #undef Vprint */
/* Determine if we need to byte-swap values. */
(void)nsig_endianess(&prod_file->rec1);
/* 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*));
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.
*/
/* ---- 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;
#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*/