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.
The math overall looks correct. My guess is that your difference comes from km2deg(), which I'm assuming is converting your range to lat/lon degrees. This sounds like a rudimentary map projection, which is probably where you differ from WCT. Since range is a polar variable, I'm not sure that converting it to degrees is robust, since even the most simple conversion would likely differ for N/S degrees vs. E/W degrees. Either way, I don't think you're having any problems with the data I/O or netcdf. Good luck with the MatLab! Ticket Details =================== Ticket ID: LOE-612985 Department: Support netCDF Java Priority: Normal Status: Open