This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: "Raul Cumba" <address@hidden> >Organization: ITC >Keywords: 200508261124.j7QBOsjo011431 IDV extract image time Hi Raul- I apologize for the delay in responding. I thought I had a quick answer, but I had to relearn some Jython first. >I hope you are doing well.=20 >Don, is it possible to acess in Jyhton librarie, the acquisition data >and time of meteosat image trough file name or objects. >If yes, please, could you explain how to do. If you try the following Jython procedure, it will return a visad.DateTime object that contains the starting date/time of the image: def getImageTime(imagesequence, i): from visad.meteorology import * dateTime = None if isinstance(imagesequence, ImageSequence): sbi = imagesequence.getImage(int(i)) dateTime = sbi.getStartTime() elif isinstance(imagesequence, SingleBandedImage): dateTime = sbi.getStartTime() return dateTime If you want to use this interactively, you could create an IDV formula to call this which would look like: getImageTime(imagesequence, user_Step) This will prompt the user to enter the time step for the image they want. Don Murray NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.