/* * Copyright (C) 1998 by Southwest Research Institute (SwRI) * * All rights reserved under U.S. Copyright Law and International Conventions. * * The development of this Software was supported by contracts NAG5-3148, * NAG5-6855, NAS8-36840, NAG5-2323, and NAG5-7043 issued on behalf of * the United States Government by its National Aeronautics and Space * Administration. Southwest Research Institute grants to the Government, * and others acting on its behalf, a paid-up nonexclusive, irrevocable, * worldwide license to reproduce, prepare derivative works, and perform * publicly and display publicly, by or on behalf of the Government. * Other than those rights granted to the United States Government, no part * of this Software may be reproduced in any form or by any means, electronic * or mechanical, including photocopying, without permission in writing from * Southwest Research Institute. All inquiries should be addressed to: * * Director of Contracts * Southwest Research Institute * P. O. Drawer 28510 * San Antonio, Texas 78228-0510 * * * Use of this Software is governed by the terms of the end user license * agreement, if any, which accompanies or is included with the Software * (the "License Agreement"). An end user will be unable to install any * Software that is accompanied by or includes a License Agreement, unless * the end user first agrees to the terms of the License Agreement. Except * as set forth in the applicable License Agreement, any further copying, * reproduction or distribution of this Software is expressly prohibited. * Installation assistance, product support and maintenance, if any, of the * Software is available from SwRI and/or the Third Party Providers, as the * case may be. * * Disclaimer of Warranty * * SOFTWARE IS WARRANTED, IF AT ALL, IN ACCORDANCE WITH THESE TERMS OF THE * LICENSE AGREEMENT. UNLESS OTHERWISE EXPLICITLY STATED, THIS SOFTWARE IS * PROVIDED "AS IS", IS EXPERIMENTAL, AND IS FOR NON-COMMERCIAL USE ONLY, * AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT * SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. * * Limitation of Liability * * SwRI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED AS A RESULT OF USING, * MODIFYING, CONTRIBUTING, COPYING, DISTRIBUTING, OR DOWNLOADING THIS * SOFTWARE. IN NO EVENT SHALL SwRI BE LIABLE FOR ANY INDIRECT, PUNITIVE, * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGE (INCLUDING LOSS OF BUSINESS, * REVENUE, PROFITS, USE, DATA OR OTHER ECONOMIC ADVANTAGE) HOWEVER IT ARISES, * WHETHER FOR BREACH OF IN TORT, EVEN IF SwRI HAS BEEN PREVIOUSLY ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. YOU HAVE SOLE RESPONSIBILITY FOR ADEQUATE * PROTECTION AND BACKUP OF DATA AND/OR EQUIPMENT USED IN CONNECTION WITH THE * SOFTWARE AND WILL NOT MAKE A CLAIM AGAINST SwRI FOR LOST DATA, RE-RUN TIME, * INACCURATE OUTPUT, WORK DELAYS OR LOST PROFITS RESULTING FROM THE USE OF * THIS SOFTWARE. YOU AGREE TO HOLD SwRI HARMLESS FROM, AND YOU COVENANT NOT * TO SUE SwRI FOR, ANY CLAIMS BASED ON USING THE SOFTWARE. * * Local Laws: Export Control * * You acknowledge and agree this Software is subject to the U.S. Export * Administration Laws and Regulations. Diversion of such Software contrary * to U.S. law is prohibited. You agree that none of the Software, nor any * direct product therefrom, is being or will be acquired for, shipped, * transferred, or reexported, directly or indirectly, to proscribed or * embargoed countries or their nationals, nor be used for nuclear activities, * chemical biological weapons, or missile projects unless authorized by U.S. * Government. Proscribed countries are set forth in the U.S. Export * Administration Regulations. Countries subject to U.S embargo are: Cuba, * Iran, Iraq, Libya, North Korea, Syria, and the Sudan. This list is subject * to change without further notice from SwRI, and you must comply with the * list as it exists in fact. You certify that you are not on the U.S. * Department of Commerce's Denied Persons List or affiliated lists or on the * U.S. Department of Treasury's Specially Designated Nationals List. You agree * to comply strictly with all U.S. export laws and assume sole responsibilities * for obtaining licenses to export or reexport as may be required. * * General * * These Terms represent the entire understanding relating to the use of the * Software and prevail over any prior or contemporaneous, conflicting or * additional, communications. SwRI can revise these Terms at any time * without notice by updating this posting. * * Trademarks * * The SwRI logo is a trademark of SwRI in the United States and other countries. * */ #ident "@(#) err_msg.c 1.37 05/08/19 SwRI" #include #include "ret_codes.h" #include "libbase_idfs.h" /***************************************************************************** * * * IDFS_ERROR_MESSAGE_STR SUBROUTINE * * * * DESCRIPTION * * This routine is called to compose the error string encountered from * * the generic utility software, both libbase_idfs and libtrec_idfs. * * * * INPUT VARIABLES * * SDDAS_SHORT error_code the error code to be processed * * SDDAS_CHAR *e_str ptr to area where string is to be * * returned * * * * USAGE * * idfs_error_message_str (error_code, e_str) * * * * NECESSARY SUBPROGRAMS * * libbase_idfs_error_message_str() processes error codes returned by * * libbase_idfs modules * * libtrec_idfs_error_message_str() processes error codes returned by * * libtrec_idfs modules * * sprintf() creates a string based upon arguments* * and conversion characters * * * * EXTERNAL VARIABLES * * None * * * * INTERNAL VARIABLES * * None * * * * SUBSYSTEM * * Display Level * * * *****************************************************************************/ void idfs_error_message_str (SDDAS_SHORT error_code, SDDAS_CHAR *e_str) { /************************************************************************/ /* Error code generated by generic software? */ /************************************************************************/ switch (error_code) { case LOCATE_NOT_FOUND: case LOCATE_PTR_MALLOC: case LOCATE_EX_REALLOC: case RESET_CSET_MALLOC: case OPEN_PTR_MALLOC: case OPEN_EX_REALLOC: case RTIME_NO_HEADER: case RTIME_NO_DATA: case ALL_FLAG_MALLOC: case ALLOC_HDR_READ_ERROR: case ALLOC_HDR_MALLOC: case ALLOC_HDR_REALLOC: case CAL_DATA_MALLOC: case PARTIAL_READ: case SEL_SEN_NOT_FOUND: case TIME_OFF_MALLOC: case SCOM_TBL_MALLOC: case SCOM_INDEX_MALLOC: case SCOM_SEN_PTR_MALLOC: case SCOM_PTR_MALLOC: case POT_INFO_IDF_ELE_NOT_FOUND: case POT_INFO_IDF_MANY_BYTES: case POT_INFO_IDF_TBL_NUM: case POT_INFO_IDF_CON_NUM: case POT_INFO_IDF_NO_ENTRY: case CCOM_MATCH_MALLOC: case CCOM_VAL_MALLOC: case CONV_MODE_MISMATCH: case GET_ACTION_MALLOC: case POS_NOT_FOUND: case FILE_POS_DATA_GAP: case FILE_POS_MODE: case POS_DATA_READ_ERROR: case POS_HDR_READ_ERROR: case POS_HDR_MALLOC: case POS_HDR_REALLOC: case PBACK_LOS: case PBACK_NEXT_FILE: case RHDR_READ_ERROR: case RHDR_HDR_MALLOC: case RHDR_HDR_REALLOC: case FILL_HEADER: case DREC_NOT_FOUND: case CONV_CAL_MALLOC: case DREC_NO_FILES: case DREC_READ_ERROR: case DREC_HDR_READ_ERROR: case DREC_HDR_MALLOC: case DREC_HDR_REALLOC: case RESET_EULER_REALLOC: case RESET_MODE_REALLOC: case RESET_NOT_FOUND: case RESET_DATA_MALLOC: case RESET_DATA_REALLOC: case RESET_ANGLE_REALLOC: case FILE_POS_EULER: case ALLOC_EV_REALLOC: case CRIT_TBL_NOT_FOUND: case CONST_ANG_MALLOC: case CONST_TEMP_MALLOC: case CNVT_NOT_FOUND: case TBL_MISC_MALLOC: case TBL_MALLOC: case TBL_IDF_ELE_NOT_FOUND: case TBL_IDF_MANY_BYTES: case TBL_IDF_TBL_NUM: case TBL_IDF_CON_NUM: case TBL_IDF_NO_ENTRY: case UPDATE_IDF_ELE_NOT_FOUND: case UPDATE_IDF_MANY_BYTES: case UPDATE_IDF_TBL_NUM: case UPDATE_IDF_CON_NUM: case UPDATE_IDF_NO_ENTRY: case SEN_IDF_ELE_NOT_FOUND: case SEN_IDF_MANY_BYTES: case SEN_IDF_TBL_NUM: case SEN_IDF_CON_NUM: case SEN_IDF_NO_ENTRY: case ONCE_IDF_ELE_NOT_FOUND: case ONCE_IDF_MANY_BYTES: case ONCE_IDF_TBL_NUM: case ONCE_IDF_CON_NUM: case ONCE_IDF_NO_ENTRY: case ONCE_DATA_MALLOC: case ONCE_D_TYPE_MALLOC: case ONCE_TBL_INFO_MALLOC: case ONCE_CTARGET_MALLOC: case ONCE_CLEN_MALLOC: case ONCE_TDW_LEN_MALLOC: case ONCE_SEN_STAT_MALLOC: case BAD_SCPOT_FORMAT: case BAD_PA_FORMAT: case MODE_TBL_SZ_IDF_ELE_NOT_FOUND: case MODE_TBL_SZ_IDF_MANY_BYTES: case MODE_TBL_SZ_IDF_TBL_NUM: case MODE_TBL_SZ_IDF_CON_NUM: case MODE_TBL_SZ_IDF_NO_ENTRY: case EXP_IDF_ELE_NOT_FOUND: case EXP_IDF_MANY_BYTES: case EXP_IDF_TBL_NUM: case EXP_IDF_CON_NUM: case EXP_IDF_NO_ENTRY: case CRIT_IDF_ELE_NOT_FOUND: case CRIT_IDF_MANY_BYTES: case CRIT_IDF_TBL_NUM: case CRIT_IDF_CON_NUM: case CRIT_IDF_NO_ENTRY: case NEW_IDF_ELE_NOT_FOUND: case NEW_IDF_MANY_BYTES: case NEW_IDF_TBL_NUM: case NEW_IDF_CON_NUM: case NEW_IDF_NO_ENTRY: case NEW_SCALE_MALLOC: case CONV_CAL_VECTOR_MISMATCH: case TIMING_MALLOC: case PBACK_NO_HEADER: case PBACK_NO_DATA: case CHK_DATA_NOT_FOUND: case NUM_CAL_REALLOC: case READ_IN_MALLOC: case READ_IN_IDF_ELE_NOT_FOUND: case READ_IN_IDF_MANY_BYTES: case READ_IN_IDF_TBL_NUM: case READ_IN_IDF_CON_NUM: case READ_IN_IDF_NO_ENTRY: case CREATE_TBL_MALLOC: case CREATE_IDF_ELE_NOT_FOUND: case CREATE_IDF_MANY_BYTES: case CREATE_IDF_TBL_NUM: case CREATE_IDF_CON_NUM: case CREATE_IDF_NO_ENTRY: case CONST_IDF_ELE_NOT_FOUND: case CONST_IDF_MANY_BYTES: case CONST_IDF_TBL_NUM: case CONST_IDF_CON_NUM: case CONST_IDF_NO_ENTRY: case DKEY_PROJECT: case DKEY_MISSION: case DKEY_EXPERIMENT: case DKEY_INSTRUMENT: case DKEY_VINST: case CALC_TRES_NOT_FOUND: case IMAGE_NOT_FOUND: case IMAGE_READ_ERROR: case IMAGE_HDR_MALLOC: case IMAGE_HDR_REALLOC: case NEXT_FILE_TIME_NOT_FOUND: case NEXT_FILE_TIME_FILE_OPEN: case NEXT_FILE_TIME_INFO_DUP: case PA_MAIN_DATA_MISSING: case TBL_VAR_NOT_CAL: case TBL_VAR_NOT_RAW: case CNVT_BAD_TBL_OPER: case CNVT_NO_TMP: case CNVT_TMP_MALLOC: case CNVT_BAD_TBL_NUM: case MODE_PTR_MALLOC: case MODE_TBL_MISC_MALLOC: case MODE_TBL_IDF_ELE_NOT_FOUND: case MODE_TBL_IDF_MANY_BYTES: case MODE_TBL_IDF_TBL_NUM: case MODE_TBL_IDF_CON_NUM: case MODE_TBL_IDF_NO_ENTRY: case MODE_TBL_VAR_NOT_CAL: case MODE_TBL_VAR_NOT_RAW: case MODE_TBL_MALLOC: case ASCII_AFTER_SENSOR: case CONV_MODE_BAD_TBL_NUM: case CONV_MODE_BAD_MODE: case CRIT_ACT_MALLOC: case CREATE_DATA_ALL_MALLOC: case CREATE_DATA_ALL_REALLOC: case CREATE_DATA_MALLOC: case RESET_PITCH_MALLOC: case RESET_PITCH_REALLOC: case PITCH_MALLOC: case PA_TBL_MALLOC: case SWEEP_TIME_MALLOC: case PINFO_IDF_ELE_NOT_FOUND: case PINFO_IDF_MANY_BYTES: case PINFO_IDF_TBL_NUM: case PINFO_IDF_CON_NUM: case PINFO_IDF_NO_ENTRY: case FILE_POS_PA: case PA_BAD_SRC: case PA_BAD_FRAC: case PA_UNIT_MALLOC: case PA_UNIT_NORMAL: case PA_DATA_MALLOC: case CNVT_BAD_DTYPE: case PA_BAD_TIMES: case RESET_DCOS_MALLOC: case RESET_DCOS_VAL_MALLOC: case RESET_DCOS_VAL_REALLOC: case NO_PA_CONSTANT: case WRONG_DATA_STRUCTURE: case ONCE_CSCOPE_MALLOC: case ONCE_BAD_HEADER_FMT: case ONCE_BAD_TENSOR_RANK: case ONCE_BAD_TENSOR_LENGTHS: case HDR_FMT_ONE_MALLOC: case HDR_FMT_TWO_MALLOC: case HDR_FMT_TWO_DQUAL: case CREATE_TENSOR_DATA_ALL_MALLOC: case CREATE_TENSOR_DATA_ALL_REALLOC: case CREATE_TENSOR_DATA_MALLOC: case WRONG_HEADER_FORMAT: case TENSOR_NOT_FOUND: case TENSOR_NO_FILES: case TENSOR_READ_ERROR: case UPDATE_IDF_BAD_PA_DEF: case UPDATE_IDF_NO_FILL: case TENSOR_HDR_READ_ERROR: case TENSOR_HDR_MALLOC: case TENSOR_HDR_REALLOC: case TENSOR_MODE_MALLOC: case TENSOR_MODE_REALLOC: case TENSOR_DATA_MALLOC: case TENSOR_DATA_REALLOC: case TENSOR_DQUAL_MALLOC: case TENSOR_DQUAL_REALLOC: case ONCE_BAD_NUM_TBLS: case ONCE_BAD_MAX_NSS: case ONCE_BAD_SMP_ID: case ONCE_BAD_DA_METHOD: case ONCE_BAD_SWP_LEN: case ONCE_BAD_SEN_MODE: case ONCE_BAD_CAL_TARGET: case TENSOR_DATA_TDW_LEN: case CHK_TDATA_NOT_FOUND: case FIRST_SEN_NOT_FOUND: case START_SPIN_NOT_FOUND: case START_SPIN_NO_POS: case START_SPIN_NO_SPIN: case START_SPIN_ETIME: case START_SPIN_MALLOC: case START_SPIN_ALL_MALLOC: case ONCE_SPIN_OFF_MALLOC: case TURN_OFF_PA_NOT_FOUND: case TURN_ON_EA_NOT_FOUND: case START_ELE_BAD_SENSOR: case START_ELE_SPIN_NO_SENSOR: case READ_SPIN_NOT_FOUND: case READ_SPIN_NO_START: case READ_SPIN_ALL_REALLOC: case READ_SPIN_PARTIAL: case NEW_BAD_TBL_OFFSET: case UPDATE_IDF_BAD_SPIN_DEF: case SPIN_SRC_MALLOC: case START_SPIN_TIME_MALLOC: case SPIN_SRC_BAD_SRC: case SPIN_SINFO_IDF_ELE_NOT_FOUND: case SPIN_SINFO_IDF_MANY_BYTES: case SPIN_SINFO_IDF_TBL_NUM: case SPIN_SINFO_IDF_CON_NUM: case SPIN_SINFO_IDF_NO_ENTRY: case FILE_POS_SPIN: case SPIN_SRC_MAIN_DATA_MISSING: case READ_SPIN_DSRC_READ: case READ_SPIN_DSRC_BACK_SPIN: case READ_SPIN_SENSOR_NOT_FOUND: case ONCE_CDTYPE_MALLOC: case CP_STR_MALLOC: case CP_DATA_MALLOC: case FILE_POS_CP: case CNVT_NO_ADV: case CNVT_BAD_BUF_NUM: case CNVT_SAME_BUF_NUM: case UPDATE_IDF_BAD_POT_DEF: case POT_TBL_MALLOC: case POT_BAD_SRC: case POT_BAD_FRAC: case POT_MALLOC: case TURN_ON_CP_NOT_FOUND: case POT_DATA_MALLOC: case POT_MAIN_DATA_MISSING: case FILE_POS_POT: case POT_BAD_TIMES: case RESET_POT_REALLOC: case UPDATE_IDF_BAD_PMI_DEF: case READ_IN_BAD_TBL_OFFSET: case CREATE_BAD_TBL_OFFSET: case OVERRIDE_NOT_FOUND: case OVERRIDE_NO_POT: case OVERRIDE_NO_POT_TBLS: case OVERRIDE_TOO_MANY_POT_TBLS: case OVERRIDE_TBL_FMT_MALLOC: case OVERRIDE_BAD_TBL_FMT_VALUE: case UPDATE_IDF_BAD_CP_DEF: case CREATE_DSTR_NOT_FOUND: case EULER_MALLOC: case EULER_MAIN_DATA_MISSING: case EULER_TBL_MALLOC: case BAD_EULER_FORMAT: case EULER_AXIS_MALLOC: case LESS_EULER_CONSTANT_ANGLES: case LESS_EULER_CONSTANT_AXIS: case MORE_EULER_CONSTANT_ANGLES: case MORE_EULER_CONSTANT_AXIS: case EULER_IDF_DATA_MALLOC: case EULER_BAD_SRC: case EULER_BAD_TIMES: case EULER_BAD_FRAC: case EULER_INFO_IDF_ELE_NOT_FOUND: case EULER_INFO_IDF_MANY_BYTES: case EULER_INFO_IDF_TBL_NUM: case EULER_INFO_IDF_CON_NUM: case EULER_INFO_IDF_NO_ENTRY: case TOO_MANY_EULER: case CP_INFO_IDF_ELE_NOT_FOUND: case CP_INFO_IDF_MANY_BYTES: case CP_INFO_IDF_TBL_NUM: case CP_INFO_IDF_CON_NUM: case CP_INFO_IDF_NO_ENTRY: case CP_TBL_MALLOC: case CP_BAD_SRC: case BAD_CP_FORMAT: case NO_CP_CONSTANT: case CP_MAIN_DATA_MISSING: case RESET_CP_REALLOC: case CP_BAD_FRAC: case CP_BAD_TIMES: case RESET_TINFO_MALLOC: case CUR_TIME_NOT_FOUND: case VIDF_OPEN_PTR_MALLOC: case VIDF_OPEN_EX_REALLOC: case DESTROY_NO_IDF_DATA: case DESTROY_NO_TENSOR_DATA: case FILE_POS_INVALID_DATA: case BKGD_MAIN_DATA_MISSING: case BKGD_BAD_SRC: case BAD_BKGD_FORMAT: case BKGD_TBL_MALLOC: case BKGD_MALLOC: case BKGD_DATA_MALLOC: case BKGD_IDF_DATA_MALLOC: case BKGD_INFO_IDF_ELE_NOT_FOUND: case BKGD_INFO_IDF_MANY_BYTES: case BKGD_INFO_IDF_TBL_NUM: case BKGD_INFO_IDF_CON_NUM: case BKGD_INFO_IDF_NO_ENTRY: case FILE_POS_BKGD: case BKGD_BAD_TIMES: case RESET_BKGD_REALLOC: case BKGD_BAD_FRAC: case UPDATE_IDF_BAD_BKGD_DEF: case NO_BKGD_CONSTANT: libbase_idfs_error_message_str (error_code, e_str); break; case BUF_BIN_MALLOC: case BUF_BIN_NOT_FOUND: case BAD_VFMT: case CENTER_NOT_FOUND: case CENTER_NO_SENSOR: case BPTR_NOT_FOUND: case CENTER_TMP_MALLOC: case BAND_MALLOC: case CENTER_MALLOC: case CALC_CENTER_DREC: case FILL_BIN_MISSING: case FILL_NOT_FOUND: case FILL_ARRAY_MALLOC: case FILL_UNITS_MALLOC: case FILL_UNITS_REALLOC: case FILL_SWP_MALLOC: case FILL_SWP_REALLOC: case FILL_DATA_MALLOC: case FILL_INFO_MALLOC: case NO_EMPTY_BUFFERS: case PHI_DIFF_UNITS: case FILL_PHI_FIRST: case FILL_PHI_LAST: case CDIMEN_NOT_FOUND: case CDIMEN_COLLAPSE: case CDIMEN_MANY_SCAN: case FILL_DISC_NOT_FOUND: case FILL_DISC_BIN_MISSING: case FILL_DISC_NO_PHI: case FILL_DISC_MALLOC: case DISC_DATA_MALLOC: case DISC_TMP_MALLOC: case FILL_MODE_ARRAY_MALLOC: case MODE_UNITS_MALLOC: case MODE_UNITS_REALLOC: case MODE_DATA_MALLOC: case FILL_MODE_NOT_FOUND: case FILL_MODE_FILE_OPEN: case FILL_MODE_INFO_DUP: case MODES_NOT_REQUESTED: case ALLOC_MODE_INFO_MALLOC: case FILL_BASE_TIME_MISSING: case FILL_DISC_BASE_TIME_MISSING: case FILL_MODE_BASE_TIME_MISSING: case SWEEP_UNITS_MALLOC: case SWEEP_UNITS_REALLOC: case SWEEP_SWP_MALLOC: case SWEEP_SWP_REALLOC: case SWEEP_DATA_MALLOC: case SWEEP_INFO_MALLOC: case FILL_WITH_SWEEP: case FILL_WITH_SWEEP_MODE: case FILL_WITH_SWEEP_DISC: case CHRG_PA_ERROR: case MASS_PA_ERROR: case FILL_ENV_NOT_FOUND: case FILL_ENV_SCALAR: case FILL_ENV_BASE_TIME_MISSING: case FILL_ENV_BIN_MISSING: case FILL_ENV_WITH_SWEEP: case COMPUTE_MOMENTS: case NEG_BIN_STAT: case FILL_CENTER_BAND_MISSING: case FILL_ENV_CENTER_BAND_MISSING: case FILL_DISC_CENTER_BAND_MISSING: case FILL_SEN_NOT_FOUND: case FILL_SEN_MALLOC: case FILL_SEN_REALLOC: case FILL_SEN_BASE_MALLOC: case FILL_SEN_BASE_REALLOC: case FILL_SEN_TBL_MALLOC: case FILL_SEN_MODE_TYPE: case FILL_THETA_NOT_FOUND: case FILL_THETA_COLLAPSE: case THETA_DIFF_UNITS: case RET_PHI_NOT_FOUND: case CPTR_RET_PHI: case NO_RET_PHI: case MODE_INFO_NOT_FOUND: case MODE_INFO_MALLOC: case MODE_INFO_REALLOC: case MODE_INFO_BASE_MALLOC: case MODE_INFO_BASE_REALLOC: case MODE_INFO_TBL_MALLOC: case MODE_INFO_NO_MODES: case MODE_FILE_OPEN: case MODE_INFO_DUP: case MODE_UNITS_IND_NOT_FOUND: case MODE_UNITS_FILE_OPEN: case MODE_UNITS_INFO_DUP: case MODE_UNITS_NO_MODE: case MODE_UNITS_NO_MATCH: case RET_CENTER_NOT_FOUND: case RET_CBPTR_NO_SENSOR: case RET_CBPTR_NOT_FOUND: case NPHI_NOT_FOUND: case NPHI_NO_BINS: case NBINS_NOT_FOUND: case NBINS_NO_BINS: case SET_VWIDTH_CENTER_MALLOC: case SET_VWIDTH_BAND_MALLOC: case SET_VWIDTH_UPPER_BAND_MALLOC: case COLLAPSE_NOT_FOUND: case COLLAPSE_MALLOC: case COLLAPSE_SEN_MALLOC: case COLLAPSE_DATA_MALLOC: case COLLAPSE_DATA_ADDRESS: case THETA_CHK_MALLOC: case THETA_BIN_MALLOC: case ORDER_THETA_MALLOC: case SET_BIN_NOT_FOUND: case SET_BIN_MALLOC: case SET_BIN_INDEX_MALLOC: case SET_BIN_BAD_FMT: case SET_SCAN_NOT_FOUND: case SCAN_BIN_MISSING: case SET_SCAN_TBL_MALLOC: case SCAN_INDEX_MALLOC: case SCAN_IDF_MANY_BYTES: case SCAN_IDF_ELE_NOT_FOUND: case SCAN_IDF_TBL_NUM: case SCAN_IDF_CON_NUM: case SCAN_IDF_NO_ENTRY: case SWEEP_NOT_FOUND: case SWEEP_BIN_MISSING: case SWEEP_WITH_FILL: case SWEEP_CENTER_BAND_MISSING: case SWEEP_DISC_WITH_FILL: case SWEEP_DISC_NOT_FOUND: case SWEEP_DISC_BIN_MISSING: case SWEEP_DISC_NO_PHI: case SWEEP_DISC_CENTER_BAND_MISSING: case SPIN_INFO_MALLOC: case SPIN_UNITS_MALLOC: case SPIN_UNITS_REALLOC: case SPIN_SWP_MALLOC: case SPIN_SWP_REALLOC: case SPIN_DATA_MALLOC: case SPIN_DATA_PIX_NOT_FOUND: case SPIN_DATA_PIX_WITH_FILL_SWEEP: case SPIN_DATA_PIX_BIN_MISSING: case SPIN_DATA_PIX_CENTER_BAND_MISSING: case SPIN_DATA_PIX_NO_SPIN: case SPIN_DATA_NOT_FOUND: case SPIN_DATA_BIN_MISSING: case SPIN_DATA_WITH_FILL_SWEEP: case SPIN_DATA_CENTER_BAND_MISSING: case SPIN_DATA_NO_SPIN: case SWP_TIMES_TMP_MALLOC: case UNITS_IND_NOT_FOUND: case UNITS_NO_SENSOR: case UNITS_NO_MATCH: case UNITS_IND_MODE_TYPE: case SMODE_DATA_MALLOC: case SMODE_UNITS_MALLOC: case SMODE_UNITS_REALLOC: case ALLOC_SMODE_INFO_MALLOC: case SWEEP_MODES_NOT_REQUESTED: case SWEEP_MODE_NOT_FOUND: case SWEEP_MODE_FILE_OPEN: case SWEEP_MODE_INFO_DUP: case SWEEP_MODE_WITH_FILL: case GET_FPTR_NOT_FOUND: case TRANS_3D_BINNED_MALLOC: libtrec_idfs_error_message_str (error_code, e_str); break; default: sprintf (e_str, "ERROR CODE %d NOT RECOGNIZED BY IDFS READ ROUTINES.", error_code); break; } }