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

Home » Public Forums » archive » Re: merge data-array with calender-date-array
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: merge data-array with calender-date-array [message #61662 is a reply to message #61657] Thu, 24 July 2008 05:58 Go to previous messageGo to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Jul 24, 5:29 am, julia.waltersp...@gmail.com wrote:
> the newbie calls out for help again :)
>
> Problem:
> I have two arrays: one with my MODIS-data (float), the second with the
> "matching" calender dates of the data (string, like "01/Jan/2002").
> Say the first number of the "data-array" belongs to the first date of
> the "date-array".
> What's the easiest way to merge those two arrays so that I will be
> able to easily plot the data with the matching dates as x-axis.
>
> Goal/Purpose:
> Plotting a time series of the data with the matching date on the x-
> axis.
>
> probably a super-easy task, but I only come up with rather inelegant
> solutions and I'm sure there's a simple and elegant way to do this.
> Cheers,
> juls

[Chris I read the OP differently - that what is needed is to place the
string dates on the axis for the time series plot of the data]

Juls,

I think the TICKNAME graphic keyword for your PLOT command may help
you.
something like:
plot, data, xticks=xnum, xtickname=date
where xnum is the number of dates.

Bob.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: wind/WAVES reg.,
Next Topic: generating SST trend from HDF Pathfinder data v5 enquiry

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

Current Time: Sat Oct 11 01:08:40 PDT 2025

Total time taken to generate the page: 0.56005 seconds