More corrections
authorAnders Henja <anders@baltrad.eu>
Tue, 15 Nov 2011 21:31:13 +0000 (22:31 +0100)
committerAnders Henja <anders@baltrad.eu>
Tue, 15 Nov 2011 21:31:13 +0000 (22:31 +0100)
lib/beamblockage.c
lib/beamblockage.h
test/pytest/PyBeamBlockageMapTest.py

index 991f1cd..00cd790 100644 (file)
@@ -100,6 +100,15 @@ const char* BeamBlockage_getTopo30Directory(BeamBlockage_t* self)
   return (const char*)BeamBlockageMap_getTopo30Directory(self->mapper);
 }
 
+RaveField_t* BeamBlockage_getBlockage(BeamBlockage_t* self, PolarScan_t* scan)
+{
+  RaveField_t *field = NULL, *result = NULL;
+
+  RAVE_ASSERT((self != NULL), "self == NULL");
+
+
+}
+
 /*@} End of Interface functions */
 
 RaveCoreObjectType BeamBlockage_TYPE = {
index bd3132c..1d62c5e 100644 (file)
@@ -27,6 +27,7 @@ along with beamb.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef BEAMBLOCKAGE_H
 #define BEAMBLOCKAGE_H
 #include "rave_object.h"
+#include "rave_field.h"
 
 /**
  * Defines a beam blockage object
@@ -53,4 +54,12 @@ int BeamBlockage_setTopo30Directory(BeamBlockage_t* self, const char* topodirect
  */
 const char* BeamBlockage_getTopo30Directory(BeamBlockage_t* self);
 
+/**
+ * Gets the blockage for the provided scan.
+ * @param[in] self - self
+ * @param[in] scan - the scan to check blockage
+ * @return the beam blockage field
+ */
+RaveField_t* BeamBlockage_getBlockage(BeamBlockage_t* self, PolarScan_t* scan);
+
 #endif /* BEAMBLOCKAGE_H */
index b42bfc7..b347f24 100644 (file)
@@ -64,6 +64,7 @@ class PyBeamBlockageMapTest(unittest.TestCase):
     self.assertTrue(result != None)
     self.assertEquals(6000, result.ysize)
     self.assertEquals(9600, result.xsize)
+  
 if __name__ == "__main__":
   #import sys;sys.argv = ['', 'Test.testName']
   unittest.main()
\ No newline at end of file