<< prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ReadWrite/

ncdf_timeget.pro

get the time axis from a netcdf_file and transforms it in Julian days of IDL.

topncdf_timeget Reading

result = ncdf_timeget(cdfid, timeid, YYYYMMDD=YYYYMMDD, _EXTRA=_EXTRA)

Return value

a long array of IDL Julian days

Parameters

cdfid        in required

the ID of the ncdf_file, which is already open

timeid        in required

the ID or the name of the variable which describe the calendar

Keywords

YYYYMMDD       

active to obtain the date as a long integer with the format YearYearYearYearMonthMonthDayDay

_EXTRA       

the keyword parameters of ncdf_varget

Version history

Version

$Id: ncdf_timeget.pro 157 2006-08-21 09:01:50Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) June 2001

Known issues

Restrictions

the calendar variable must have the units attribute following the syntax bellow: time_counter:units = "seconds since 0001-01-01 00:00:00" ; time_counter:units = "hours since 0001-01-01 00:00:00" ; time_counter:units = "days since 1979-01-01 00:00:00" ; time_counter:units = "months since 1979-01-01 00:00:00" ; time_counter:units = "years since 1979-01-01 00:00:00" ;

Statistics

McCabe cyclic 13
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.