Tabular_csv

Inheritance diagram of gspy.src.classes.data.tabular_csv
class gspy.src.classes.data.tabular_csv.Tabular_csv(xarray_obj)

Class to handle tabular csv files.

Tabular_csv.read(filename, metadata_file, spatial_ref, **kwargs)

Parameters:
  • filename (str) – Filename to read from.

  • metadata_file (str, optional) – Json file name, by default None

  • spatial_ref (dict, gspy.Spatial_ref, or xarray.DataArray, optional) – Spatial ref object, by default None

Returns:

Dataset with all data read in.

Return type:

xarray.Dataset

See also

Tabular.read

Class method for reading file into class

survey.Spatial_ref

For Spatial reference instantiation.

property file_handler
static get_attrs(file_handle, variable, **kwargs)
write_csv(filename)

Export tabular_csv to CSV file

Parameters:

filename (str) – Path to output csv file