Borrar filtros
Borrar filtros

Txt file to NetCDF file

4 visualizaciones (últimos 30 días)
Felipe
Felipe el 9 de Jun. de 2014
Comentada: Kelly Kearney el 9 de Jun. de 2014
How can i turn a txt file into a nc file in MatLab ?

Respuesta aceptada

Chad Greene
Chad Greene el 9 de Jun. de 2014
ncwrite can do it.

Más respuestas (1)

Felipe
Felipe el 9 de Jun. de 2014
But my txt file has no strings, only numbers. To use ncwrite i have to use nccreate and i am unable to use. How would be the correct syntax to use ncwrite in this case ?
Thanks
  1 comentario
Kelly Kearney
Kelly Kearney el 9 de Jun. de 2014
Before you can write a variable to a netcdf file, you need to first set up the netcdf file with the proper variable names, dimensions, etc. via nccreate.
Exactly what those variable names and dimensions will be depend on the data in your text file, which you haven't yet described. Perhaps if you give us some more info we can help you with the syntax.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by