.. highlightlang:: us .. _nc_copy: nc_copy ======= .. index:: nc_copy .. us.tag nc_copy GERMAN NC New532 :ref:`nc_copy` kopiert die Daten einer offenen NC-Datei in eine neue NC-Datei. .. function:: ret = nc_copy(ncid, ncid_out) .. us.return **Returnwert** *ret* ist -1 falls ein Fehler aufgetreten ist und sonst ungleich -1. .. us.params **Parameter** .. uparam:: ncid *ncid* identifiziert die Quell-netCDF-Datei. .. uparam:: ncid_out *ncid_out* ist die Ziel-Datei. .. us.example **Beispiel** :: ncid = nc_open("d:/test.nc", NC_NOWRITE); ncid_out = nc_create("d:/test-out.nc", NC_CLOBBER|NC_FORMAT_CLASSIC); ret = nc_copy(ncid, ncid_out); nc_close(ncid_out); nc_close(ncid); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Beschreibung * - 5.3.2 - Neu. .. seealso:: :ref:`uberblick-netcdf-dateien`, :ref:`nc_open`, :ref:`nc_create`, :ref:`nc_inquire_format`, :ref:`nc_close` :sub:`id-329784`