Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

utilities.cc File Reference

#include "matrixbk.hh"
#include "slcimage.hh"
#include "constants.hh"
#include "refsystems.hh"
#include "utilities.hh"
#include "ioroutines.hh"
#include "conversion.hh"
#include "exceptions.hh"
#include <strstream>
#include <iomanip>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <cstdio>
#include <ctime>

Go to the source code of this file.

Functions

char * strptime (const char *s, const char *format, struct tm *tm)
void getorb (const slcimage &image, const input_pr_orbits &inputorb, int16 ID)
void convertgetorbout (int16 FILEID, const char *file)
void solve33 (matrix< real8 > &RESULT, const matrix< real8 > &rhs, const matrix< real8 > &A)
matrix< real8solve22 (const matrix< real8 > &y, const matrix< real8 > &A)
uint nextpow2 (real8 w)
real8 polyval (real8 x, real8 y, const matrix< real8 > &coeff)
real8 polyval (real8 x, real8 y, const matrix< real8 > &coeff, int32 degreee)
matrix< real4polyval (const matrix< real4 > &x, const matrix< real4 > &y, const matrix< real8 > &coeff, int32 degreee)
real8 polyval1d (real8 x, const matrix< real8 > &coeff)
void normalize (matrix< real4 > &data, real8 min, real8 max)
void normalize (matrix< real8 > &data, real8 min, real8 max)
void BBparBperp (real8 &B, real8 &Bpar, real8 &Bperp, const cn Master, const cn Point, const cn Slave)
void BBhBv (real8 &B, real8 &Bh, real8 &Bv, const cn Master, const cn Slave)
int32 Btemp (const char *utc_master, const char *utc_slave)
void BalphaBhBvBparBperpTheta (real8 &B, real8 &alpha, real8 &Bh, real8 &Bv, real8 &Bpar, real8 &Bperp, real8 &theta, const cn M, const cn P, const cn S)
void shiftazispectrum (matrix< complr4 > &data, const slcimage &slave, const real4 shift)


Function Documentation

void BalphaBhBvBparBperpTheta real8 B,
real8 alpha,
real8 Bh,
real8 Bv,
real8 Bpar,
real8 Bperp,
real8 theta,
const cn  M,
const cn  P,
const cn  S
 

Definition at line 1369 of file utilities.cc.

References cos(), cn::min(), cn::norm2(), real8, sin(), sqr(), and TRACE_FUNCTION.

Referenced by snaphu_unwrap().

void BBhBv real8 B,
real8 Bh,
real8 Bv,
const cn  Master,
const cn  Slave
 

Definition at line 1296 of file utilities.cc.

References cn::dist(), cn::norm(), bk_messages::print(), real8, sqr(), TRACE_FUNCTION, and WARNING.

void BBparBperp real8 B,
real8 Bpar,
real8 Bperp,
const cn  Master,
const cn  Point,
const cn  Slave
 

Definition at line 1267 of file utilities.cc.

References cn::angle(), cn::dist(), cn::min(), real8, sqr(), and TRACE_FUNCTION.

Referenced by dinsar().

int32 Btemp const char *  utc_master,
const char *  utc_slave
 

Definition at line 1323 of file utilities.cc.

References Btemp(), int32, ONE27, real8, strptime(), and TRACE_FUNCTION.

Referenced by Btemp(), and coarseporbit().

void convertgetorbout int16  FILEID,
const char *  file
 

Definition at line 255 of file utilities.cc.

References bk_assert(), DEBUG, bk_messages::get_str(), INFO, int16, int32, MASTERID, ONE27, bk_messages::print(), PRINT_ERROR, processcontrol, real8, bk_messages::reset(), SLAVEID, some_error, TRACE_FUNCTION, and WARNING.

Referenced by main().

void getorb const slcimage image,
const input_pr_orbits inputorb,
int16  ID
 

Definition at line 74 of file utilities.cc.

References bk_assert(), DEBUG, EIGHTY, ERROR, bk_messages::get_str(), getanswer(), int16, int32, window::linehi, window::linelo, input_pr_orbits::m_orbdir, MASTERID, NaN, ONE27, slcimage::originalwindow, slcimage::prf, bk_messages::print(), PRINT_ERROR, PROGRESS, real8, input_pr_orbits::s_orbdir, SLAVEID, some_error, strptime(), input_pr_orbits::timebefore, input_pr_orbits::timeinterval, TRACE_FUNCTION, unhandled_case_error, slcimage::utc1, and WARNING.

Referenced by main().

uint nextpow2 real8  w  ) 
 

Definition at line 483 of file utilities.cc.

References int32, real8, TRACE_FUNCTION, and uint.

Referenced by coherence().

void normalize matrix< real8 > &  data,
real8  min,
real8  max
 

Definition at line 1246 of file utilities.cc.

void normalize matrix< real4 > &  data,
real8  min,
real8  max
 

Definition at line 1218 of file utilities.cc.

matrix<real4> polyval const matrix< real4 > &  x,
const matrix< real4 > &  y,
const matrix< real8 > &  coeff,
int32  degreee
 

Definition at line 798 of file utilities.cc.

real8 polyval real8  x,
real8  y,
const matrix< real8 > &  coeff,
int32  degreee
 

Definition at line 654 of file utilities.cc.

real8 polyval real8  x,
real8  y,
const matrix< real8 > &  coeff
 

Definition at line 511 of file utilities.cc.

real8 polyval1d real8  x,
const matrix< real8 > &  coeff
 

Definition at line 1183 of file utilities.cc.

References input_error, int32, matrix< Type >::lines(), PRINT_ERROR, real8, matrix< Type >::size(), sum(), and TRACE_FUNCTION.

Referenced by orbit::getxyz(), and slant2hschwabisch().

void shiftazispectrum matrix< complr4 > &  data,
const slcimage slave,
const real4  shift
 

Definition at line 1429 of file utilities.cc.

References abs(), cos(), dumpasc(), slcimage::f_DC_a0, slcimage::f_DC_a1, slcimage::f_DC_a2, int32, matrix< Type >::lines(), mat2cr4(), ONE27, PI, matrix< Type >::pixels(), slcimage::prf, real4, real8, matrix< Type >::resize(), slcimage::rsr2x, sin(), sqr(), and TRACE_FUNCTION.

matrix<real8> solve22 const matrix< real8 > &  y,
const matrix< real8 > &  A
 

Definition at line 445 of file utilities.cc.

References input_error, matrix< Type >::lines(), matrix< Type >::pixels(), PRINT_ERROR, and TRACE_FUNCTION.

void solve33 matrix< real8 > &  RESULT,
const matrix< real8 > &  rhs,
const matrix< real8 > &  A
 

Definition at line 381 of file utilities.cc.

References input_error, matrix< Type >::lines(), matrix< Type >::pixels(), PRINT_ERROR, real8, and TRACE_FUNCTION.

Referenced by lp2xyz().

char* strptime const char *  s,
const char *  format,
struct tm *  tm
 

Referenced by Btemp(), slcimage::fillslcimage(), getorb(), inittest(), main(), readdat(), and readleader().


Generated on Fri Apr 22 15:58:15 2005 for Doris by doxygen 1.3.6