modified functions to be more generic, added ice
updated to account for mods to GLMnetCDF.R
write mod with changes to GLMnetCDF.R