/** @class TrimRefrac.cpp @author Brian Magill @datecreated 4/23/2008 $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: Trims the first N values of the solar extent and corresponding time */ //---------------------------------------------------------------------- // #include #include #include #include #include "TrimRefrac.h" #include "Vec2Val.hpp" using namespace std; void TrimRefrac::operator()(std::valarray const &InTime, std::valarray const &InValue, std::valarray &TruncTime, std::valarray &TruncValue) const { vector workTime; vector workArray; unsigned long indx; assert(InTime.size() == InValue.size()); for(indx = trimSize; indx < InValue.size(); indx++) { workTime.push_back(InTime[indx]); workArray.push_back(InValue[indx]); } Vec2Val(workTime, TruncTime); Vec2Val(workArray, TruncValue); }