r script to parse data from objective anaylsis