#include <string.h>
#include <math.h>
#include "oifilter.h"
Defines | |
#define | RAD2DEG (180.0/3.14159) |
#define | ACCEPT_ARRNAME(pObject, pFilter) |
#define | ACCEPT_INSNAME(pObject, pFilter) |
Functions | |
void | init_oi_filter (oi_filter_spec *pFilter) |
Initialise filter specification to accept all data. | |
const char * | format_oi_filter (oi_filter_spec *pFilter) |
Generate string representation of filter spec. | |
void | print_oi_filter (oi_filter_spec *pFilter) |
Print filter spec to stdout. | |
void | filter_oi_target (const oi_target *pInTargets, const oi_filter_spec *pFilter, oi_target *pOutTargets) |
Filter OI_TARGET table. | |
void | filter_all_oi_array (const oi_fits *pInput, const oi_filter_spec *pFilter, oi_fits *pOutput) |
Filter OI_ARRAY tables. | |
GHashTable * | filter_all_oi_wavelength (const oi_fits *pInput, const oi_filter_spec *pFilter, oi_fits *pOutput) |
Filter all OI_WAVELENGTH tables, remembering which wavelength channels have been accepted for each. | |
void | filter_oi_wavelength (const oi_wavelength *pInWave, const float waveRange[2], oi_wavelength *pOutWave, char *useWave) |
Filter specified OI_WAVELENGTH table. | |
void | filter_all_oi_vis (const oi_fits *pInput, const oi_filter_spec *pFilter, GHashTable *useWaveHash, oi_fits *pOutput) |
Filter all OI_VIS tables. | |
void | filter_oi_vis (const oi_vis *pInTab, const oi_filter_spec *pFilter, const char *useWave, oi_vis *pOutTab) |
Filter specified OI_VIS table by TARGET_ID, MJD, and wavelength. | |
void | filter_all_oi_vis2 (const oi_fits *pInput, const oi_filter_spec *pFilter, GHashTable *useWaveHash, oi_fits *pOutput) |
Filter all OI_VIS tables. | |
void | filter_oi_vis2 (const oi_vis2 *pInTab, const oi_filter_spec *pFilter, const char *useWave, oi_vis2 *pOutTab) |
Filter specified OI_VIS2 table by TARGET_ID, MJD, and wavelength. | |
void | filter_all_oi_t3 (const oi_fits *pInput, const oi_filter_spec *pFilter, GHashTable *useWaveHash, oi_fits *pOutput) |
Filter all OI_T3 tables. | |
void | filter_oi_t3 (const oi_t3 *pInTab, const oi_filter_spec *pFilter, const char *useWave, oi_t3 *pOutTab) |
Filter specified OI_T3 table by TARGET_ID, MJD, and wavelength. | |
void | apply_oi_filter (const oi_fits *pInput, const oi_filter_spec *pFilter, oi_fits *pOutput) |
Filter OIFITS data. | |
Variables | |
GString * | pGStr |
Internal use GString, defined in oifile.c. |
Copyright (C) 2007 John Young
This file is part of OIFITSlib.
OIFITSlib is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OIFITSlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with OIFITSlib. If not, see http://www.gnu.org/licenses/
#define RAD2DEG (180.0/3.14159) |
Referenced by filter_oi_t3(), and filter_oi_vis().
#define ACCEPT_ARRNAME | ( | pObject, | |||
pFilter | ) |
Value:
( (strlen(pFilter->arrname) == 0 || \ strcmp(pObject->arrname, pFilter->arrname) == 0) )
Referenced by filter_all_oi_array(), filter_all_oi_t3(), filter_all_oi_vis(), and filter_all_oi_vis2().
#define ACCEPT_INSNAME | ( | pObject, | |||
pFilter | ) |
Value:
( (strlen(pFilter->insname) == 0 || \ strcmp(pObject->insname, pFilter->insname) == 0) )
Referenced by filter_all_oi_t3(), filter_all_oi_vis(), filter_all_oi_vis2(), and filter_all_oi_wavelength().
GString* pGStr |
Internal use GString, defined in oifile.c.
Referenced by format_check_result(), and format_oi_filter().