added wrapper getgwc.m