CVS log for JSOC/proj/sharp/apps/sw_functions.c

(logo)

Help

(back) Up to [Development] / JSOC / proj / sharp / apps

Request diff between arbitrary revisions


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.43 / (view) - annotate - [select for diffs] , Wed May 26 03:45:48 2021 UTC (2 years ago) by mbobra
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, HEAD
Changes since 1.42: +1 -3 lines
Diff to previous 1.42 to selected 1.7
removed debug variable countabit

Revision 1.42 / (view) - annotate - [select for diffs] , Wed May 26 03:44:14 2021 UTC (2 years ago) by mbobra
Branch: MAIN
Changes since 1.41: +6 -4 lines
Diff to previous 1.41 to selected 1.7
removed some print statements

Revision 1.41 / (view) - annotate - [select for diffs] , Tue May 25 00:17:33 2021 UTC (2 years ago) by mbobra
Branch: MAIN
Changes since 1.40: +0 -1 lines
Diff to previous 1.40 to selected 1.7
removed check for ( (derx_los[j * nx + i] + dery_los[j * nx + i]) == 0) in computeLOSderivative

Revision 1.40 / (view) - annotate - [select for diffs] , Mon May 24 21:17:06 2021 UTC (2 years ago) by mbobra
Branch: MAIN
Changes since 1.39: +20 -10 lines
Diff to previous 1.39 to selected 1.7
fixed some issues with the LOS functions
added documentation

Revision 1.39 / (view) - annotate - [select for diffs] , Thu Mar 18 00:53:40 2021 UTC (2 years, 2 months ago) by mbobra
Branch: MAIN
Changes since 1.38: +10 -4 lines
Diff to previous 1.38 to selected 1.7
Performed a check on count_mask before assigning a value to ERRMSHA to avoid a divide by zero error.
If count_mask is indeed zero then ERRMSHA is now NaN.

