This function reads data into the data buffer from the subsetted region. Only complete crosstracks are extracted. If the external_mode flag is set to (1) then the geolocation fields and the data field can be in different swaths. If set to (0), then these fields must be in the same swath structure.
Result = EOS_SW_EXTRACTREGION(swathID, regionID, fieldname, external_mode, buffer)
Returns SUCCEED (0) if successful and FAIL (-1) otherwise.
Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.
Region id (long) returned by EOS_SW_DEFBOXREGION.
Field to subset (string).
External geolocation mode (long).
A named variable that will contain the data buffer.
In this example, we read data within the subsetted region defined in EOS_SW_DEFBOXREGION from the Spectra field. Both the geolocation fields and the Spectra data field are in the same swath.
status = EOS_SW_EXTRACTREGION(EOS_SW_id, regionID, 0, "Spectra",$ datbuf)