i have attached two csv file i want to convert "GLDAS_NOA​H10......c​sv"file in the format of "Apr-02.csv".please provide me the code

1 visualización (últimos 30 días)
convert the GLDAS ......csv in the format of Apr-02.csv

Respuesta aceptada

KSSV
KSSV el 26 de Jun. de 2018
file = 'GLDAS_NOAH10_M.A200201.021.csv' ;
[num,txt,raw] = xlsread(file) ;
lon = num(1,:) ; lon(1) = [] ;
lat = num(:,1) ; lat(1) = [] ;
A = num(2:end,2:end) ;
[X,Y] = meshgrid(lon,lat) ;
T = [X(:) Y(:) A(:)] ;
xlswrite('check.xlsx',T)

Más respuestas (1)

TAPAS
TAPAS el 26 de Jun. de 2018
I have attached this .nc4 format file.I want to extract a particular parameter eg. "SoilMoi0_10cm_inst" but the extracted file will be in the .xlsx format along with long and lat and the data in three column one for long,one for lat and one for value.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by