Revision 1.38 / (view) - annotate - [select for diffs] , Tue Jun 30 21:38:17 2020 UTC (2 years, 11 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_9-41
Changes since 1.37: +136 -0 lines
Diff to previous 1.37 to selected 1.7
Added LOS keywords

Revision 1.37 / (view) - annotate - [select for diffs] , Fri Oct 30 19:21:28 2015 UTC (7 years, 7 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-12, Ver_8-11
Changes since 1.36: +28 -39 lines
Diff to previous 1.36 to selected 1.7
reverted to 1.35 and added comment to SAVNCPP header

Revision 1.36 / (view) - annotate - [select for diffs] , Fri Oct 30 17:53:02 2015 UTC (7 years, 7 months ago) by mbobra
Branch: MAIN
Changes since 1.35: +40 -28 lines
Diff to previous 1.35 to selected 1.7
modified the documentation for SAVNCPP; didn't write the units correctly (as square arcsecond) in version 1.32

Revision 1.35 / (view) - annotate - [select for diffs] , Mon Mar 2 21:41:31 2015 UTC (8 years, 3 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-8, Ver_8-10
Changes since 1.34: +11 -11 lines
Diff to previous 1.34 to selected 1.7
out of bounds problem still remained in Function 8; fixed it

Revision 1.34 / (view) - annotate - [select for diffs] , Fri Feb 27 19:49:43 2015 UTC (8 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.33: +48 -55 lines
Diff to previous 1.33 to selected 1.7
There was a counting out-of-bounds problem with the functions that produce MEANGBZ, MEANGBT, and MEANGBH. I re-coded it such that the error terms are calculated separately; further, the error arrays are initalized to zero and the edge pixels are ignored (since they will be selected out by the bitmap and conf_disambig bitmaps anyway).

Revision 1.33 / (view) - annotate - [select for diffs] , Fri Jan 23 01:18:13 2015 UTC (8 years, 4 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-7
Changes since 1.32: +28 -23 lines
Diff to previous 1.32 to selected 1.7
changed the numerical derivative. here is a description of the problem that i fixed:

In computeJz(), the newly malloc'd jz array has its interior
points filled with values but its boundary points are left
alone:

    for (i = 1; i <= nx-2; i++)
    {
        for (j = 1; j <= ny-2; j++)
        {
            // calculate jz at all points
            ...

In all subsequent functions the array jz is used whole, including
the uninitialized border.

I ran your test case in the debugger.  On n02, jz was 0 on the
border; on solar3, I got wild values

(gdb) p jz[0]
$16 = 1.37765386e+10
(gdb) p jz[1]
$17 = 1.35754556e-19
(gdb) p jz[2]
$18 = 1.35631939e-19

If the code relies on the border being 0, then it was pure luck
that it ran correctly on x86_64.

Revision 1.32 / (view) - annotate - [select for diffs] , Fri Sep 5 20:59:48 2014 UTC (8 years, 8 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-6
Changes since 1.31: +11 -8 lines
Diff to previous 1.31 to selected 1.7
-- modified sign error in horizontal component of lorentz force
-- changed units of SAVNCPP to amps/arcsec

Revision 1.31 / (view) - annotate - [select for diffs] , Thu Jun 5 20:27:04 2014 UTC (8 years, 11 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-5
Changes since 1.30: +66 -10 lines
Diff to previous 1.30 to selected 1.7
added lorentz force function to calculate keys TOTFX, TOTFY, TOTFZ, TOTBSQ, EPSX, EPSY, EPSZ

Revision 1.30 / (view) - annotate - [select for diffs] , Mon Jun 2 18:46:44 2014 UTC (8 years, 11 months ago) by mbobra
Branch: MAIN
Changes since 1.29: +68 -15 lines
Diff to previous 1.29 to selected 1.7
jesper's gaussian convolution function left a hwidth stripe of 0's along the edge of the image. i fixed this by padding with zeros prior to convolving. this involves creating some intermediate arrays, so both sharp.c and update_sharp_keys.c also need to be updated with some mallocs and different calls to the R parameter function.

Revision 1.29 / (view) - annotate - [select for diffs] , Fri May 16 20:55:54 2014 UTC (9 years ago) by mbobra
Branch: MAIN
Changes since 1.28: +15 -4 lines
Diff to previous 1.28 to selected 1.7
No code change. Added documentation to the header of the R function.

Revision 1.28 / (view) - annotate - [select for diffs] , Thu Mar 13 17:40:43 2014 UTC (9 years, 2 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-4
Changes since 1.27: +0 -3 lines
Diff to previous 1.27 to selected 1.7
RE-REVERT
jesper has modified fresize.c such that there is no need to check on the dimension of the convolution kernel with respect to the array size

Revision 1.27 / (view) - annotate - [select for diffs] , Wed Mar 5 19:51:19 2014 UTC (9 years, 2 months ago) by xudong
Branch: MAIN
Changes since 1.26: +946 -866 lines
Diff to previous 1.26 to selected 1.7
reverted back to v1.25

Revision 1.26 / (view) - annotate - [select for diffs] , Wed Feb 19 14:59:25 2014 UTC (9 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.25: +1 -81 lines
Diff to previous 1.25 to selected 1.7
Revert the versions of several sharps source-code files to make them intercompatible.

Revision 1.25 / (view) - annotate - [select for diffs] , Tue Feb 18 23:35:03 2014 UTC (9 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 to selected 1.7
remedied an incorrect check

Revision 1.24 / (view) - annotate - [select for diffs] , Tue Feb 18 23:18:07 2014 UTC (9 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.23: +4 -8 lines
Diff to previous 1.23 to selected 1.7
more conservative comparision between convolution kernel and array size

Revision 1.23 / (view) - annotate - [select for diffs] , Tue Feb 18 19:50:19 2014 UTC (9 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.22: +85 -1 lines
Diff to previous 1.22 to selected 1.7
added R parameter (adapted from Schrijver 2007)

Revision 1.22 / (view) - annotate - [select for diffs] , Mon Nov 11 23:21:21 2013 UTC (9 years, 6 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-3, Ver_8-2
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 to selected 1.7
removed some print statements

Revision 1.21 / (view) - annotate - [select for diffs] , Mon Nov 11 23:18:40 2013 UTC (9 years, 6 months ago) by mbobra
Branch: MAIN
Changes since 1.20: +74 -42 lines
Diff to previous 1.20 to selected 1.7
: fixed error in MEANSHR, SHRGT45, ERRBZ wherein all were giving nans at times -- this was due to some weird condition being satisfied, so now i check on that condition

Revision 1.20 / (view) - annotate - [select for diffs] , Sat Nov 2 18:53:05 2013 UTC (9 years, 6 months ago) by mbobra
Branch: MAIN
Changes since 1.19: +131 -76 lines
Diff to previous 1.19 to selected 1.7
updated error analysis

Revision 1.19 / (view) - annotate - [select for diffs] , Fri Oct 18 22:36:02 2013 UTC (9 years, 7 months ago) by mbobra
Branch: MAIN
Changes since 1.18: +41 -74 lines
Diff to previous 1.18 to selected 1.7
corrected gamma, alpha, and error in alpha
this is an incomplete version -- errors in errors remain
but i am pushing it over now so it is available on the web

Revision 1.18 / (view) - annotate - [select for diffs] , Tue Oct 1 00:57:44 2013 UTC (9 years, 8 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-1
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 to selected 1.7
added an "if jz eq nan, skip" line in SAVNCPP calculation

Revision 1.17 / (view) - annotate - [select for diffs] , Wed Jul 24 01:35:08 2013 UTC (9 years, 10 months ago) by mbobra
Branch: MAIN
Changes since 1.16: +17 -7 lines
Diff to previous 1.16 to selected 1.7
corrected indexing in the computation of jz_err in computeJz()

Revision 1.16 / (view) - annotate - [select for diffs] , Wed Jul 17 23:06:57 2013 UTC (9 years, 10 months ago) by mbobra
Branch: MAIN
Changes since 1.15: +36 -36 lines
Diff to previous 1.15 to selected 1.7
removed printf statements

Revision 1.15 / (view) - annotate - [select for diffs] , Mon Jul 8 22:02:22 2013 UTC (9 years, 10 months ago) by mbobra
Branch: MAIN
Changes since 1.14: +91 -102 lines
Diff to previous 1.14 to selected 1.7
Changed all sums to doubles instead of floats, since there is a significant loss of precision in summing millions of floats:

P% cat prec.c
#include <stdio.h>
#include <stdlib.h>

main()
  {
  float sum = 0.0;
  double dsum = 0.0;
  int n = 13000000;
  int i;

  for (i=0; i<n; i++)
    {
    sum += 1.333;
    dsum += 1.333;
    }

  printf("avg = %f, davg = %f\n", sum/n, dsum/n);
  }

P% cc prec.c -o prec
P% prec
avg = 1.181585, davg = 1.333000
P%

Revision 1.14 / (view) - annotate - [select for diffs] , Thu Jul 4 01:16:52 2013 UTC (9 years, 10 months ago) by mbobra
Branch: MAIN
Changes since 1.13: +151 -83 lines
Diff to previous 1.13 to selected 1.7
now contains a unique cvs version number
initialized some uninitalized variables

Revision 1.13 / (view) - annotate - [select for diffs] , Fri May 31 21:47:15 2013 UTC (10 years ago) by mbobra
Branch: MAIN
Changes since 1.12: +5 -4 lines
Diff to previous 1.12 to selected 1.7
reinstated old version of calculating mean free energy; total free energy remains unchanged

Revision 1.12 / (view) - annotate - [select for diffs] , Thu May 30 22:45:29 2013 UTC (10 years ago) by mbobra
Branch: MAIN
Changes since 1.11: +3 -8 lines
Diff to previous 1.11 to selected 1.7
Hasty last time! Clean-up and modified error in mean free energy calculation.

Revision 1.11 / (view) - annotate - [select for diffs] , Thu May 30 22:26:02 2013 UTC (10 years ago) by mbobra
Branch: MAIN
Changes since 1.10: +17 -26 lines
Diff to previous 1.10 to selected 1.7
Corrected factor of 8*PI in total and mean free energy calculation

Revision 1.10 / (view) - annotate - [select for diffs] , Mon May 20 23:01:34 2013 UTC (10 years ago) by mbobra
Branch: MAIN
Changes since 1.9: +60 -295 lines
Diff to previous 1.9 to selected 1.7
Oops, last commit used a 6th-order finite difference method. I replace it with a second-order finite difference method.

Revision 1.9 / (view) - annotate - [select for diffs] , Mon May 20 22:55:32 2013 UTC (10 years ago) by mbobra
Branch: MAIN
Changes since 1.8: +490 -156 lines
Diff to previous 1.8 to selected 1.7
Rewrote module to compute errors using formal error propagation and VFISV error arrays

Revision 1.8 / (view) - annotate - [select for diffs] , Sat Feb 9 02:39:20 2013 UTC (10 years, 3 months ago) by mbobra
Branch: MAIN
CVS Tags: Ver_8-0
Changes since 1.7: +8 -8 lines
Diff to previous 1.7
re-modified Jz calculation (a bit hasty last time)

Revision 1.7 / (view) - annotate - [selected] , Fri Feb 8 23:41:13 2013 UTC (10 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6
corrected error in rsun_ref / rsun_obs

Revision 1.6 / (view) - annotate - [select for diffs] , Tue Feb 5 18:45:55 2013 UTC (10 years, 3 months ago) by mbobra
Branch: MAIN
Changes since 1.5: +15 -0 lines
Diff to previous 1.5 to selected 1.7
Only changed documentation

Revision 1.5 / (view) - annotate - [select for diffs] , Mon Jan 14 18:27:45 2013 UTC (10 years, 4 months ago) by mbobra
Branch: MAIN
Changes since 1.4: +93 -86 lines
Diff to previous 1.4 to selected 1.7
Use a smoothed jz array using fresize.h routines.
Modified the methodology for calculating alpha.

Revision 1.4 / (view) - annotate - [select for diffs] , Tue Dec 18 23:05:10 2012 UTC (10 years, 5 months ago) by mbobra
Branch: MAIN
Changes since 1.3: +32 -18 lines
Diff to previous 1.3 to selected 1.7
some nans were being propagated into the spaceweather calculations; this is fixed

Revision 1.3 / (view) - annotate - [select for diffs] , Tue Oct 23 17:42:56 2012 UTC (10 years, 7 months ago) by mbobra
Branch: MAIN
Changes since 1.2: +42 -28 lines
Diff to previous 1.2 to selected 1.7
Modified code to select pixels in conf_disambig map that are greater than 70 and pixels in bitmap that are greater than 30.

Revision 1.2 / (view) - annotate - [select for diffs] , Mon Aug 27 18:55:49 2012 UTC (10 years, 9 months ago) by xudong
Branch: MAIN
CVS Tags: Ver_7-1, Ver_7-0
Changes since 1.1: +11 -21 lines
Diff to previous 1.1 to selected 1.7
per Monica's request

Revision 1.1 / (view) - annotate - [select for diffs] , Thu Aug 23 07:38:33 2012 UTC (10 years, 9 months ago) by xudong
Branch: MAIN
CVS Tags: Ver_6-4
Diff to selected 1.7
Update functioning code sharp.c per Monica's request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

Karen Tian
Powered by
ViewCVS 0.9.4