/* Marco Bartolini (bartolini@ira.inaf.it) 18/06/2014 added function ACS::Time getACSTime() */
/* Andrea Orlati(aorlati@ira.inaf.it) 12/08/2015 Function to check if a file exists or not */
/* Andrea Orlati(aorlati@ira.inaf.it) 19/11/2015 Function timeToStrExtended was added */
/* Andrea Orlati(aorlati@ira.inaf.it) 12/01/2016 reviewed the function skyFrequency in order to address also lower side band during down conversion */
#include<time.h>
#include<sys/time.h>
@@ -305,6 +306,12 @@ public:
/**
* This function computes the intersection between two bands. Its use, for example, could be to compute the resulting band from the intersection between
* an IF coming from a receiver and a filter applied before a backend.
* The band are defined by giving the start frequency and the bandwidth. If the start frequency is negative the method consider the corresponding band
* to be inverted. In that case the results of the method is affected accordingly.
* If we consider an RF band 1600-1800 MHz: a down conversion with an LO=1500 will produce a band f=100, bw=200
* a down conversion with an LO=1900 will produce a band f=-300, bw=200. The same convention could be then adopted for backends Nyquist zones.
* The rsulting band is extpressed in the form startFrequency(f) and bandwidth (bw). Up converting to RF band is always done by the following