Viewing contents of file '../idllib/idl_5.2/lib/eos_exists.pro'
; $Id: eos_exists.pro,v 1.1.2.1 1999/04/23 20:47:28 slasica Exp $
;
; Copyright (c) 1992-1999, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
;
;+
; NAME:
; EOS_EXISTS
;
; PURPOSE:
; Test for the existence of the HDF EOS library
;
; CATEGORY:
; File Formats
;
; CALLING SEQUENCE:
; Result = EOS_EXISTS()
;
; INPUTS:
; None.
;
; KEYWORD PARAMETERS:
; None.
;
; OUTPUTS:
; Returns TRUE (1) if the HDF EOS data format library is
; supported. Returns FALSE(0) if it is not.
;
; EXAMPLE:
; IF eos_exists() EQ 0 THEN Fail,"HDF not supported on this machine"
;
; MODIFICATION HISTORY
; Written by: Scott Lasica, 10/30/98
;-
FUNCTION eos_exists
; HDF-EOS is not available in the IDL Student Edition.
;
; NOTE: The LMGR function is undocumented, considered private
; to RSI, and is subject to change or removal from IDL at any
; time without notice.
if (LMGR(/STUDENT) eq 1) then return, 0
catch, no_eos_lib
if (no_eos_lib ne 0) then begin
return, 0
endif
a = EOS_PT_OPEN('exist_test',/READ)
return, 1
END