MuffinSpawn / FMS

My personal FMS task management and field-testing repository.
0 stars 0 forks source link

Option to set refraction index #30

Closed MuffinSpawn closed 7 years ago

MuffinSpawn commented 7 years ago

The LT API Initialize function should allow for setting the weatherMonitorStatus to ReadOnly. Also, functionality should be added to the API to

1) get weather data, and 2) set the refraction index before a measurement.

Furthermore, the LT component should be updated to have a property that indicates which algorithm to use to calculate the refraction index. If it is "Leica:, then weatherMonitorStatus will be set to ReadAndCalculateRefractions, otherwise it will be set to ReadOnly and the component will monitor the environment parameters and set the refraction index properly before each measurement.

Refer to issues #17 for details on manually calculating the refraction index.

MuffinSpawn commented 7 years ago

API option has been added.

MuffinSpawn commented 7 years ago

The API part is done. I added the component property and added check in the Measure class function to query the environment parameters, call the Ciddor & Hill calculation, and pass the refraction index to the Measure API function. I still need to implement the algorithm.

MuffinSpawn commented 7 years ago

Added temperature and pressure conversion functions. This is required for implementing the Ciddor Hill algorithm since the inputs must be in specific units.

MuffinSpawn commented 7 years ago

Done. The LT client also now has a setting to turn manual index of refraction on and off.