Commit a1f66683 authored by Cresson Remi's avatar Cresson Remi
Browse files

ENH: add option to enable zero-y intercept

parent 9807348d
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
...@@ -445,8 +445,10 @@ private: ...@@ -445,8 +445,10 @@ private:
if (band>0) if (band>0)
exp << ";"; exp << ";";
exp << "im1b" << (band+1) << "*" << b1; exp << "im1b" << (band+1) << "*" << b1;
if (b0 != 0) if (b0>0)
exp << "+" << b0; exp << "+" << b0;
else
exp << "" << b0;
gain[band] = b1; gain[band] = b1;
offset[band] = b0; offset[band] = b0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment