Re: yyyymmdd_time

From: Hobbs, Will R (3244-Affiliate) <William.R.Hobbs_at_nyahnyahspammersnyahnyah>
Date: Thu Aug 23 2012 - 13:33:32 MDT

Debasish

How about this?:

> ttmp = yyyymmdd_time( ) ;yyyymmdd array that includes leap years

> mmdd = ttmp&1000 ;integer array showing mmdd
> ii = ind(mmdd.ne.0229) ;every date that ISN'T 29th Feb
> time = ttmp(ii) ;yyyymmdd array excluding all cases of 29th Feb.

Hope that helps

Will

**********************************************************
Will Hobbs, Ph.D. William.R.Hobbs@jpl.nasa.gov
Jet Propulsion Laboratory
4800 Oak Grove Dr. office: 300-324a
M/S 300-323 phone: (818) 354-0466
Pasadena, CA 91109 fax: (818) 354-0966
**********************************************************
 

On 8/23/12 12:21 PM, "debasish@sca.uqam.ca" <debasish@sca.uqam.ca> wrote:

>Hi NCL users,
>
>I am using the function "yyyymmdd_time" to create a one-dimensional array
>containing year-month-day [yyyymmdd] values. This function considers Leap
>year (29 day February). However in my problem, I do not want to consider
>leap year and like to assume all the year as 365 days (February = 28
>days).
>Is there any function can create a one-dimensional array containing
>year-month-day [yyyymmdd] values without leap year.
>
>Thanks
>Debasish
>_______________________________________________
>ncl-talk mailing list
>List instructions, subscriber options, unsubscribe:
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 23 13:33:45 2012

This archive was generated by hypermail 2.1.8 : Thu Aug 23 2012 - 16:16:15 MDT