/* *********************************************************************** !F77 !DESCRIPTION: Routine for finding the number of pixels surrounding the center pixel in a context (nlcntx*necntx pixels) that satisfy a difference criterion. !Input Parameters: None Inputs stored in structure variable 'pxin' of type "pixel_in" defined in pixel.h. !Output Parameters: None Outputs stored in structure variable 'rg_var' of type "regional_var" defined in pixel.h !Revision History: 06/04 Collection 5 R. Frey Updated argument list. 11/07 Converted to C R. Frey !Team-unique Header: !References and Credits: See Cloud Mask ATBD !END ***********************************************************************/ /* Includes */ #include #include #include "pixel.h" #include "thresholds.h" #include "mask_processing_constants.h" int spatial_var() { /* Declarations */ int i; int ipt; int result; /* Initializations */ // printf("Executing spatial_var \n"); ipt = 0; /**********************************************************************/ // Compare surrounding differences to threshold. for ( i=0; i