NAME: ncdf_timeget
PURPOSE: get the time axis fom a netcdf_file and transforms it in
julian days of IDL.
CATEGORY: reading ncdf_file
CALLING SEQUENCE: time = ncdf_timeget(cdfid, timeid)
INPUTS:cdfid: the ID of the ncdf_file, which is already open
timeid: the ID or the name of the variable which describe the calendar
KEYWORD PARAMETERS:
/YYYYMMDD: active to obtain the date as a longinterger with
the format YearYearYearYearMonthMonthDayDay
the keyword parameters of ncdf_varget
OUTPUTS:a long array of IDL julian days
COMMON BLOCKS:
SIDE EFFECTS:
RESTRICTIONS: the calendar variable must have the units attribute
folowing 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" ;
EXAMPLE: