How can I read and extract Fill Value from netcdf file
Mostrar comentarios más antiguos
I really thanks someone tell me how can I extract fill value, I used following comment it doesn't work. Thanks in advance.
FillValue = ncreadatt (ncfilename, 'PRES', 'FillValue_');
nc {'PRES'}. FillValue_ = ncfloat (99999);
1 comentario
Farshid Daryabor
el 9 de Abr. de 2020
Respuestas (1)
BN
el 9 de Abr. de 2020
Try this:
I assume that the name of your NetCDF is filename
vinfo = ncinfo(filename) % You can see the struct now
Fill_v = vinfo.Variables.FillValue % extract fill value
Also you can read more here
1 comentario
Farshid Daryabor
el 9 de Abr. de 2020
Categorías
Más información sobre NetCDF Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!