I have done a fair bit of open water sailing, and besides staying at a Holiday Inn last night, also have several open water navigation courses under my belt. Maybe this is well known to folks, but in case not, maybe this will help the discussion. In sailing terms the magnetic
variation is the difference between magnetic north and true north. I think the more formal term is magnetic declination. And magnetic
deviation is the difference between magnetic north and where the boat's compass actually points.
Nautical charts have magnetic variation printed on them, along with a date, and an annual correction to the variation to apply for each year past the chart reference. This is needed because the position of the magnetic north pole is not static, it actually moves with time.
Apart from the chart data, there are several computational models that take latitude, longitude and time as input and spit out a variation number, two well known ones are The World Magnetic Model, a joint US & UK development, and The International Geomagnetic Reference Field. So yes there ARE publicly available models to get variation (declination) from lat/lon data (and date/time). Websites here for anyone interested:
World Magnetic Model | NCEI &
IAGA V-MOD Geomagnetic Field Modeling: International Geomagnetic Reference Field IGRF-12.
And for deviation - this is the result of things on the boat that have an influence on where the compass actually points, because it rarely is magnetic north. There are many things that can influence the magnetic field in the vicinity of the compass, including anything metal, batteries, electrical circuitry, other gear like GPS, depth sensors, etc, etc, etc. The deviation if unique to a particular vessel, and is constant wherever that vessel is throughout the world.
The process by which the deviation for a particular vessel is obtained is called "swinging the compass" (hmm, sound familiar?). The vessel is steered to a set of known headings in different directions, typically 8 or more. At each known heading the compass indication is recorded. This separates the influence on the compass that remains constant at all headings (the earth's magnetic field) and the part that changes with changing heading (the impact of the "other stuff"). The result is a deviation card with the correction the navigator needs apply at each heading. Generally the deviation is not constant for all headings because the influence of the "other stuff" varies depending on its orientation to the earth's magnetic field & the compass. To me this is analogous to the compass calibration called for by the DJI Go software.
I can't speak to exactly how DJI generates its variation and deviation data, but it seems likely that they use one of the readily available models to determine variation (declination), and then they rely on the results from the "calibration dance" for deviation.
BTW - I don't have a horse in this particular scrap, just wanted to contribute something that might help clarify things based on something unrelated to drones. My apologies if this is not considered constructive.