We introduce an refinement of the stable pair
invariants of Pandharipande and Thomas for
non-compact Calabi-Yau spaces based on a virtual
Bialynicki-Birula decomposition with respect to
a C* action on the stable pair moduli space.
This effectively calculates the refined index for
M-theory reduced on these Calabi-Yau geometries,
which fullfills a generalized holomorphic anomaly
equation. A possible application to knot theory
is discussed.