reading csv data with missing values

From: zhangbinrc <zhangbinrc_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 26 2014 - 20:59:21 MST

Hi all,

I’m writing a script to read in a 16x2 csv file with 3 values missing. The main script lines are as following:

data = asciiread("data/test.csv",(/16,2/),"float")

print(data(:,1))

The problem is that the missing values are skipped. Is there any way that I can keep the missing values in the right location of the matrix ?

The file is attached here.

Thanks!

张斌 博士生/Bin Zhang Ph.D. Candidate
清华大学地球系统科学研究中心/ Center for Earth System Science, Tsinghua
Email:zhangbin06@mails.tsinghua.edu.cn

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Feb 26 21:03:16 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:26:18 MST