>  Docs Center  >  Libraries  >  Markwardt  >  FXGFILTERED

FXGFILTERED

FXGFILTERED

Name


  FXGFILTERED

Author


  Craig B. Markwardt, NASA/GSFC Code 662, Greenbelt, MD 20770
  craigm@lheamail.gsfc.nasa.gov
  UPDATED VERSIONs can be found on my WEB PAGE:
      http://cow.physics.wisc.edu/~craigm/idl/idl.html

Purpose


  Determine if a unit has been opened by FXGOPEN.

Major Topics


  File I/O, Pipes, URLs, FITS

Calling Sequence


  Q = FXGFILTERED(UNIT)

Description



  FXGFILTERED is a function which determines whether a UNIT has been
  opened by FXGOPEN and requires special handling.
  In principle, only 'FXG' procedures should be used to access file
  units returned by FXGOPEN. However, if the unit turns out to be a
  normal file then special treatment is not required. User programs
  can use the FXGFILTERED function to find out this information.
  If FXGFILTERED returns 0, then normal file-access procedures (such
  as READU, WRITEU, CLOSE, and POINT_LUN) can be used. Otherwise,
  the 'FXG' routines must be used.

Inputs



  UNIT - Any file LUN.

Returns


  0 - resource is a normal file.
  1 - resource is not a normal file.

Example



  if fxgfiltered(unit) EQ 0 then begin
    ;; If zero then can use standard IDL routines
    point_lun, unit, position
    readu, unit, buffer
    close, unit
  endif

Modification History


  Written, 1999, CM
  Documented, 02 Oct 1999, CM
  Changed copyright notice, 21 Sep 2000, CM

Todo


  * Add more protocols
  * Make more windows friendly
  $Id: fxgfiltered.pro,v 1.3 2007/09/01 23:03:23 craigm Exp $



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us