Revert "'Revert "Add sign (pos or neg) processing to analysis curvature scripts.""

This reverts commit 90b7c17fef5b0adc379f1cb5ee5292d29fe4c014.