unable to change a filed value using binary editor

Data formats, HDF5, XML profiles, etc.
Post Reply
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

unable to change a filed value using binary editor

Post by lucy liu »

I used binary editor to edit a field in 4dc4242d-1f6f2-9b9dea23-e963b8e2.VIIRS-LST-EDR-AC_npp_20020101010000Z_20020101010000Z_ee00000000000000Z_1_devl_dev_noaa_ops.xml_Internal.
But the tool does not allow me to update the value most of the time, sometime I am able to update the value but the tool does not prompt to save the change.

Could anyone tell me what is wrong?

Thanks a lot.
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: unable to change a filed value using binary editor

Post by kbisanz »

You need to expand the tree and where it says "Field: " you need to right click and select "Edit". For example, right click on "Field: min_Bt_M12_M13" for the first field in 4dc4242d-1f6f2-9b9dea23-e963b8e2.VIIRS-LST-EDR-AC_npp_20020101010000Z_20020101010000Z_ee00000000000000Z_1_devl_dev_noaa_ops.xml_Internal.

A window containing the values for the field should appear. After updating the value in the text box, you have to click outside of the text box before clicking Close. I think pushing Enter on the keyboard works too.

Does this solve your issue?
Kevin Bisanz
Raytheon Company
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

Re: unable to change a filed value using binary editor

Post by lucy liu »

I found the Field:algmode and right click the field and then a menu shows up for import ,export ,edit etc. I chose 'edit' and a window shows up containing the value of this field.
I would like to change the value but the problem is that I am unable to edit the value in the text box.
I donot know if there is any trick here in order to edit the value.
I tried click or double click the value field but neither works. The problem happens on every field. And I checked the file ownership and I have the written privilege for this file.
Any ideas? Thanks.
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: unable to change a filed value using binary editor

Post by kbisanz »

I tried changing algmode on a Linux install we have and was not able to reproduce your problem. I was able to change algmode without any issues.

Is your problem that you're not able to change the value in the text box, or the value isn't getting written to disk?

I would make sure that you have permissions to write to the file. You should be able to do "touch 4dc4242d-1f6f2-9b9dea23-e963b8e2.VIIRS-LST-EDR-AC_npp_20020101010000Z_20020101010000Z_ee00000000000000Z_1_devl_dev_noaa_ops.xml_Internal" and update the date on the file.

Another thing very important to remember is that the file 4dc4242d-1f6f2-9b9dea23-e963b8e2.VIIRS-LST-EDR-AC_npp_20020101010000Z_20020101010000Z_ee00000000000000Z_1_devl_dev_noaa_ops.xml_Internal that was shipped with the delivery is big endian and not little endian like an Intel based Linux machine. The algorithm code (but not binary editor code) is smart enough to look at 4dc4242d-1f6f2-9b9dea23-e963b8e2.asc and find the ByteOrder flag (or assume it's big endian if it can't find it) and byte swap if needed.

If you're using the binary editor to edit a big endian binary on a little endian machine, you MUST convert the endianness first. I'd recommend using $ADL_HOME/tools/bin/AdlFileEndianConverter.exe to convert the endianness. Section 3.2.1.5.6.5 of User Manual Part 2 in $ADL_HOME/doc describes the use. If you don't convert the endianness, the binary file will contain mixed endianness and no good can come from that when the LST algorithm runs. :)

If you have any questions, please respond back. If you're still having issues, please include which ADL version (3.0 or 3.1 you're using), as well as if you installed from source or you're using the virtual appliance.
Kevin Bisanz
Raytheon Company
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

Re: unable to change a filed value using binary editor

Post by lucy liu »

I found the problem. When I edit a field, if the whole value window shows up , and I can move the window, then I am unable to edit the value.
I am able to edit the value only when the value window shows up partly without title. I can not move the window but I am able to edit the value.
I have not figured out the reason for the difference because I did exactly same for editing the field.
Could you tell me how the window shows up at your side?
I am surprised with this finding. Is it related to desktop resolution because the value window shows up differently?

I am using ADL3.1 built from source. Thanks.
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: unable to change a filed value using binary editor

Post by kbisanz »

I have attached a screenshot I took with gimp on our Linux laptop.

Originally, the window titled "algmode" was over the window titled "Pro Binary Editor", but I moved the algmode window so you could see both. I did not resize either window. I attempted to resize the algmode window, but was not able to do so.

After taking the screenshot, I was able to move both windows and resize the Pro Binary Editor window.

Please post back if you discover anything else.
Attachments
Binary Editor Screenshot
Binary Editor Screenshot
binaryEditor.png (167.43 KiB) Viewed 2377 times
Kevin Bisanz
Raytheon Company
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

Re: unable to change a filed value using binary editor

Post by lucy liu »

If my algmode window is like yours ,then I am unable to edit the value.
I have modified the field after a lot of tries because most of time, the tool does not allow me to do so.
Still donot know the reason for this. But anyway I have modified the field. Thanks a lot.
Post Reply