modified grib file resolution code, factored cycle logic into cycles.jxa