ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/lev0/apps/decode_dayfile.c
Revision 1.25 - (view) (annotate) - [select for diffs]
Thu Aug 21 23:43:39 2014 UTC (9 years, 1 month ago) by arta
Branch: MAIN
CVS Tags: HEAD, Ver_8-10, Ver_8-11, Ver_8-12, Ver_8-6, Ver_8-7, Ver_8-8, Ver_9-0, Ver_9-1, Ver_9-2, Ver_9-3, Ver_9-4, Ver_9-41, Ver_9-5, Ver_LATEST
Changes since 1.24: +14 -2 lines
Diff to previous 1.24
Fix broken build.

Revision 1.24 - (view) (annotate) - [select for diffs]
Tue Mar 15 21:01:16 2011 UTC (12 years, 6 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-13, Ver_5-14, Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_7-0, Ver_7-1, Ver_8-0, Ver_8-1, Ver_8-2, Ver_8-3, Ver_8-4, Ver_8-5
Changes since 1.23: +1 -2 lines
Diff to previous 1.23
#332 - Remove assert()

Revision 1.23 - (view) (annotate) - [select for diffs]
Tue Jul 20 16:57:40 2010 UTC (13 years, 2 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-10, Ver_5-11, Ver_5-12
Changes since 1.22: +1 -0 lines
Diff to previous 1.22
Added ident line at beginning of file.
> #ident "$Header: decode_dayfile,v 1.22, Mon Jun 7 20:42:49 2010 UTC carl Exp $"

Revision 1.22 - (view) (annotate) - [select for diffs]
Mon Jun 7 21:42:49 2010 UTC (13 years, 3 months ago) by carl
Branch: MAIN
Changes since 1.21: +15 -5 lines
Diff to previous 1.21
fixes for TRAC ticket #287 which fixes compiler warning messages when compiling decode_dayfile executable

Revision 1.21 - (view) (annotate) - [select for diffs]
Tue Jun 1 19:47:36 2010 UTC (13 years, 3 months ago) by carl
Branch: MAIN
Changes since 1.20: +1 -0 lines
Diff to previous 1.20
Added declaration of INVALtime to compile successfully on production

Revision 1.20 - (view) (annotate) - [select for diffs]
Wed Oct 14 19:26:36 2009 UTC (13 years, 11 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-6, Ver_5-7, Ver_5-8, Ver_5-9
Changes since 1.19: +8 -7 lines
Diff to previous 1.19
decode_dayfile.c:Add compiler warning fix as shown below

diff -r1.19 decode_dayfile.c
384c384
<   for(i=0; i < HKDDF_READ_ARRAY_SIZE;i++) ptr_read_in_buffer[i]=0; ;
---
new>   for(i=0; i < HKDDF_READ_ARRAY_SIZE;i++) ptr_read_in_buffer[i]= '\0'; ;
397c397
<   *(ptr_read_in_buffer + i)=NULL;
---
new>   *(ptr_read_in_buffer + i)= '\0';
482a483,484
>
>
499d500
<
881c882
<     if (*(read_in_buffer+5+factor) == (int)NULL)
---
new>     if (*(read_in_buffer+5+factor) == '\0')
1297c1298
<     if (*(read_in_buffer+5+factor) == (int)NULL)
---
new>     if (*(read_in_buffer+5+factor) == '\0')
1442c1443
<     if (*(read_in_buffer+5+factor) == (int)NULL)
---
new>     if (*(read_in_buffer+5+factor) == '\0')
1717c1718
<     if (*(read_in_buffer+5+factor) == (int)NULL)
---
new>     if (*(read_in_buffer+5+factor) == '\0')

Revision 1.19 - (view) (annotate) - [select for diffs]
Thu Jul 16 17:39:47 2009 UTC (14 years, 2 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-2, Ver_5-3, Ver_5-5
Changes since 1.18: +42 -16 lines
Diff to previous 1.18
decode_dayfile.c: Updates done to fix bug #164 include:
--Updated extern declaration of find_file_version_number() function to contain argument apid.
--Updated calls to find_file_version_number() function to contain argument apid.
--Updated if statements to check if packet version number is in window to used merged packet names(obt,isp,seq).
--Created print_hk_src_keyword() to print HK_SOURCE values if the packet version number is in window to use merged
packet names. Since this is when we added HK_SOURCE keywords.
--Updated error message when array size is bigger than defined.

Revision 1.18 - (view) (annotate) - [select for diffs]
Fri Jun 5 21:03:51 2009 UTC (14 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17
Modify make system to accommodate non-ifort fortran compiler. All the flags previously defined were specific to ifort. I also added a script that determines which C and Fortran compilers are installed, and then sets those in the make system. You can override the compilers with environment variables - CUSTOM_COMPILER and CUSTOM_FCOMPILER.; Also fix broken gcc build in proj/lev0

Revision 1.17 - (view) (annotate) - [select for diffs]
Fri May 29 21:30:30 2009 UTC (14 years, 3 months ago) by carl
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16
decode_dayfile.c: Updated line to set ENVFILE value to point to production SOURCE_ENV_FOR_HK_DAYFILE_DECODE file for setting of production data series names, map files, hk config files, etc.

Revision 1.16 - (view) (annotate) - [select for diffs]
Thu May 28 23:47:47 2009 UTC (14 years, 3 months ago) by carl
Branch: MAIN
Changes since 1.15: +46 -18 lines
Diff to previous 1.15
decode_dayfile.c: Added new function call check_hk_record_within_time_range to
prevent writing packets with packet-times in the future. Currently the time-range is
set to current-time + 12 hrs. So if packet's packet-time is greater than time-range
then the packet data is NOT written to DRMS data series. Updated documentation for Doxygen
with the check_hk_record_time_range and check_hk_record_exits information. Updated
documentation for D0xygen showing correct API and parameters. Explicitly defined array
sizes for array's used in function calls. Add ERROR message when processing packets
with packet-times that are greater than current-time + 12 hours. Updated array size
variables to define variables.

Revision 1.15 - (view) (annotate) - [select for diffs]
Tue Mar 17 23:08:31 2009 UTC (14 years, 6 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-1
Changes since 1.14: +692 -273 lines
Diff to previous 1.14
decode_dayfile.c: Added updates to write HK data to merged data series for
a threshold setting of packet version number 1.194. Also added code to prevent
writing an existing record. Added code to write HK_SOURCE keyword value to HK byAPID data series.

Revision 1.14 - (view) (annotate) - [select for diffs]
Wed Oct 29 16:39:55 2008 UTC (14 years, 10 months ago) by carl
Branch: MAIN
CVS Tags: Ver_5-0
Changes since 1.13: +68 -21 lines
Diff to previous 1.13
decode_dayfile.c:Updated Doxygen documentation to match more of the format of the template file.
(http://jsoc.stanford.edu/doxygen_html/group__module__template.html).

Revision 1.13 - (view) (annotate) - [select for diffs]
Tue Oct 21 21:11:46 2008 UTC (14 years, 11 months ago) by arta
Branch: MAIN
Changes since 1.12: +4 -6 lines
Diff to previous 1.12
Reorganize and fix doxygen tags in our modules

Revision 1.12 - (view) (annotate) - [select for diffs]
Fri Oct 17 22:53:46 2008 UTC (14 years, 11 months ago) by carl
Branch: MAIN
Changes since 1.11: +10 -6 lines
Diff to previous 1.11
decode_dayfile.c: After testing decode_dayfile executable against LMSAL dayfiles from hmisdp-mon machine
for apid 129 and 29. I found a case where the PACKET TIME is a bad time for apid 129. For these cases
I updated code to skip processing this packet with bad packet time, write error message to log and
continue processing other packets in dayfile. I removed code that causes execution to exit when hit
bad packet time. Since a bad packet time for sdo apid 129 implies no config file to decode packet, its
best to just skip and continue processing other packets. This only effect sdo apid packets and does not
effect hmi or aia apid packets.

Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Oct 6 17:36:50 2008 UTC (14 years, 11 months ago) by carl
Branch: MAIN
CVS Tags: Ver_4-7
Changes since 1.10: +11 -1 lines
Diff to previous 1.10
decode_dayfile.c: Aded missing else case which call find_file_version_number function to the save_packet_value1 function and save_packet_value1 function.

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Oct 2 23:25:26 2008 UTC (14 years, 11 months ago) by carl
Branch: MAIN
Changes since 1.9: +10 -1 lines
Diff to previous 1.9
decode_dayfile.c: Added missing lines in save_packet_values2 function which cause segment fault when running without -p flag.

Revision 1.9 - (view) (annotate) - [select for diffs]
Thu Oct 2 21:55:33 2008 UTC (14 years, 11 months ago) by carl
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8
 decode_dayfile.c: Added /** for picking up Doxygen.

Revision 1.8 - (view) (annotate) - [select for diffs]
Wed Oct 1 18:59:41 2008 UTC (14 years, 11 months ago) by carl
Branch: MAIN
Changes since 1.7: +42 -2 lines
Diff to previous 1.7
decode_dayfile.c: Added dOxygen documentation.

Revision 1.7 - (view) (annotate) - [select for diffs]
Fri Sep 12 19:41:19 2008 UTC (15 years ago) by carl
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6
decode_dayfile.c: Added to help the need to set environment variables HK_DDF_PROJECT_NAME_xxx

Revision 1.6 - (view) (annotate) - [select for diffs]
Thu Sep 11 18:18:48 2008 UTC (15 years ago) by carl
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
decode_dayfile.c:updated the environment variable file path to use one on production.

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Sep 11 18:16:11 2008 UTC (15 years ago) by carl
Branch: MAIN
Changes since 1.4: +543 -304 lines
Diff to previous 1.4
decode_dayfile.c:Updated decode_dayfile.c to process SDO-HK dayfiles like dayfiles for APID 129.

Revision 1.4 - (view) (annotate) - [select for diffs]
Wed May 28 20:46:24 2008 UTC (15 years, 4 months ago) by carl
Branch: MAIN
CVS Tags: Ver_4-4, Ver_4-5, Ver_4-6
Changes since 1.3: +9 -20 lines
Diff to previous 1.3
decode_dayfile.c: Updated SDO_to_DRMS_time function to a static function and made this match Art's function in hmi_time_setting.c

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed May 21 23:43:34 2008 UTC (15 years, 4 months ago) by carl
Branch: MAIN
CVS Tags: Ver_4-3
Changes since 1.2: +2 -2 lines
Diff to previous 1.2
decode_dayfile.c: Added change to process Signed byte value into a short variable. View update difference below:
<       keytype= DRMS_TYPE_CHAR;
---
>       keytype= DRMS_TYPE_SHORT;
401c401
<       key_anyval.char_val = kw->eng_value.int8_val;
---
>       key_anyval.short_val = (int16_t)kw->eng_value.int8_val;

Revision 1.2 - (view) (annotate) - [select for diffs]
Thu Apr 10 18:44:53 2008 UTC (15 years, 5 months ago) by carl
Branch: MAIN
Changes since 1.1: +31 -43 lines
Diff to previous 1.1
Removed Warning messages seen during compiling. Update envfile setting to
file path on production account. Removed adding 33.0 to the PACKET_TIME value.

Revision 1.1 - (view) (annotate) - [select for diffs]
Tue Apr 8 22:48:10 2008 UTC (15 years, 5 months ago) by carl
Branch: MAIN
Added C program for decoding housekeeping dayfiles and writing hk keyword names and values to DRMS. When run program with the -p flag write report to standard output on the keyword name and values.

Convenience Links

Links to HEAD: (view) (annotate) Links to Ver_8-10: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a