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

# EOS_GD_BLKSOMOFFSET

This function writes block SOM offset values. This is a special function for SOM MISR data.

## Syntax

Result = EOS_GD_BLKSOMOFFSET(gridID, offset, code)

## Return Value

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

## Arguments

### gridID

The grid ID (long) as returned from EOS_GD_ATTACH.

### offset

A scalar or array of offset values. The offset must be initialized to the correct data type and number of elements for the values to be written correctly.

### code

The type of action performed (read (r), write (w)). This value must be set to either the string r or w. If the string value is not recognized, the code defaults to r.

## Keywords

None

## Version History

5.3 | Introduced