|
Scientific Data Formats: HDF-EOS |
|
This function copies the information stored in a current region or period to a new region or period and generates a new id. It is useful when the user wishes to further subset a region (period) in multiple ways.
Result = EOS_SW_DUPREGION(regionID)
Returns new region or period ID or FAIL (–1) on error.
Region or period id (long) returned by EOS_SW_DEFBOXREGION, EOS_SW_DEFTIMEPERIOD, or EOS_SW_DEFVRTREGION.
None
In this example, we first subset a swath with EOS_SW_DEFBOXREGION, duplicate the region creating a new region ID, regionID2, and then perform two different vertical subsets of these (identical) geographic subset regions:
regionID = EOS_SW_DEFBOXREGION(swathID, cornerlon, $ cornerlat, 0) regionID2 = EOS_SW_DUPREGION(regionID) regionID = EOS_SW_DEFVRTREGION(swathID, regionID, $ "Pressure", rangePres) regionID2 = EOS_SW_DEFVRTREGION(swathID, regionID2, $ "Temperature", rangeTemp)
IDL Online Help (March 06, 2007)