virtualargofleet.utilities.simu2csv#

simu2csv(simu_file: str, index_file: str | None = None, df: DataFrame | None = None)[source]#

Save simulation results profile index to file, as Argo index

Argo profile index can be loaded with argopy.

Parameters:
  • simu_file (str) – Path to netcdf file of simulation results, to load profiles from

  • index_file (str, optional) – Path to csv file to write index to. By default, it is set using the simu_file value.

  • df (pandas.DataFrame, optional) – If provided, will be used as the profile index, otherwise, compute index from simu_file

Returns:

index_file – Path to the Argo profile index created

Return type:

str