I have netcdf files where _FillValue and/or missing value are set in various combinations (e.g. as float, string, or not at all, and generally as -999./'-999' ). I am manipulating these files and saving them again and want to set the fill value properly and consistently in my output files. My questions are:
1) use _FillValue, or missing_value, or both, and what is the difference?
2) Which type should the fill value be, and what's the best practice regarding value? -999 seems like it could be confused with actual data
3) how does the netdcf fill value combine with the fill_value in my masked array (which seems to default to 10^20)? it seems like two approaches to correct the same thing.
4) I also get a warning when dealing with the data: "UserWarning: WARNING: missing_value not used since it cannot be safely cast to variable data type", and a _FillValue gets automatically set to roughly 10^36. SO I presume my -999 missing value is indeed a bad idea.
I am using python 3.7 and netcdf4.
Thanks!