>  Docs Center  >  Libraries  >  ASTROLIB  >  CONCAT_DIR
Libraries

CONCAT_DIR

CONCAT_DIR

Name


      CONCAT_DIR()
             

Purpose


      To concatenate directory and file names for current OS.

Explanation


      The given file name is appended to the given directory name with the
      format appropriate to the current operating system.

Calling Sequence


      result = concat_dir( directory, file)

Inputs


      directory - the directory path (string)
      file - the basic file name and extension (string)
                                  can be an array of filenames.

Outputs


      The function returns the concatenated string. If the file input
      is a string array then the output will be a string array also.
             

Examples


      IDL> pixfile = concat_dir('$DIR_GIS_MODEL','pixels.dat')
      IDL> file = ['f1.dat','f2.dat','f3.dat']
      IDL> dir = '$DIR_NIS_CAL'
      IDL>

Restrictions


             
      The version of CONCAT_DIR available at
      http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/system/concat_dir.pro
      includes (mostly) additional VMS-specific keywords.

Category


        Utilities, Strings
             

Revision History


      Prev Hist. : Yohkoh routine by M. Morrison
      Written : CDS version by C D Pike, RAL, 19/3/93
      Version : Version 1 19/3/93
      Documentation modified Nov-94 W. Landsman
      Add V4.0 support for Windows W. Landsman Aug 95
      Converted to IDL V5.0 W. Landsman September 1997
      Changed loops to long integer W. Landsman December 1998
      Added Mac support, translate Windows environment variables,
      & treat case where dirname ends in '/' W. Landsman Feb. 2000
      Assume since V5.5, remove VMS support W. Landsman Sep. 2006



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us