malonzo47 / pynita_GUI

pynita_GUI is python GUI based implementation of Noise Insensitive Trajectory Algorithm (NITA)
4 stars 3 forks source link

allow user to specify distdate beginning/middle/end #76

Closed malonzo47 closed 4 years ago

malonzo47 commented 4 years ago

The code allows for users to specify whether they would like to know the disturbance date calculated at the "beginning", "middle", or "end" of a disturbance segment. Currently, the "middle" option is hard-coded into pynita_gui_main around line 1035: nita.MI_distDate(**option='middle'**, plot=self.plot3.isChecked(), save=self.save3.isChecked(), fn='distdate.tif', title = title, label=label)

Users should be able to set this option from the ini file, configured in Step 1 c. Can you add an item to the end of the Step 1 c list for: "dist_date position:"? Then dist_date_pos would be a parameter in the ini file with possible values of beginning, middle, and end.

FreelanceDev217 commented 4 years ago

Changed. Not sure how to check. Please check using the latest source from the main repository.

malonzo47 commented 4 years ago

I get this error in Step 4 when I actually try to plot distdate. Note: I did not change the default "middle" value) image

FreelanceDev217 commented 4 years ago

Sorry. I pushed again. Please check again.

malonzo47 commented 4 years ago

Seems to work now. Thanks.