Switched to correct code for intercomparison portal.

We had the icp and compare groups logic messed up. This fixes it. This script is on wsdev now and tested to work.