|
DP3
|
#include <IDGPredict.h>
Public Member Functions | |
| IDGPredict (const common::ParameterSet &, const std::string &prefix) | |
| IDGPredict (const common::ParameterSet &parset, const std::string &prefix, const std::vector< aocommon::FitsReader > &readers, std::vector< schaapcommon::facets::Facet > &&facets, const std::string &ds9_regions_file="") | |
| void | finish () override |
| Finish the processing of this step and subsequent steps. More... | |
| void | flush () |
| size_t | GetBufferSize () const |
| base::Direction | GetFirstDirection () const override |
| common::Fields | getRequiredFields () const override |
| Get the fields required by the current step. More... | |
| bool | IsStarted () const |
| std::vector< aocommon::xt::UTensor< std::complex< float >, 3 > > | Predict (size_t direction) |
| bool | process (std::unique_ptr< base::DPBuffer > buffer) override |
| void | SetBufferSize (size_t nTimesteps) |
| void | show (std::ostream &) const override |
| Show the step parameters. More... | |
| void | showTimings (std::ostream &, double duration) const override |
| void | updateInfo (const base::DPInfo &info) override |
Public Member Functions inherited from dp3::steps::ModelDataStep | |
| common::Fields | getProvidedFields () const override |
Public Member Functions inherited from dp3::steps::Step | |
| Step () | |
| virtual | ~Step () |
| virtual bool | accepts (MsType dt) const |
| Boolean if this step can process this type of data. More... | |
| const base::DPInfo & | getInfoIn () const |
| Get access to the info of the input. More... | |
| const base::DPInfo & | getInfoOut () const |
| Get access to the info of the output. More... | |
| const Step::ShPtr & | getNextStep () const |
| Get the next step. More... | |
| Step * | getPrevStep () const |
| Get the previous step. More... | |
| virtual MsType | outputs () const |
| Return which datatype this step outputs. More... | |
| virtual bool | process (std::unique_ptr< base::BdaBuffer >) |
| void | setInfo (const base::DPInfo &) |
| virtual void | setNextStep (Step::ShPtr nextStep) |
| Set the next step. More... | |
| void | setPrevStep (Step *prevStep) |
| Set the previous step. More... | |
| virtual void | showCounts (std::ostream &) const |
Static Public Member Functions | |
| static std::vector< schaapcommon::facets::Facet > | GetFacets (const std::string &ds9_regions_file, const aocommon::FitsReader &reader) |
| static std::vector< schaapcommon::facets::Facet > | GetFacets (const std::string &ds9_regions_file, const double ra, const double dec, const double pixel_size_x, const double pixel_size_y, const size_t full_width, const size_t full_height) |
| static std::vector< aocommon::FitsReader > | GetReaders (const std::vector< std::string > &fits_model_files) |
| Read the fits files (nterms) for the idg prediction. More... | |
Static Public Member Functions inherited from dp3::steps::Step | |
| static void | SetThreadingIsInitialized () |
Additional Inherited Members | |
Public Types inherited from dp3::steps::Step | |
| enum class | MsType { kRegular , kBda } |
| To check compatibility between steps before running. More... | |
| typedef std::shared_ptr< Step > | ShPtr |
Static Public Attributes inherited from dp3::steps::Step | |
| static constexpr dp3::common::Fields | kDataField |
| static constexpr dp3::common::Fields | kFlagsField |
| static constexpr dp3::common::Fields | kUvwField |
| static constexpr dp3::common::Fields | kWeightsField |
Protected Member Functions inherited from dp3::steps::Step | |
| virtual void | addToMS (const std::string &msName) |
| base::DPInfo & | GetWritableInfoOut () |
| dp3::steps::IDGPredict::IDGPredict | ( | const common::ParameterSet & | parset, |
| const std::string & | prefix, | ||
| const std::vector< aocommon::FitsReader > & | readers, | ||
| std::vector< schaapcommon::facets::Facet > && | facets, | ||
| const std::string & | ds9_regions_file = "" |
||
| ) |
| dp3::steps::IDGPredict::IDGPredict | ( | const common::ParameterSet & | , |
| const std::string & | prefix | ||
| ) |
|
overridevirtual |
Finish the processing of this step and subsequent steps.
Implements dp3::steps::Step.
| void dp3::steps::IDGPredict::flush | ( | ) |
Process the data in all internal buffers using IDG, and send the results to the next step using its process() function.
| size_t dp3::steps::IDGPredict::GetBufferSize | ( | ) | const |
|
static |
Get the facets from a region file and use readers to create the image models.
|
static |
Get the facets from a region file and create the image models with the given image size
|
overridevirtual |
Implements dp3::steps::ModelDataStep.
|
static |
Read the fits files (nterms) for the idg prediction.
|
inlineoverridevirtual |
Get the fields required by the current step.
Implements dp3::steps::Step.
| bool dp3::steps::IDGPredict::IsStarted | ( | ) | const |
| std::vector<aocommon::xt::UTensor<std::complex<float>, 3> > dp3::steps::IDGPredict::Predict | ( | size_t | direction | ) |
|
overridevirtual |
Add a buffer to the IDG predictor, for use in Predict(), later. Calls flush if the buffer is full.
Reimplemented from dp3::steps::Step.
| void dp3::steps::IDGPredict::SetBufferSize | ( | size_t | nTimesteps | ) |
|
overridevirtual |
Show the step parameters.
Implements dp3::steps::Step.
|
overridevirtual |
Show the timings. The default implementation does nothing.
Reimplemented from dp3::steps::Step.
|
overridevirtual |
Update the general info (called by setInfo). The default implementation copies the info.
Reimplemented from dp3::steps::Step.