[an error occurred while processing this directive]

San Francisco Bay Area Regional Database (BARD)


Using New Header DOQs (keywords) in ARC/INFO and ARCVIEW

You can make use of several utilities for creating .hdr files 
      for  viewing DOQs in ARC/INFO or ARCVIEW.  
  • You can ftp an AML routine for ARC 7.X from our site. doqnewhdr.aml
  • You can ftp a menu driven Windows program(95 or NT). Doq2Arc2.exe But, You will need to ftp 3 other files: 1.tb510.dll 2.xnmba420.dll 3.xnmte420.dll Note: If your browser changes the .dll extension to .exe you must rename them for the program to work.
    Here's how to prepare a DOQ to be read into ArcView. The information you need for the .hdr file (steps 2 and 3 below) is contained in the header of the DOQ. You can view this information by opening the DOQ file in a word processor, like wordpad. You can also create the .hdr file by using one of the utilities I have included in the links above. The example used here uses the "Napa_swm.doq" DOQ. The header file contained in it is attached below for you to follow along. 1. Naming of the DOQ image file: - use .bil extension for single band gray scale images - use .bip extension for 3 band color images example: rename "napa_swm.doq" to "napa_swm.bil" 2. Create a text header file, it must be an ASCII text file: - use the same name as the .bil but with a .hdr extension example "napa_swm.hdr" - be sure the word processor doesn't add ".txt" at the end example "napa_swm.hdr.txt" won't work 3. Add lines to the .hdr text file that contain the following information: nrows #number of rows or lines in image ncols #number of columns or samples in image ulxmap #upper left corner x value of pixel 1,1 ulymap #upper left corner y value of pixel 1,1 skipbytes #Number of bytes to skip that make up the header xdim 1 #dimension of pixel in x direction ydim 1 #dimension of pixel in y direction nbands 1 #number of bands in image, nbands 3 for color images nrows and ncols are "must have" values. They are contained in "SAMPLES_AND_LINES" in the DOQ header (LINES = nrows and SAMPLES = ncols) ulxmap and ulymap are used to geo-reference the DOQ in UTM coordinates. They are contained in "XY_ORIGIN" in the DOQ header (the first value is X and the second value is Y) skipbytes is used to avoid display of the header information found at the top of each DOQ. This value is called "BYTE_COUNT" in the DOQ header. xdim and ydim refers to the dimension of the pixels, the default is 1 by 1. If you omit the xdim and ydim items you will see no change in your DOQ display. nbands is 1 if the image is a gray scale image. For a color image nbands is 3 and the extension on the name of the DOQ should be .bip So napa_swm.hdr looks like this: nrows 7601 ncols 6221 ulxmap 554240.000 ulymap 4241020.000 skipbytes 6221 xdim 1 ydim 1 nbands 1 The following is the header information from "napa_swm.doq" data file: BEGIN_USGS_DOQ_HEADER * QUADRANGLE_NAME "NAPA" * QUADRANT SW * WEST_LONGITUDE -122 22 30.0 * EAST_LONGITUDE -122 18 45.0 * NORTH_LATITUDE 38 18 45.0 * SOUTH_LATITUDE 38 15 0.0 * PRODUCTION_DATE 1997 9 15 * RASTER_ORDER LEFT_RIGHT/TOP_BOTTOM * BAND_ORGANIZATION "SINGLE FILE" * BAND_CONTENT BLACK&WHITE * BITS_PER_PIXEL 8 * SAMPLES_AND_LINES 6221 7601 * HORIZONTAL_DATUM NAD83 * HORIZONTAL_COORDINATE_SYSTEM UTM * COORDINATE_ZONE 10 * HORIZONTAL_UNITS METERS * HORIZONTAL_RESOLUTION 1.0 * SECONDARY_HORIZONTAL_DATUM NAD27 * XY_ORIGIN 554240.000 4241020.000 * SECONDARY_XY_ORIGIN 554336.454 4240823.773 * NATION US * STATE CA * NW_QUAD_CORNER_XY 554639.911 4240673.227 * NE_QUAD_CORNER_XY 560103.961 4240712.028 * SE_QUAD_CORNER_XY 560155.516 4233777.073 * SW_QUAD_CORNER_XY 554686.779 4233738.292 * SECONDARY_NW_QUAD_XY 554641.288 4240466.818 * SECONDARY_NE_QUAD_XY 560105.475 4240505.620 * SECONDARY_SE_QUAD_XY 560157.029 4233570.810 * SECONDARY_SW_QUAD_XY 554688.154 4233532.029 * RMSE_XY 0.987 * IMAGE_SOURCE "Black and White film" * SOURCE_IMAGE_ID "NAPP 6359-203" * SOURCE_IMAGE_DATE 1993 7 6 * SOURCE_DEM_DATE 1980 1 1 * AGENCY "WESTERN MAPPING CENTER (WMC)" * PRODUCER "Hammon, Jensen, Wallen & Associates" * PRODUCTION_SYSTEM "ORTHOVIEW" * STANDARD_VERSION 1996 12 * METADATA_DATE 1997 9 15 * DATA_FILE_SIZE 47292042 * BYTE_COUNT 6221 *

  • Access to our:

    1:24,000 digital map data base
    DEMs , DLGs , DRGs , DOQs
    1:100,000 scale
    Digital Map Data Base



    Go to Bay AREA REGIONAL DATABASE (BARD)  Home Page Back to BARD Home Page


    The URL of this page is: http://bard.wr.usgs.gov/htmldir/doq_html/doq-new-header.html
    Site coordinator is T. Mathiasmeier
    For comments and questions, contact the:
    Access USGS -- San Francisco Bay and Delta Team
    Privacy Statement || Disclaimer || Accessibility || FOIA