Changeset 507


Ignore:
Timestamp:
02/23/05 14:44:30 (19 years ago)
Author:
kil064
Message:

add function feedPolType

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDAttr.cc

    r475 r507  
    224224}
    225225
     226FeedPolType SDAttr::feedPolType (Instrument inst) const
     227{
     228   FeedPolType type = UNKNOWNFEED;
     229   switch (inst) {
     230      case ATMOPRA:
     231      case ATPKSMB:
     232      case ATPKSHOH:
     233        {
     234           type = LINEAR;
     235        }
     236        break;
     237      case TIDBINBILLA:
     238        {
     239           type = CIRCULAR;
     240        }
     241        break;
     242      default:
     243        {
     244           type = UNKNOWNFEED;
     245        }
     246   }
     247   return type;
     248}
     249
     250
    226251
    227252
     
    304329   // The strings are what SDReader returns, after cunning interrogation
    305330   // of station names... :-(
    306    Instrument inst = asap::UNKNOWN;
     331   Instrument inst = asap::UNKNOWNINST;
    307332   if (t==String("DSS-43")) {
    308333      inst = TIDBINBILLA;
  • trunk/src/SDAttr.h

    r475 r507  
    7878   casa::Vector<casa::Float> gainElevationPoly (Instrument instr) const;
    7979
     80// Find feed polarization type of feeds. In future this needs to come from the data themselves
     81   FeedPolType feedPolType (Instrument) const;
    8082
    8183// Helper function to check instrument (antenna) name and give enum
     
    8587// Helper function.  Finds factor to convert K -> Jy. Provide aperture efficiency and dish geometric diameter (m)
    8688   static casa::Float findJyPerK (casa::Float etaAp, casa::Float D);
     89
    8790
    8891 private:
Note: See TracChangeset for help on using the changeset viewer.