How to Build a Reclass Calculator
Overview:
Reclass calculators are a useful tool, when you don't need the complexity of multiple variables in an Excel calculator. A user can take a reclass calculator to ONE variable in an AgStudio layer and convert it into a single outcome.
Requirements:
- Fields setup in AgStudio
- Layers setup in AgStudio with attributes to be used.
- Information about that attribute.
Process:
Unlike Excel calculators, Reclass calculator work is done completely within AgStudio. As the user, you will just want an understanding of the results you want to get from your variable.
- Go to Setup > Calculators
- In the Calculator Editor, click Add at the bottom.
- In the box that appears, enter the Name of the new calculator, the scope of the calculator (normally Nutrient or Seed Rate), and then select the Domain that this calculator will be used. Click OK.
- In the Reclass editor, on the first page we will define the attribute and the result.
- For the Variable;
- you will select either Scalar (numbers) or Nominal (textual values, like Soil Type or Class).
- In the Name, replace "Variable" with the name of the Attribute you will be using to create Results.
- You will then want to define this attribute's Unit of Measure (UOM).
- For the Result;
- Replace "Result" with the name of the result (i.e. for a nutrient recommendation, like P_rec or K_rec).
- Define the Data Use for the result, typically Nutrient or Seed Rate.
- You can then define how many decimals and how long the result will be.
- Last you will want to define the UOM for the result.
- For the Conditional; to run this calculator in certain conditions, click New, then fill out the Conditional information (i.e. Name = Crop, Value = Corn, to run this calculator on Corn crops).
- Click Next to go to the next page.
- For Scalar data - On the left side you will see 3 columns, 2 columns for your variable (to define ranges) and the Result column.
- It is the best/easiest practice to replace the "Max" value with the next lowest value and work your way up.
- Type in the value, and Tab over to the Result. Enter the result and press Enter.
- A new line will appear. Repeat this process until all ranges are complete, including the Max range.
- To include numbers below the range in the recommendation, check the Lower Bound in Range box.
- For a sliding scale, check the Interpolate Values box. This will create more of a slope, Unchecking the box will create more of a stair step effect.
- Once at least 3 values are entered, a graph will appear on the right showing the results.
- It is the best/easiest practice to replace the "Max" value with the next lowest value and work your way up.
- For Nominal Data - You will see two columns. One for the variable and the other column for the Result.
- Simply enter the "name" of the variable in the left column.
- Enter the value of the result in the right column.
- To add new values, Click Insert and repeat process.
- In the Default Result box, enter a "Default" value for any variable not listed.
- Click "Finish" to save the calculator to your Calculator list.
Related Articles:
How do I import/add calculators?
How do I build a nutrient recommendation script?