updated ncIdv to fix zidv writing