This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Randy- Firstly, please use a new e-mail for each issue instead of just replying to an old message or remove the ticket ID from the message. That way they are logged as separate reports and we can more easily keep track of them. Thanks. > I have a netcdf file containing temperatures. Some of the grid points > have values of -999 which i want IDV to interpret as missing. I want to > use the color-shaded plan view as the option so i can show a basemap > underneath for those values which are missing (-999). It seems to work > for the color-filled contour option but the interpolation does not look > very good between the grid points. If you are writing the netCDF file, you can indicate the missing value by adding a missing_value attribute to the variable. Set the value to be -999 using the same type as the variable (int, float, etc). If you are not writing the file, you can wrap it in an NcML file and load that in. So, to add an attribute to a float variable named temp in a file called foo.nc, your NcML file would look like: <?xml version="1.0" encoding="UTF-8"?> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="foo.nc"> <variable name="temp"> <attribute name="missing_value" type="float" value="-999"/> </variable> </netcdf> Don Murray Ticket Details =================== Ticket ID: VZT-405755 Department: Support IDV Priority: Normal Status: Open