My Assistant
![]() ![]() |
Decoding MER image filenames, playing around with javascript |
Jul 27 2007, 01:20 PM
Post
#16
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 257 Joined: 18-December 04 Member No.: 123 |
a part of code which I had already written for me Uh oh...... Source Error: CODE Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
Line 2: Line 3: <%@ Register Assembly="DevExpress.Web.ASPxDataControls.v6.1, Version=6.1.4.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4" Line 4: Namespace="DevExpress.Web.ASPxDataControls" TagPrefix="dxwdc" %> Line 5: -------------------- Turn the middle side topwise....TOPWISE!!
|
|
|
|
Jul 27 2007, 01:47 PM
Post
#17
|
|
![]() Member ![]() ![]() ![]() Group: Members Posts: 239 Joined: 20-April 05 From: Bruxelles, Belgium Member No.: 278 |
Error fixed
-------------------- |
|
|
|
Jul 27 2007, 03:03 PM
Post
#18
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Nice Indian!
I feel happy about our agreement on the local solar time Regarding writing in javascript the acquisition time and date on Earth in UTC. I'm on the way too. It works (of course) too with the (milli)seconds since 1. Januar 1970, 0:00 Uhr UTC. -------------------- |
|
|
|
Jul 28 2007, 07:19 AM
Post
#19
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Here my complete version with LST on Mars and UTC time and date on Earth.
http://www.greuti.ch/oppy/html/filenames.htm First I was confused about differences between our versions during daylight saving time / summertime, but in the meantime I'm rather sure my version shows simply the acquisition time on Earth in UTC time, independent from the individual clock change on the computers. As far as I know my script works only with the UTC seconds since 01.01.1970. -------------------- |
|
|
|
Jul 28 2007, 03:50 PM
Post
#20
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Admin Posts: 4763 Joined: 15-March 05 From: Glendale, AZ Member No.: 197 |
It's been a while since anyone handed out a Mars Bar here. But I think you deserve one for this, Tman
-------------------- If Occam had heard my theory, things would be very different now.
|
|
|
|
Jul 29 2007, 07:11 AM
Post
#21
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Wow, thanks Dan!
-------------------- |
|
|
|
Aug 5 2007, 01:24 PM
Post
#22
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
QUOTE ...I found the point in my script where the difference is caused. ...And finally the solution. Now the script should it calculate correctly too. http://www.greuti.ch/oppy/html/filenames.htm -------------------- |
|
|
|
Aug 5 2007, 08:45 PM
Post
#23
|
|
![]() Member ![]() ![]() ![]() Group: Members Posts: 221 Joined: 25-March 05 Member No.: 217 |
Thank you Tman that is so helpful every time I needed that info in the past (which was quite often) I used a pencil and paper. Even then I settled for "near enough" on the time and date.
Roy F |
|
|
|
Aug 8 2007, 10:53 AM
Post
#24
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Wish I had the skill to implement these caculations in my script too
http://www.giss.nasa.gov/tools/mars24/help/algorithm.html Local true solar time (LTST) for both locations and any mission seconds when the images were taken would be really cool! However, our "local solar times" are no more than for fun, (among other things) because of http://www.giss.nasa.gov/research/briefs/allison_02/. -------------------- |
|
|
|
Aug 13 2007, 01:27 PM
Post
#25
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Here my first local "true" solar timing version (hope it's error free):
http://www.greuti.ch/oppy/html/filenames_ltst.htm Thanks to a Perl script sample from helvick (he translated those calculations already into Perl), I could get over some difficulties by translation it into Javascript. Though it may still lack a step or two for more accuracy, it comes already rather "close" to the Local-True-Solar-Times in MER Analyst's Notebook - especially by Oppy, and to the Mars24 Sunclock itself (here currently within 1-2 minutes). Additionally I implemented the Rovers' current times, and the longitudes (which are adjustable). -------------------- |
|
|
|
Aug 15 2007, 09:55 PM
Post
#26
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
After adding the "leap seconds" from Jan. 1, 2006 (pos. A-4), the two clocks for the current LTST now run simultaneous to the Mars24 Sunclock LTST.
-------------------- |
|
|
|
Jun 26 2008, 10:03 AM
Post
#27
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Don't know if it's in use occasionally by others at all, but I've noticed currently a few error requests for "greuti.ch/oppy/html/filenames.htm". I removed this version since the local true solar time version is more accurate - this week I added yet a listing for the decoded filenames http://www.greuti.ch/oppy/html/filenames_ltst.htm
-------------------- |
|
|
|
Jul 6 2008, 12:38 PM
Post
#28
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Does someone feel like helping me on following problem?
I've tried to extend the filename decoding like this http://www.greuti.ch/oppy/html/rawimages_a...ames_decode.htm I've in mind to enable looking at any images by selected date and parameters. Currently it doesn't work that way - only with given dates and (four) images, and thus given the other parameters yet) - because of the impossibility to readout directly in JavaScript the Exploratorium sites source codes such as http://qt.exploratorium.edu/mars/opportuni...cam/2008-06-22/ Also I'm not able to get it via a PHP code because my Hosting-Provider has disabled for security reasons the functions like this http://de3.php.net/manual/de/function.file-get-contents.php to read out external source codes (probably as the most providers too). And currently other languages aren't available to me (neither physically nor intellectually). Now my (slight/pious hope) query is, if it's possible at all: Has someone already written (or would feel like programming) such a readout code in a capable language and would she/he lend it and give (a little) help to implement it along with my JS code? The aim would be to start this readout code along with the selected Exploratorium site/parameters and read out finally the strings like "1N267294587EFF90B0P1980L0M1.JPG" into an array within the JS code. -------------------- |
|
|
|
Jul 14 2008, 10:52 AM
Post
#29
|
|
|
Junior Member ![]() ![]() Group: Members Posts: 47 Joined: 27-December 07 Member No.: 3991 |
Does someone feel like helping me on following problem? Hi Tman, if there is anything in the source code for MERDAT, you are welcome to it my friend. I am placing it online at the request of several MS members. It was written using Borland Delphi 7, coding is a pascal variant. I am familiar with basic, procol, forth and pascal, not much else I am afraid. To see the actual code as text, rename the *.pas files as *.txt and wander around. Hoping there is something in there you can sink your teeth into. It is a 9.34 MB download. http://www.vk3ukf.com/vk3ukf_files/MERsrc/...odeJuly2008.zip It is about 95% complete, I still need to go around and mark some things that need a tidy up, and just started to put Phoenix thought into it, back to 90% complete. Is any software ever finished? Any code comments that give the impression of banging ones head on the keyboard due to lack of knowledge, are in fact, exactly that. MERDAT is now officially in the public domain. All the best, Kevin. |
|
|
|
Jul 14 2008, 12:39 PM
Post
#30
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
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 Anyway Thanks! -------------------- |
|
|
|
![]() ![]() |
|
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 |
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. |
|