/* * 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. * */ /* @(#) libbase_idfs.h 1.60 05/08/19 SwRI libbase_idfs.h */ #ifndef __LIBBASE_IDFS_H #define __LIBBASE_IDFS_H #include "util_str.h" /* declarations for libbase_idfs */ #if defined(__cplusplus) extern "C" { #endif /******************************************************************************/ void adjust_time (SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_CHAR); /******************************************************************************/ void ir_advance_time_pointers (SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_alloc_exp_once (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, void *); /******************************************************************************/ SDDAS_SHORT ir_alloc_swp_data (SDDAS_USHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_alloc_timing (void); /******************************************************************************/ SDDAS_SHORT ir_assign_pointers (SDDAS_CHAR, SDDAS_CHAR, void *); /******************************************************************************/ SDDAS_SHORT calc_time_resolution (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_LONG *, SDDAS_LONG *); /******************************************************************************/ SDDAS_SHORT ir_check_cal_size (void *); /******************************************************************************/ SDDAS_SHORT ir_check_critical_status (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_check_dependent_on_header (void *); /******************************************************************************/ SDDAS_SHORT ir_check_idf_data_memory (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *); /******************************************************************************/ void ir_combine_add (SDDAS_FLOAT *, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ void ir_combine_divide (SDDAS_FLOAT *, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ void ir_combine_multiply (SDDAS_FLOAT *, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ void ir_combine_subtract (SDDAS_FLOAT *, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ void ir_combine_power (SDDAS_FLOAT *, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_convert_cal_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, SDDAS_CHAR, SDDAS_LONG, void *); /******************************************************************************/ SDDAS_SHORT ir_convert_mode_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, void *); /******************************************************************************/ void ir_convert_sensor_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, SDDAS_CHAR, SDDAS_LONG, void *); /******************************************************************************/ void ir_convert_sweep_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, void *); /******************************************************************************/ SDDAS_SHORT convert_to_units (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, SDDAS_CHAR, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_count_combo (SDDAS_CHAR *, SDDAS_CHAR *, SDDAS_LONG **, SDDAS_CHAR **, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT create_idf_data_structure (void **); /******************************************************************************/ SDDAS_SHORT ir_create_tbl (SDDAS_SHORT, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_CHAR, SDDAS_SHORT, SDDAS_CHAR, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_create_rval (int); /******************************************************************************/ SDDAS_SHORT file_open (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT file_pos (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_fill_angle_array (SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ void ir_fill_cal_array_bit (SDDAS_LONG, void *); /******************************************************************************/ void ir_fill_cal_array_byte (SDDAS_LONG, void *); /******************************************************************************/ SDDAS_SHORT ir_fill_data_array (SDDAS_LONG, SDDAS_CHAR, void *); /******************************************************************************/ SDDAS_SHORT ir_fine_search (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_BOOL *); /******************************************************************************/ SDDAS_SHORT ir_fix_pointers (void *); /******************************************************************************/ void free_experiment_info (void); /******************************************************************************/ void ir_free_ex_structure (struct experiment_info *); /******************************************************************************/ void ir_free_idf_data_ptr (void *); /******************************************************************************/ void free_version_info (SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_get_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_const_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_critical_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_CHAR, SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_crit_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_mode_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_mode_tbl (SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_new_tbl (SDDAS_SHORT, SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_new_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_sensor_tables (SDDAS_CHAR *, SDDAS_CHAR *, SDDAS_LONG **, SDDAS_CHAR **, SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void get_version_number (SDDAS_USHORT *); /******************************************************************************/ void ir_idf_add (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_and (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_divide (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_ex_func (SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, void *); /******************************************************************************/ void ir_idf_look_up (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_mod (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_multiply (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_or (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_shiftl (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_shiftr (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_idf_subtract (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG *, SDDAS_SHORT); /******************************************************************************/ void ir_init_experiment_info (SDDAS_SHORT); /******************************************************************************/ void init_idfs (void); /******************************************************************************/ SDDAS_SHORT ir_init_sensor_ptr (SDDAS_SHORT, SDDAS_CHAR **, SDDAS_CHAR, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_init_struct (void); /******************************************************************************/ SDDAS_FLOAT ir_intfp2fp (SDDAS_ULONG, SDDAS_CHAR); /******************************************************************************/ SDDAS_FLOAT ir_tento (SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_locate_ex (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_mode_tbl_size (SDDAS_SHORT, SDDAS_UINT *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_mode_tbl_size_rval (int); /******************************************************************************/ SDDAS_SHORT ir_new_data_record (SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_new_header_record (SDDAS_CHAR, void *); /******************************************************************************/ SDDAS_SHORT ir_next_idf_file (SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_number_of_cal_elements (SDDAS_ULONG *, SDDAS_ULONG *, SDDAS_ULONG *, SDDAS_ULONG *, SDDAS_ULONG, SDDAS_SHORT, void *); /******************************************************************************/ void ir_oper_asgn (void); /******************************************************************************/ SDDAS_SHORT ir_playback_data_files (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR *, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_BOOL); /******************************************************************************/ SDDAS_FLOAT ir_poly_expand (SDDAS_FLOAT, SDDAS_FLOAT *, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_position_real_time (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, void *); /******************************************************************************/ SDDAS_SHORT read_drec (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_read_header (void *); /******************************************************************************/ SDDAS_SHORT ir_read_idf_once (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_once_rval (int); /******************************************************************************/ SDDAS_SHORT ir_read_in_tbl (SDDAS_SHORT, SDDAS_FLOAT *, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_read_in_rval (int); /******************************************************************************/ SDDAS_SHORT reset_experiment_info (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_reset_header (void *, SDDAS_SHORT, SDDAS_CHAR); /******************************************************************************/ void ir_reset_sen_set_time (void); /******************************************************************************/ SDDAS_SHORT ir_realtime_data_files (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG, SDDAS_CHAR *); /******************************************************************************/ void ir_sample_time (SDDAS_USHORT, SDDAS_SHORT, SDDAS_USHORT, SDDAS_SHORT, SDDAS_LONG *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_CHAR *, SDDAS_CHAR *); /******************************************************************************/ SDDAS_SHORT select_sensor (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_sensor_combo (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_sensor_set_time (SDDAS_LONG *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_LONG *); /******************************************************************************/ void ir_set_fd_limit (void); /******************************************************************************/ void ir_set_time (SDDAS_CHAR, SDDAS_SHORT, void *, SDDAS_CHAR *, SDDAS_CHAR *); /******************************************************************************/ SDDAS_SHORT start_image (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *); /******************************************************************************/ void ir_tbl_size (SDDAS_SHORT, SDDAS_UINT *); /******************************************************************************/ void ir_get_time_components (void); /******************************************************************************/ SDDAS_FLOAT ir_to_sign (SDDAS_LONG, SDDAS_CHAR); /******************************************************************************/ void ir_transfer_data (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_LONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_current_time (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_get_pitch_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_pinfo_rval (int); /******************************************************************************/ SDDAS_SHORT ir_file_setup (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_BOOL); /******************************************************************************/ SDDAS_SHORT ir_acquire_pitch_data (struct time_span, struct pitch_info *, SDDAS_USHORT); /******************************************************************************/ void ir_same_pitch_time (struct pitch_info *, SDDAS_CHAR, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_process_pitch_data (struct pitch_info *, struct time_span, SDDAS_SHORT, SDDAS_USHORT); /******************************************************************************/ SDDAS_FLOAT ir_pitch_time_frac (struct pitch_info *, struct time_span, SDDAS_SHORT); /******************************************************************************/ void ir_compute_pitch_angle (struct pitch_info *, SDDAS_FLOAT *, SDDAS_SHORT, SDDAS_USHORT, struct direction_cos *); /******************************************************************************/ SDDAS_SHORT ir_alloc_pitch_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ int ir_get_unit_normals (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_pitch_angle_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_pitch_angle_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_pitch_angle_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT next_file_start_time (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_CHAR, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *); /******************************************************************************/ void ir_copy_pitch_angle (struct pitch_info *, SDDAS_USHORT); /******************************************************************************/ void idfs_error_message_str (SDDAS_SHORT, SDDAS_CHAR *); /******************************************************************************/ void ir_read_drec_times (void *, SDDAS_SHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_read_drec_time_advance (void *, SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_read_drec_data_values (void *, SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG); /******************************************************************************/ void ir_network_order (SDDAS_CHAR, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_position_playback (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_swap_data_array (void); /******************************************************************************/ void ir_free_sensor_tables (struct experiment_info *); /******************************************************************************/ void ir_free_mode_tables (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_read_idf_update (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_update_rval (int); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_free_pitch_angle_data (struct experiment_info *); /******************************************************************************/ void ir_free_pa_information (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_vidf_open (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_BOOL valid_idf_data_structure (void *); /******************************************************************************/ int ir_get_pitch_angle_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_idfs_pitch_angles (SDDAS_CHAR, SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_constant_pitch_angles (SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_constant_spacecraft_potential (SDDAS_CHAR, void *); /******************************************************************************/ void ir_instrument_timing (SDDAS_LONG, SDDAS_CHAR, SDDAS_LONG *, SDDAS_LONG *); /******************************************************************************/ void ir_fill_cal_array_bit_all_swp (SDDAS_ULONG *, SDDAS_CHAR, SDDAS_LONG, SDDAS_SHORT, SDDAS_LONG *, void *); /******************************************************************************/ void ir_fill_cal_array_bit_all_sen (SDDAS_ULONG *, SDDAS_CHAR, SDDAS_LONG, SDDAS_SHORT, SDDAS_LONG *, void *); /******************************************************************************/ void ir_fill_cal_array_bit_swp (SDDAS_ULONG *, SDDAS_CHAR, SDDAS_LONG, SDDAS_SHORT, SDDAS_LONG *, void *); /******************************************************************************/ void ir_fill_cal_array_bit_sen (SDDAS_ULONG *, SDDAS_CHAR, SDDAS_LONG, SDDAS_SHORT, SDDAS_LONG *, void *); /******************************************************************************/ void ir_fill_cal_array_bit_data (SDDAS_LONG *, SDDAS_UCHAR *, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_extra_days (SDDAS_SHORT, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_check_dependent_on_tensor_header (void *); /******************************************************************************/ SDDAS_SHORT create_tensor_data_structure (void **); /******************************************************************************/ void ir_free_tensor_data_ptr (void *); /******************************************************************************/ SDDAS_BOOL valid_tensor_data_structure (void *); /******************************************************************************/ SDDAS_SHORT ir_read_header_format_one (SDDAS_CHAR, void *); /******************************************************************************/ SDDAS_SHORT ir_read_header_format_two (SDDAS_CHAR, void *); /******************************************************************************/ SDDAS_SHORT read_tensor_data (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_read_tensor_time_advance (void *, SDDAS_SHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_fill_tensor_data_array (SDDAS_SHORT, SDDAS_LONG, void *); /******************************************************************************/ SDDAS_SHORT ir_reset_tensor_header (void *, SDDAS_SHORT); /******************************************************************************/ void ir_transfer_tensor_data (SDDAS_FLOAT *, SDDAS_CHAR *, SDDAS_ULONG, SDDAS_CHAR, SDDAS_CHAR, SDDAS_LONG); /******************************************************************************/ void ir_read_tensor_times (void *, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_read_tensor_data_values (void *, SDDAS_SHORT, SDDAS_LONG); /******************************************************************************/ void ir_insert_into_tensor (SDDAS_SHORT, SDDAS_ULONG *, SDDAS_LONG *, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ void extract_single_element_from_idfs_tensor (SDDAS_SHORT, SDDAS_ULONG *, void *, SDDAS_ULONG *, void *, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_check_tensor_data_memory (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *); /******************************************************************************/ SDDAS_SHORT first_idfs_sensor (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *); /******************************************************************************/ SDDAS_SHORT start_of_spin (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_CHAR ir_find_start_of_spin_angle (void *, SDDAS_FLOAT, SDDAS_USHORT *, SDDAS_CHAR, SDDAS_FLOAT, SDDAS_FLOAT); /******************************************************************************/ SDDAS_SHORT ir_start_element_of_spin (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_USHORT *); /******************************************************************************/ SDDAS_SHORT ir_sensor_start_of_spin_angle (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_USHORT *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_FLOAT *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT read_drec_spin (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_LONG *, void ***); /******************************************************************************/ SDDAS_CHAR ir_check_start_time (struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_alloc_spin_src_info (void); /******************************************************************************/ SDDAS_SHORT ir_start_spin_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_get_spin_sinfo_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_spin_src_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_free_spin_src_data (struct experiment_info *); /******************************************************************************/ void ir_free_spin_src_information (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_pa (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_spin_src (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_start_spin_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ void ir_adjust_year_day (SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_CHAR); /******************************************************************************/ void ir_spin_sweep_times (SDDAS_SHORT, SDDAS_USHORT, SDDAS_CHAR *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *); /******************************************************************************/ SDDAS_CHAR ir_find_start_of_spin_src (SDDAS_USHORT, SDDAS_USHORT *, SDDAS_CHAR, SDDAS_FLOAT *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_CHAR *); /******************************************************************************/ SDDAS_SHORT ir_sensor_start_of_spin_src (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT, SDDAS_USHORT *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_FLOAT *); /******************************************************************************/ SDDAS_FLOAT ir_spin_calc_time_frac (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR); /******************************************************************************/ SDDAS_CHAR ir_find_end_of_spin_src (SDDAS_USHORT, SDDAS_USHORT *, SDDAS_CHAR, SDDAS_FLOAT *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_LONG *, SDDAS_CHAR *); /******************************************************************************/ void ir_init_sensor_spin_struct (struct start_spin_info *); /******************************************************************************/ SDDAS_SHORT ir_read_drec_spin_angle (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_LONG *); /******************************************************************************/ SDDAS_SHORT ir_read_drec_spin_src (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_USHORT *, SDDAS_FLOAT *, SDDAS_LONG *); /******************************************************************************/ SDDAS_SHORT ir_alloc_spin_sweep_times (struct sweep_times *, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_create_spin_data_structure (SDDAS_ULONG, SDDAS_CHAR *, struct start_spin_info *); /******************************************************************************/ SDDAS_SHORT ir_get_pot_info_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_potential_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_potential_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_potential_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_alloc_potential_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_potential_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_potential (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_free_potential_data (struct experiment_info *); /******************************************************************************/ void ir_free_potential_information (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_idfs_potential_values (SDDAS_CHAR, SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_acquire_potential_data (struct time_span, struct potential_info *, SDDAS_USHORT, SDDAS_CHAR); /******************************************************************************/ SDDAS_SHORT ir_process_potential_data (struct potential_info *, struct time_span, SDDAS_USHORT); /******************************************************************************/ SDDAS_FLOAT ir_potential_time_frac (struct potential_info *, struct time_span); /******************************************************************************/ SDDAS_CHAR ir_check_time_range (struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_convert_spacecraft_potential_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, void *); /******************************************************************************/ SDDAS_SHORT override_potential_polynomial (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_FLOAT, SDDAS_FLOAT); /******************************************************************************/ void ir_set_last_time_values (void *); /******************************************************************************/ SDDAS_SHORT turn_off_pitch_angle_computations (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT turn_on_euler_angle_computations (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_euler_angle_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_euler_angle_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_euler_angle_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_alloc_euler_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT); /******************************************************************************/ void ir_free_euler_angle_data (struct experiment_info *); /******************************************************************************/ void ir_free_euler_information (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_get_einfo_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_euler_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ int ir_get_euler_angle_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_euler (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_compute_idfs_sweep_times (struct experiment_info *, struct ptr_rec *, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_constant_euler_angles (SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_idfs_euler_angles (SDDAS_CHAR, SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ void ir_copy_euler_angle (struct euler_info *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_acquire_euler_data (struct time_span, struct euler_info *, SDDAS_USHORT); /******************************************************************************/ void ir_same_euler_time (struct euler_info *, SDDAS_CHAR, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_process_euler_data (struct euler_info *, struct time_span, SDDAS_SHORT, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ SDDAS_FLOAT ir_euler_time_frac (struct euler_info *, struct time_span, SDDAS_SHORT); /******************************************************************************/ SDDAS_CHAR ir_frac_start_time (struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ int ir_get_start_of_spin_azimuthal_angle_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_FLOAT *, SDDAS_BOOL *); /******************************************************************************/ SDDAS_CHAR ir_spin_period_exceeded (void *, void *, SDDAS_LONG); /******************************************************************************/ SDDAS_BOOL IDFS_source_positioned (struct experiment_info *); /******************************************************************************/ struct experiment_info * locate_ex_ptr (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT); /******************************************************************************/ void free_experiment_info_no_reset (void); /******************************************************************************/ void ir_free_ex_structure_no_reset (struct experiment_info *); /******************************************************************************/ void ir_free_idf_data_ptr_no_reset (void *); /******************************************************************************/ SDDAS_SHORT create_data_structure (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void **); /******************************************************************************/ void idfs_status_message_str (SDDAS_SHORT, SDDAS_CHAR *); /******************************************************************************/ SDDAS_SHORT turn_on_celestial_position_computations (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_alloc_celestial_position_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT); /******************************************************************************/ void ir_free_celestial_position_data (struct experiment_info *); /******************************************************************************/ void ir_free_celestial_position_information (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_get_cinfo_rval (int); /******************************************************************************/ SDDAS_SHORT ir_celestial_position_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_celestial_position_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ int ir_get_celestial_position_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_get_celestial_position_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_celestial_position_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_constant_celestial_position_angles (SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_celestial_position (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_same_celestial_position_time (struct celestial_info *, SDDAS_CHAR, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_acquire_celestial_position_data (struct time_span, struct celestial_info *, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_process_celestial_position_data (struct celestial_info *, struct time_span, SDDAS_SHORT, SDDAS_USHORT); /******************************************************************************/ SDDAS_SHORT ir_idfs_celestial_position_angles (SDDAS_CHAR, SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ void ir_copy_celestial_position_angle (struct celestial_info *, SDDAS_USHORT); /******************************************************************************/ SDDAS_FLOAT ir_celestial_position_time_frac (struct celestial_info *, struct time_span, SDDAS_SHORT); /******************************************************************************/ void ir_celestial_position_end_time (struct celestial_info *, struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT); /******************************************************************************/ void ir_ancillary_data_end_time (struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR *, SDDAS_CHAR *, SDDAS_BOOL *, SDDAS_BOOL *); /******************************************************************************/ SDDAS_SHORT ir_ancillary_data_los_next_file (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, struct time_span, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_CHAR, SDDAS_SHORT *); /******************************************************************************/ void ir_initialize_transformation_structure (void *); /******************************************************************************/ SDDAS_SHORT ir_spin_los_next_file (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, void *, SDDAS_SHORT); /******************************************************************************/ void libbase_idfs_error_message_str (SDDAS_SHORT, SDDAS_CHAR *); /******************************************************************************/ void libtrec_idfs_error_message_str (SDDAS_SHORT, SDDAS_CHAR *); /******************************************************************************/ SDDAS_SHORT ir_position_ancillary (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_open_ancillary (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT destroy_last_idf_data_structure (void); /******************************************************************************/ SDDAS_SHORT destroy_last_tensor_data_structure (void); /******************************************************************************/ SDDAS_SHORT ir_background_source_status (SDDAS_ULONG, SDDAS_CHAR *, SDDAS_USHORT, SDDAS_SHORT *, SDDAS_ULONG *); /******************************************************************************/ void ir_free_background_information (struct experiment_info *); /******************************************************************************/ void ir_free_background_data (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_get_bkgd_info_rval (int); /******************************************************************************/ SDDAS_SHORT ir_get_background_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_background_data_src (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_ULONG *); /******************************************************************************/ SDDAS_SHORT ir_background_tbl_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_alloc_background_info (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_constant_background (SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ int ir_get_background_constants (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ SDDAS_SHORT ir_new_idf_file_background (SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_LONG); /******************************************************************************/ void ir_free_ancillary_data (struct experiment_info *); /******************************************************************************/ SDDAS_SHORT ir_idfs_background_data (SDDAS_CHAR, SDDAS_CHAR, SDDAS_SHORT, void *); /******************************************************************************/ SDDAS_SHORT ir_process_background_data (struct background_info *, struct time_span, SDDAS_SHORT, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ void ir_same_background_time (struct background_info *, SDDAS_CHAR, SDDAS_SHORT); /******************************************************************************/ SDDAS_DOUBLE ir_compute_delta_combo (struct time_span); /******************************************************************************/ SDDAS_FLOAT ir_background_time_frac (struct background_info *, struct time_span, SDDAS_SHORT); /******************************************************************************/ void ir_copy_background_data (struct background_info *, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ SDDAS_SHORT ir_acquire_background_data (struct time_span, struct background_info *, SDDAS_USHORT, SDDAS_SHORT); /******************************************************************************/ void ir_convert_background_data (SDDAS_SHORT, SDDAS_CHAR, SDDAS_CHAR *, SDDAS_LONG *, SDDAS_FLOAT *, void *); /******************************************************************************/ #if defined(__cplusplus) } #endif #endif