First pass of getRDM.m. Will most likely need some fixes once we have data to run through it, but shouldn't be anything too crazy.