How can I extract the 'missing_value' from a variable in a NetCDF file?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Austin M. Weber
am 2 Dez. 2021
Beantwortet: Austin M. Weber
am 2 Dez. 2021
I have a NetCDF (.nc) file containing evapotranspiration data. I want to extract the value from the 'missing_value' field in evavt variable. How can I do this?
I have provided the output from ncdisp(filename) below that contains the relevant information. For the purpose of this question, my .nc file is saved as the variable 'filename' without the quotes. Thank you for your help!
ncdisp(filename)
...
Variables:
longitude
Size: 3600x1
Dimensions: longitude
Datatype: single
Attributes:
units = 'degrees_east'
long_name = 'longitude'
latitude
Size: 1001x1
Dimensions: latitude
Datatype: single
Attributes:
units = 'degrees_north'
long_name = 'latitude'
time
Size: 732x1
Dimensions: time
Datatype: int32
Attributes:
units = 'hours since 1900-01-01 00:00:00.0'
long_name = 'time'
calendar = 'gregorian'
evavt
Size: 3600x1001x732
Dimensions: longitude,latitude,time
Datatype: int16
Attributes:
scale_factor = 2.1373e-07
add_offset = -0.0059507
_FillValue = -32767
missing_value = -32767
units = 'm of water equivalent'
long_name = 'Evaporation from vegetation transpiration'
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu NetCDF finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!