How to edit a particular variable in a netcdf file?
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Angshuman
el 15 de En. de 2012
Editada: John Kelly
el 26 de Feb. de 2015
Hi, I am trying to modify a specific variable in a netcdf file. In my file a 4D-variable named MSUL_V(lat,lon,level,time) is there, i want to change the values of this variable at every lat and lon. I am not familiar with editing variables in netcdf package MATLAB.
Please help me about this. I do appreciate if everyone could help me about this. Thanks Angshuman
0 comentarios
Respuesta aceptada
Ashish Uthama
el 16 de En. de 2012
Editada: John Kelly
el 26 de Feb. de 2015
2 comentarios
Ashish Uthama
el 18 de En. de 2012
Yes, but it will need a bit more work. Have a look at this example: http://www.mathworks.com/help/techdoc/ref/netcdf.putvar.html (It creates a new file and write a new variable). You will have to code up something similar, i.e open a file in write mode, get the variable ID of your variable and then use putvar to overwrite it.
Más respuestas (0)
Ver también
Categorías
Más información sobre NetCDF en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!