CSV
- class typhon.files.handlers.common.CSV(info=None)[source]
File handler that can read / write data from / to a CSV file
A CSV file is file containing data separated by commas (or by any other delimiter).
- __init__(info=None)[source]
Initializes a CSV file handler class.
- Parameters:
info – A function that returns a
FileInfo
object of a given file.
Methods
__init__
([info])Initializes a CSV file handler class.
get_info
(filename, **kwargs)Return a
FileInfo
object with parameters about the file content.read
(file_info[, fields])Read a CSV file and return an xarray.Dataset with its content
write
(data, file_info, **kwargs)Write a xarray.Dataset to a CSV file.