-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cathist and errors using fx output #1095
Comments
Original Redmine Comment I am experiencing similar problems using fx with parens in the equation parameter ("((f1+f2)-(f3*-2.0))/((f1+f2)+(f3*-2.0))") and then running errors on the result. It is especially frustrating because I am dealing with more than 1000 files, and without the the use of errors I have to check the output manually - a real time burner! Jac |
Original Redmine Comment When cathist reads the Pvl, it treats anything enclosed in ( ) as an array, so it gets confused with the EQUATION value's use of parentheses. For now, here's a work around: use [ ] instead of ( ). I don't know if that will be the best permanent solution, I am looking into other possible fixes. |
Original Redmine Comment IMPACT |
Original Redmine Comment User Test1: Not successful: par file is corrupted Command: |
Original Redmine Comment User Test2: Output correct, cathist worked, 'errors' worked....par file corrupted. Location and Command: fx f1=CM_1585183559_1_ir_mwinavg.cub+1 |
Original Redmine Comment I strongly oppose the need for a "--" as a negation operator. This is very confusing and not applied consistently as demonstrated in the above equations. Why does it seem to be required only when following a left paren and not other operators (e.g., * in note 3063)? The double minus is commonly used in C/C++ (and other languages) as a decrement operator which amounts to "subtract 1 from the operand and reassign to the operand". Can someone please explain the rationale for this? |
Original Redmine Comment I agree with Kris - using two dashes for a negative sign is going to be extremely confusing to most users (like me!). It's not intuitive at all and has a standard meaning not just in programming languages, but it is also frequently used when setting options for unix system tools. Is there another way to do this? |
Original Redmine Comment Based on scope of issues changed to feedback |
Original Redmine Comment Set status back to assigned. A new post has been added to deal with the negative number syntax. This post will remain focused on the original issue fixing interactions with cathist, errors and the 'last.par' parameter file. |
Original Redmine Comment This bug has been found to be a larger issue with how PVLs are handled. I have reset the estimated hours to >20. |
Original Redmine Comment Notes based on discussion w/ Jeannie and Stuart: Recommended resolution will take an estimated 80 hours with a 2-developer team (40 hours each). The recommended resolution is a 'PVL refactor' to handle vectors properly and make the class more 'PDS-PVL compliant'. The problem is the class does not correctly handle multi-dimensional arrays. The current PVL-sequence class can then be removed. A work-around solution will take nearly the same amount of hours. |
Original Redmine Comment The plan is to push this to Q3 for now |
Original Redmine Comment /work/projects/lro/minirf/tbecker/NorthPole/CPR/0t180/ |
Author Name: Jeff Anderson (Jeff Anderson)
Original Assignee: Jean Walldren
when fx has parens in the equation the print file and cube history are no longer valid pvls
The cathist error:
ast{513}> cathist from=LSZ_04594_1CD_XKU_82N101_V1_CPR_NOHALF.cub mode=brief
ERROR Error in PVL file on line [62].
ERROR Unable to read PVL keyword [EQUATION = ((F1 + F2) - (F3 * -2.0)) / ((F1 + F2) + (F3 * -2.0))].
ERROR Found extra data after [(F1 + F2)] in array when reading PVL.
ast{514}> cathist from=LSZ_04594_1CD_XKU_82N101_V1_CPR_NOHALF.cub
ERROR Error in PVL file on line [62].
ERROR Unable to read PVL keyword [EQUATION = ((F1 + F2) - (F3 * -2.0)) / ((F1 + F2) + (F3 * -2.0))].
ERROR Found extra data after [(F1 + F2)] in array when reading PVL
Steps to reproduce:
To reproduce:
Run fx as follows:
Object = fx
IsisVersion = "3.3.1.4208 alpha | 2011-09-20"
ProgramVersion = 2012-02-09
ProgramPath = /usgs/pkgs/isis3production2012-04-11/isis/bin
ExecutionDateTime = 2012-04-12T19:31:33
HostName = astrovm1.wr.usgs.gov
UserName = tbecker
Description = "Generalized arithmetic operations using multiple cube
files"
Group = UserParameters
F1 = LSZ_04594_1CD_XKU_82N101_V1.cub+1
F2 = LSZ_04594_1CD_XKU_82N101_V1.cub+2
F3 = LSZ_04594_1CD_XKU_82N101_V1.cub+4
TO = LSZ_04594_1CD_XKU_82N101_V1_CPR_NOHALF.cub
EQUATION = ((F1 + F2) - (F3 * -2.0)) / ((F1 + F2) + (F3 * -2.0))
MODE = CUBES
End_Group
Additional information:
Also, when I bring up the fx gui, it cannot recover the parameter settings from the .par file
The text was updated successfully, but these errors were encountered: