Fix broken build.
#332 - Remove assert()
Added ident line at beginning of file. > #ident "$Header: decode_dayfile,v 1.22, Mon Jun 7 20:42:49 2010 UTC carl Exp $"
fixes for TRAC ticket #287 which fixes compiler warning messages when compiling decode_dayfile executable
Added declaration of INVALtime to compile successfully on production
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')
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.
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
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.
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.
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.
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).
Reorganize and fix doxygen tags in our modules
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.
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.
decode_dayfile.c: Added missing lines in save_packet_values2 function which cause segment fault when running without -p flag.
decode_dayfile.c: Added /** for picking up Doxygen.
decode_dayfile.c: Added dOxygen documentation.
decode_dayfile.c: Added to help the need to set environment variables HK_DDF_PROJECT_NAME_xxx
decode_dayfile.c:updated the environment variable file path to use one on production.
decode_dayfile.c:Updated decode_dayfile.c to process SDO-HK dayfiles like dayfiles for APID 129.
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
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;
Removed Warning messages seen during compiling. Update envfile setting to file path on production account. Removed adding 33.0 to the PACKET_TIME value.
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.
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.