The LST algorithm's *_CFG.xml file contains this:
Code: Select all
<group name="Geolocation_Mod_TC">
<config>
<name>OfficialShortName_1</name>
<configValue>VIIRS-MOD-RGEO-TC</configValue>
</config>
<config>
<name>OfficialShortNameConversionProduct_1</name>
<configValue>VIIRS-MOD-GEO-TC</configValue>
</config>
<config>
When the code runs, it first looks for the entry under OfficialShortName_1. If it's found, the code is happy and uses the data as retrieved. However, if OfficialShortName_1 is not found, then OfficialShortNameConversionProduct_1 is searched for. If that's found, the code retrieves the data and performs the conversions as listed for the fields in the product's XML description. For example, $ADL_HOME/cfg/VIIRS_MOD_GEO.xml contains
Code: Select all
<Field>
<Name>solar zenith angle</Name>
<Symbol>sunzen</Symbol>
...
<DictionaryMask>PROCMN_DICT_DEGTORAD_MASK</DictionaryMask>
<DictionaryMask>PROCMN_DICT_SCAN_FILL_MASK</DictionaryMask>
<DictionaryMask>PROCMN_DICT_FATSCANFIELD_MASK</DictionaryMask>
<InitialFill>-999.3</InitialFill>
<DataType>Float32</DataType>
So, if you want the code to perform a degree to radian conversion for you, you need to get it to use the OfficialShortNameConversionProduct_1 entry. You can do this by either removing the OfficialShortName_1 block, or by changing the OfficialShortName_1 entry to be something it won't find, like VIIRS-MOD-RGEO-TC-MISSING. So, you probably want something like this (Note the missing OfficialShortName_1):
Code: Select all
<group name="Geolocation_Mod_TC">
<config>
<name>OfficialShortNameConversionProduct_1</name>
<configValue>VIIRS-MOD-GEO-TC</configValue>
</config>
<config>
<name>DataEndianType</name>
<configValue>Big</configValue>
</config>
</group>