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

Home » Public Forums » archive » caldat strange behavior CALDAT, JulianDay, NULL, NULL, GetYear
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
caldat strange behavior CALDAT, JulianDay, NULL, NULL, GetYear [message #84011] Wed, 24 April 2013 13:31
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
IDL> print,qqtjd,format='(C())'
;Mon Sep 24 21:00:00 2012
IDL> qq=temporary(null) & qq=0; undefine NULL
IDL> caldat,qqtjd,null,null,tyyyy;get year from TJD
IDL> print,percentiles(tyyyy)
; 2014 2014 2014 2014 2014
IDL> print,percentiles(null)
; 1 1 1 1 1
IDL> caldat,qqtjd,mnull,dnull,tyyyy;get year from TJD
IDL> print,percentiles(tyyyy)
; 2012 2012 2012 2012 2012
IDL> print,percentiles(mnull)
; 9 9 9 9 9
IDL> print,percentiles(dnull)
; 24 24 24 24 24

Basically, if you give the argument NULL to both the Month and Day in CALDAT, things go very wrong. I am pretty confident this is new behavior.

IDL> print,!version
;{ x86_64 linux unix linux 8.2.1 Aug 20 2012 64 64}

--Edward H.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL issues: poly_fit.pro.
Next Topic: Re: caldat strange behavior CALDAT, JulianDay, NULL, NULL, GetYear

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

Current Time: Wed Oct 08 15:48:11 PDT 2025

Total time taken to generate the page: 0.00462 seconds