View on GitHub

mooda

Module for Ocean Observatory Data Analysis - Python package

WaterFrame.to_csv(path=None)

Reference

Create a CSV file with the WaterFrame data. The metadata and vocabulary will be placed in the first lines of the file with a # as first character of the line.

Parameters

Returns

Example

To reproduce the example, download the NetCDF file MO_TS_MO_OBSEA_201402.nc.

import mooda as md

path = "MO_TS_MO_OBSEA_201402.nc"
wf = md.read_nc_emodnet(path)

path_csv = wf.to_csv()

print(path_csv)

Output:

MO_TS_MO_OBSEA_201402.csv

Note: The example makes a CSV with the name and location of the output.

Return to mooda.WaterFrame.