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
Tman
post Jul 24 2007, 09:57 PM
Post #1


Member
***

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



For two weeks I'm newly playing around with javascript. smile.gif

Though it's old hat and I have already something else to get the sols, I've written two scripts with a small HTML file for decoding the MER image filenames - just for fun.

If you like here the links of them:

Edited: http://www.greuti.ch/oppy/html/filenames_ltst.htm


--------------------
Go to the top of the page
 
+Quote Post
ElkGroveDan
post Jul 24 2007, 10:32 PM
Post #2


Senior Member
****

Group: Admin
Posts: 4763
Joined: 15-March 05
From: Glendale, AZ
Member No.: 197



Hey now that's really cool. Don't suppose you can put them both on the same page?


--------------------
If Occam had heard my theory, things would be very different now.
Go to the top of the page
 
+Quote Post
Tman
post Jul 25 2007, 10:00 AM
Post #3


Member
***

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



You're right, that's more comfortable.

For the script it makes only little difference (surprisingly).
So there was still time to improve it a little with more information options.

Edited: http://www.greuti.ch/oppy/html/filenames_ltst.htm


--------------------
Go to the top of the page
 
+Quote Post
Floyd
post Jul 25 2007, 10:56 AM
Post #4


Member
***

Group: Members
Posts: 940
Joined: 4-September 06
From: Boston
Member No.: 1102



That's great. For the Pancam maybe your script could decode the filter to a wavelength?


--------------------
Go to the top of the page
 
+Quote Post
Ant103
post Jul 25 2007, 11:01 AM
Post #5


Senior Member
****

Group: Members
Posts: 1621
Joined: 12-February 06
From: Bergerac - FR
Member No.: 678



... or better : into a hexadecimal color code? Is it possible huh.gif

Also, it's a very usefull tool that I bookmarked wink.gif


--------------------
Go to the top of the page
 
+Quote Post
Tman
post Jul 25 2007, 11:50 AM
Post #6


Member
***

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



QUOTE (Floyd @ Jul 25 2007, 12:56 PM) *
That's great. For the Pancam maybe your script could decode the filter to a wavelength?

Do you mean such as L2 = 753nm ? That information is already there. When you moving your mouse over "Camera Filter (Left or Right)" it should appear an additional window.


--------------------
Go to the top of the page
 
+Quote Post
djellison
post Jul 25 2007, 01:55 PM
Post #7


Founder
****

Group: Chairman
Posts: 14445
Joined: 8-February 04
Member No.: 1



QUOTE (Ant103 @ Jul 25 2007, 12:01 PM) *
... or better : into a hexadecimal color code? Is it possible huh.gif


Sort of :
http://www.ominous-valve.com/pancam.html

Doug
Go to the top of the page
 
+Quote Post
Ant103
post Jul 25 2007, 02:14 PM
Post #8


Senior Member
****

Group: Members
Posts: 1621
Joined: 12-February 06
From: Bergerac - FR
Member No.: 678



Okay, thanks Doug. wink.gif
I've also found this, if anybody knows it : http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm
There is a software who permit to convert a wavelength into a bitmap picture. Very interesting smile.gif (now, it's time to rebuilt new filter pictures and try with its).


--------------------
Go to the top of the page
 
+Quote Post
ElkGroveDan
post Jul 25 2007, 02:56 PM
Post #9


Senior Member
****

Group: Admin
Posts: 4763
Joined: 15-March 05
From: Glendale, AZ
Member No.: 197



QUOTE (djellison @ Jul 25 2007, 05:55 AM) *


Wish I had that before I met you guys. I could never place the actual location of those filter wavelengths in the spectrum without looking them up. Now I don't need to because folks here do the things with the color (or colour) images far more efficiently than I ever had the time to perfect.

Once you turn forty and acquire more patience, you learn that if you wait long enough an impatient person in their 20s will take up the difficult chores soon enough. biggrin.gif


--------------------
If Occam had heard my theory, things would be very different now.
Go to the top of the page
 
+Quote Post
djellison
post Jul 25 2007, 03:05 PM
Post #10


Founder
****

Group: Chairman
Posts: 14445
Joined: 8-February 04
Member No.: 1



That's OK - I turn 30 next year smile.gif

Doug
Go to the top of the page
 
+Quote Post
elakdawalla
post Jul 26 2007, 04:49 PM
Post #11


Administrator
****

Group: Admin
Posts: 5172
Joined: 4-August 05
From: Pasadena, CA, USA, Earth
Member No.: 454



Tman, this is really useful. Would it be possible for you to also include a conversion to the UTC date and time the image was taken? I am always having to convert between sol numbers and UTC dates and times.

--Emily


--------------------
My website - My Patreon - @elakdawalla on Twitter - Please support unmannedspaceflight.com by donating here.
Go to the top of the page
 
+Quote Post
fredk
post Jul 26 2007, 06:37 PM
Post #12


Senior Member
****

Group: Members
Posts: 4260
Joined: 17-January 05
Member No.: 152



This is very nice, Tman. I would add a request that the local solar time be included, as well. I'm often checking whether images on different sols were taken at similar local times. Some details on how this was done with the utility rawid are in this thread.

The rawid utility already gives all this information. But what caught my attention here is that this is coded in javascript. If I had javascript sol and local time code, I could easily write a bookmarklet to quickly get that info from a filename. And, far better still, I could easily write a Proxomitron filter to automatically add time of sol info to each thumbnail on the jpl mer thumbnail pages, and also to add sol and time columns to the exploratorium image pages. In fact, with your sol code I already have what I need to add sol columns to exploratorium. Do you mind if I use your javascript code for this, Tman? I'm drooling at the thought of this...
Go to the top of the page
 
+Quote Post
Tman
post Jul 26 2007, 06:45 PM
Post #13


Member
***

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



QUOTE (elakdawalla @ Jul 26 2007, 06:49 PM) *
Tman, this is really useful. Would it be possible for you to also include a conversion to the UTC date and time the image was taken?

At the moment I'm not in the know for such an extension. Currently I've tried to show the Local Solar Time too here , but my LST for all images/sols is 10 minutes behind the time in MMB for Spirit and 13 minutes for Oppy :-) don't know why. Additionally our both times are increasing different to the LST as shown in the first ~1000 Rover raw images on the MER site - up to more than one hour. So I'm currently rather in two minds about. I think/remember it was discussed about the mission times already here in the forum - but where?

The dates are not dependent on these differences, but I'm not in the know how to calculate it in the script for each sol in the past and future. The spacecraft clocks (seconds) started in January 1, 2000 at 11:58:55.816 UTC and Mars's days are 2375,244 seconds longer than Earth's.


--------------------
Go to the top of the page
 
+Quote Post
Tman
post Jul 26 2007, 07:05 PM
Post #14


Member
***

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



Fred, I don't mind. It's nice if it's already so useful.


--------------------
Go to the top of the page
 
+Quote Post
Indian3000
post Jul 27 2007, 12:27 PM
Post #15


Member
***

Group: Members
Posts: 239
Joined: 20-April 05
From: Bruxelles, Belgium
Member No.: 278



a part of code which I had already written for me smile.gif

it's little beta version smile.gif

http://www.marsrovercenter.com/filename_decoder.aspx


--------------------
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.