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

ReadWrite/

ncdf_timeget.pro

get the time axis fom a netcdf_file and transforms it in julian days of IDL. the keyword parameters of ncdf_varget

topncdf_timeget reading ncdf_file

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 longinterger with the format YearYearYearYearMonthMonthDayDay

_extra       

Version history

History

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

Known issues

Restrictions

the calendar variable must have the units attribute following the syntaxe 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" ;
Produced by IDLdoc 2.0.