added doExport api for saving the nc file in the zidv, it is not completed waiting for John to change the Rewrite class. So there are two lines tmp comment out.