GetStarPatch:

Path: SpacecraftEstimation/StellarCatalog

% Generates a star catalog for a patch of sky.
------------------------------------------------------------------------
   Form:
   [patch, k, s] = GetStarPatch( starCatalog, rA, dec, rAWidth, decWidth )
------------------------------------------------------------------------

   ------
   Inputs
   ------
   starCatalog (1,1)        Star catalog data structure
   rA          (1,1)        Right ascension center (rad)
   dec         (1,1)        Declination center (rad)
   rAWidth     (1,1)        Width in right ascension about center (rad)
   decWidth    (1,1)        Width in declination about center (rad)

   -------
   Outputs
   -------
   patch        (3,:)       [Intensity;rA;dec]
   k            (1,:)       Indexes
   s            (1,1)       Catalog data structure

------------------------------------------------------------------------