comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Convert MJD date range to number of days elapsed in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Convert MJD date range to number of days elapsed in IDL [message #93663 is a reply to message #93661] Mon, 26 September 2016 06:54 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 09/25/2016 09:53 PM, cdav1601@terpmail.umd.edu wrote:
> I'm trying to figure out if there's some way I can take a range of
> MJD values and convert them into number of days elapsed over that
> range so I can normalize a plot of two supernova and their absolute
> magnitudes over time in IDL. Is there a simple conversion for this
> I'm not seeing or do I need to tediously convert every value to
> determine the number of days to use for my x-axis?
>
> Note: I do not wish to convert to the date, but the actually number
> of days elapsed as to normalize my two plots for comparison.
jd=julday(month,day,year)
days_elapsed=jd-jd[0]

month, day & year are arrays
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Plotting a horizontal line over a cgImage
Next Topic: something faster than file_search ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:37:38 PDT 2025

Total time taken to generate the page: 0.00439 seconds