Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_SW_PERIODINFO

# EOS_SW_PERIODINFO

This function returns information about a subsetted time period for a particular field. Because of differences in number type and geolocation mapping, a given time period will give different values for the dimensions and size for various fields.

Note: Array ordering of variables used or returned by this routine changed in IDL 5.5. Programs written for versions of this routine prior to IDL 5.5 may need to be modified to work correctly with the current version.

## Examples

In this example, we retrieve information about the time period defined in EOS_SW_DEFTIMEPERIOD for the Spectra field:

; Get size in bytes of time period for "Spectra" field

status = EOS_SW_PERIODINFO(EOS_SW_id, periodID, $

"Spectra", ntype, rank, dims, size)

## Syntax

Result = EOS_SW_PERIODINFO(swathID, periodID, fieldname, ntype, rank, dims, size)

## Return Value

Returns SUCCEED (0) if successful and FAIL (–1) otherwise.

## Arguments

### swathID

Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.

### periodID

Period id (long) returned by EOS_SW_DEFTIMEPERIOD.

### fieldname

Field to subset (string).

### ntype

A named variable that will contain the number type of field (long).

### rank

A named variable that will contain the rank of field (long).

### dims

A named variable that will contain the dimensions of subset period (long).

### size

A named variable that will contain the size in bytes of subset period (long).

## Keywords

None

## Version History

5.2 | Introduced