IPB
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3  
Reply to this topicStart new topic
Decoding MER image filenames, playing around with javascript
vk3ukf
post Jul 14 2008, 01:38 PM
Post #31


Junior Member
**

Group: Members
Posts: 47
Joined: 27-December 07
Member No.: 3991



QUOTE (Tman @ Jul 14 2008, 12:39 PM) *
Hi Kevin,

Nice and extensive program that you've written!
But whew! There are many of those *.pas files. Which of them would you recommend?
And then I have probably no clue how I could "it" let run along with my JavaScript smile.gif

Anyway Thanks!


Hi Tman, yeah there is a few, this file has most of the interesting code in it.

MerViewer20071Unit1.pas

This is the code for the main view page, this does the dates etc.

If you see codes for buttons e.g.
Button3.Click; may be mentioned as doing some feature, say for example clicking on button 3 will show page 4, such code as,
Form4.Show;
Look for the file ending in ***Unit4.pas and the appropriate code will be in there.
I tried to name the *.pas files for what they did, a couple got mucked up.

So, the command Form4.Show; will display the 4th page created which has some name ending in Unit4.pas, the UnitX.pas at the end really helps during wandering while trying to match statements.

Program pages are in fact called by statements such as Form9.Show;
Which will show the 9th page I made.
Which will have a *.pas name ending in ****Unit9.pas or ****Unit20079.pas

Last year I put the actual year into some of the filenames, so if you see e.g. PageFunctionNameUnit200735.pas, remove the 2007 bit in your mind, it is really PageFunctionNameUnit35.pas or page 35.

I know what you mean when getting into other languages, I'm there when I look at Java.
I've had a little success myself in playing around a tad with Java, but my candle is dim.

Just ask Tman, I'll do my best.

Java and other high level languages can usually be interpreted fairly well, they are not too disimilar.

Me changing file naming protocols midstream is another thing that needs to be rectified, this happened after a crash and recovery.

All I was concerned about at the time was getting it all to compile, again.

If there is some thing in the executable you were interested in, ask, and I'll point you to the page with the relevant code in it.

Kevin.

P.S. the executable in the download has a visible Phoenix button at the lower right, not yet fully functional, but will be invisible once auto spacecraft ID is implemented using the filenames.

P.P.S. any comments or non functional code that is ignored by the compiler begins with a double forward slash //

Here is a list of the units used by Form 1, the main page.

StereoUnit20072, TimeVariablesUnit20073, WebLinksUnit20074, VK3UKFCalendarUnit20075,
TraverseMapsUnit20076, FullSizeUnit20077, DataDecodeUnit200710,
StereoManualSelectUnit200711, MoreInfoUnit200712, MSTspUnit200713, OtherTravUnit20078,
SpiritTravUnit20079, ClosingCreditsUnit200715, SldShwDlyUnit200716, FullSizeImageUnit200717,
HelpUnit200718, ColourUnit200719, ColourAltUnit200720, SunsetUnit200721, WorkPadUnit200722,
SOLsearchUnit200723, BirthdaySearchUnit200714, RegistrationUnit200729, TestingUnit200730,
MsgUnit200731, MarsLnksUnit200724, UnitREG200732, MarsWebLnxUnit200734,
SolrSysLnxUnit200735, MeteoritesLnxUnit200736, HAMLnxUnit200737,
ParticipateUnit200738, AVIUnit200740, Mag2007Unit42, ClipboardSeeUnit43,
Watermark2007Unit44, KlingonLnxUnit200739, GIFImage, GraphicsConversionsLibrary,
MagnifierB200746, EmailUnit48, NoMoreImagesMsgUnit49, NoPixUnit50,
AVIresForm2007Unit45, ErrorLogUnit51;
Go to the top of the page
 
+Quote Post
Tman
post Aug 20 2008, 10:08 PM
Post #32


Member
***

Group: Members
Posts: 877
Joined: 7-March 05
From: Switzerland
Member No.: 186



"At last" added the solar elevation and azimuth (north=0°) for the current sol time and the decoded file name code.





--------------------
Go to the top of the page
 
+Quote Post
Tman
post Sep 6 2008, 03:13 PM
Post #33


Member
***

Group: Members
Posts: 877
Joined: 7-March 05
From: Switzerland
Member No.: 186



smile.gif Call me crazy, but it looks like I've made it to calculate equal LTST outputs from the filename code in comparison to the official (from sol 1420 up so far - probably for good). The clocks seem to be failing about a second per sol now - Oppy less than Spirit. But it would be great to get at any one time a tip when they have to do another larger leap.


--------------------
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3
Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 26th October 2024 - 12:17 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member.