#ifndef REMOVE_MISSING_REFRACTION_INPUT_11_01_2007 #define REMOVE_MISSING_REFRACTION_INPUT_11_01_2007 /** @file RemoveMissingRefrac.h @author Brian Magill @datecreated 11/01/2007 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief: Removes the missing values from the solar extents and corresponding time */ //---------------------------------------------------------------------- // #include class RemoveMissingRefrac { private: double missingValue; public: RemoveMissingRefrac(double missing = 0.0):missingValue(missing) { } RemoveMissingRefrac(RemoveMissingRefrac const& rhs): missingValue(rhs.missingValue) { } RemoveMissingRefrac& operator = (RemoveMissingRefrac const& rhs ) { if (this == &rhs) return *this; missingValue = rhs.missingValue; return *this; }; ~RemoveMissingRefrac() { } /// /// Removes array elements with missing values /// /// @param inTime - input time array /// /// @param inExtent - input solar extent array /// /// @param fixedTime - time array with "missing value" data removed /// /// @param fixedExtent - solar extent array with "missing value" data removed /// void operator()(std::valarray const &inTime, std::valarray const &inExtent, std::valarray &fixedTime, std::valarray &fixedExtent); }; #endif