added if/els loop for different means. tried to fix PC writing to ncetCDF too - missing count. Check if it works!