Borrar filtros
Borrar filtros

Generating multiple CSV files for data of each day in a time-series netCDF file

1 visualización (últimos 30 días)
I have a netCDF file that is of size 330*470*47, 47 being the time size. I would like to create 47 separate CSV files of each 330*470 size, based on the data stored under each of the time stamp. I tried extracting by data(time=1) and saving it. It didn't work. How can it be solved? Thanking you in advance!
  3 comentarios
Hitesh Bugata
Hitesh Bugata el 29 de Jul. de 2020
'It didn't work' mean 'data of variable I want to extract for a given time frame didn't happen'. If you can see the attached image, it has several variables. Focus on that fact that time variable size is 47. I want to create 47 CSV files with lat, lon, ET500 variable values for each time stamp. Rest variables' data can be discarded. i used ncread to read the variable data of required variables and tried to extract for all 47 times by putting ET_new=ET500(time=='....') in a loop from the beginning and end of time data. Am I missing something now?
dpb
dpb el 29 de Jul. de 2020
Absolutely nothing anybody here can do w/ an image...

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by