Begin adapting methods from ncgeovariable to geocdmvariable. Removing lots and lots of code duplication