[gradsusr] reading a CSV

Bill Reilly bill_reilly at compuserve.com
Thu Sep 3 16:44:13 EDT 2015


Jeff:

You can try replacing all the commas with spaces first (using a text 
editor or command line function) and then you can use the subwrd() 
command like normal.

Bill

--

Bill Reilly
(+34) 686-110-748

bill at passageweather.com
www.passageweather.com

bill at brwebworks.com
www.brwebworks.com

On 9/3/2015 9:17 PM, Jeff Duda wrote:
> Is there a simple function in Grads to read text data from a csv file? 
> The intrinsic function read() offers an advantage for files with 
> spaces, making the subwrd() command particularly useful. However, when 
> there are no spaces, obtaining specific columns, especially when the 
> number of digits used to express the data is not the same between 
> different records, becomes quite tedious. There must be something that 
> already exists that's simpler than what I'm currently doing.
>
> Jeff Duda
>
> -- 
> Jeff Duda
> Graduate research assistant
> University of Oklahoma School of Meteorology
> Center for Analysis and Prediction of Storms
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list