visad/src/main/java/ucar/nc2/iosp/mcidas/AreaReader.java
private String getADDescription(int index) {

    String desc = "dir(" + index + ")";
    switch (index) {

      case AreaFile.AD_STATUS:
        desc = "relative position of the image object in the ADDE dataset";
        break;

      case AreaFile.AD_VERSION:
        desc = "AREA version";
        break;

      case AreaFile.AD_SENSORID:
        desc = "SSEC sensor source number";
        break;

      case AreaFile.AD_IMGDATE:
        desc = "nominal year and Julian day of the image (yyyddd)";
        break;

      case AreaFile.AD_IMGTIME:
        desc = "nominal time of the image (hhmmss)";
        break;

      case AreaFile.AD_STLINE:
        desc = "upper-left image line coordinate";
        break;

      case AreaFile.AD_STELEM:
        desc = "upper-left image element coordinate";
        break;

      case AreaFile.AD_NUMLINES:
        desc = "number of lines in the image";
        break;

      case AreaFile.AD_NUMELEMS:
        desc = "number of data points per line";
        break;

      case AreaFile.AD_DATAWIDTH:
        desc = "number of bytes per data point";
        break;

      case AreaFile.AD_LINERES:
        desc = "line resolution";
        break;

      case AreaFile.AD_ELEMRES:
        desc = "element resolution";
        break;

      case AreaFile.AD_NUMBANDS:
        desc = "number of spectral bands";
        break;

      case AreaFile.AD_PFXSIZE:
        desc = "length of the line prefix";
        break;

      case AreaFile.AD_PROJNUM:
        desc = "SSEC project number used when creating the file";
        break;

      case AreaFile.AD_CRDATE:
        desc = "year and Julian day the image file was created (yyyddd)";
        break;

      case AreaFile.AD_CRTIME:
        desc = "image file creation time (hhmmss)";
        break;

      case AreaFile.AD_BANDMAP:
        desc = "spectral band map: bands 1-32";
        break;

      case AreaFile.AD_DATAOFFSET:
        desc = "byte offset to the start of the data block";
        break;

      case AreaFile.AD_NAVOFFSET:
        desc = "byte offset to the start of the navigation block";
        break;

      case AreaFile.AD_VALCODE:
        desc = "validity code";
        break;

      case AreaFile.AD_STARTDATE:
        desc = "actual image start year and Julian day (yyyddd)";
        break;

      case AreaFile.AD_STARTTIME:
        desc = "actual image start time (hhmmss) in milliseconds for POES data";
        break;

      case AreaFile.AD_STARTSCAN:
        desc = "actual image start scan";
        break;

      case AreaFile.AD_DOCLENGTH:
        desc = "length of the prefix documentation";
        break;

      case AreaFile.AD_CALLENGTH:
        desc = "length of the prefix calibration";
        break;

      case AreaFile.AD_LEVLENGTH:
        desc = "length of the prefix band list";
        break;

      case AreaFile.AD_SRCTYPE:
        desc = "source type";
        break;

      case AreaFile.AD_CALTYPE:
        desc = "calibration type";
        break;

      case AreaFile.AD_SRCTYPEORIG:
        desc = "original source type";
        break;

      case AreaFile.AD_CALTYPEUNIT:
        desc = "calibration unit";
        break;

      case AreaFile.AD_CALTYPESCALE:
        desc = "calibration scaling";
        break;

      case AreaFile.AD_AUXOFFSET:
        desc = "byte offset to the supplemental block";
        break;

      case AreaFile.AD_CALOFFSET:
        desc = "byte offset to the calibration block";
        break;

      case AreaFile.AD_NUMCOMMENTS:
        desc = "number of comment cards";
        break;

    }
    desc = desc.replaceAll("\\s", "_");
    return desc;

  }
private String getADDescription(int index) {

    String desc = "dir(" + index + ")";
    switch (index) {

      case AreaFile.AD_STATUS:
        desc = "relative position of the image object in the ADDE dataset";
        break;

      case AreaFile.AD_VERSION:
        desc = "AREA version";
        break;

      case AreaFile.AD_SENSORID:
        desc = "SSEC sensor source number";
        break;

      case AreaFile.AD_IMGDATE:
        desc = "nominal year and Julian day of the image (yyyddd)";
        break;

      case AreaFile.AD_IMGTIME:
        desc = "nominal time of the image (hhmmss)";
        break;

      case AreaFile.AD_STLINE:
        desc = "upper-left image line coordinate";
        break;

      case AreaFile.AD_STELEM:
        desc = "upper-left image element coordinate";
        break;

      case AreaFile.AD_NUMLINES:
        desc = "number of lines in the image";
        break;

      case AreaFile.AD_NUMELEMS:
        desc = "number of data points per line";
        break;

      case AreaFile.AD_DATAWIDTH:
        desc = "number of bytes per data point";
        break;

      case AreaFile.AD_LINERES:
        desc = "line resolution";
        break;

      case AreaFile.AD_ELEMRES:
        desc = "element resolution";
        break;

      case AreaFile.AD_NUMBANDS:
        desc = "number of spectral bands";
        break;

      case AreaFile.AD_PFXSIZE:
        desc = "length of the line prefix";
        break;

      case AreaFile.AD_PROJNUM:
        desc = "SSEC project number used when creating the file";
        break;

      case AreaFile.AD_CRDATE:
        desc = "year and Julian day the image file was created (yyyddd)";
        break;

      case AreaFile.AD_CRTIME:
        desc = "image file creation time (hhmmss)";
        break;

      case AreaFile.AD_BANDMAP:
        desc = "spectral band map: bands 1-32";
        break;

      case AreaFile.AD_DATAOFFSET:
        desc = "byte offset to the start of the data block";
        break;

      case AreaFile.AD_NAVOFFSET:
        desc = "byte offset to the start of the navigation block";
        break;

      case AreaFile.AD_VALCODE:
        desc = "validity code";
        break;

      case AreaFile.AD_STARTDATE:
        desc = "actual image start year and Julian day (yyyddd)";
        break;

      case AreaFile.AD_STARTTIME:
        desc = "actual image start time (hhmmss) in milliseconds for POES data";
        break;

      case AreaFile.AD_STARTSCAN:
        desc = "actual image start scan";
        break;

      case AreaFile.AD_DOCLENGTH:
        desc = "length of the prefix documentation";
        break;

      case AreaFile.AD_CALLENGTH:
        desc = "length of the prefix calibration";
        break;

      case AreaFile.AD_LEVLENGTH:
        desc = "length of the prefix band list";
        break;

      case AreaFile.AD_SRCTYPE:
        desc = "source type";
        break;

      case AreaFile.AD_CALTYPE:
        desc = "calibration type";
        break;

      case AreaFile.AD_SRCTYPEORIG:
        desc = "original source type";
        break;

      case AreaFile.AD_CALTYPEUNIT:
        desc = "calibration unit";
        break;

      case AreaFile.AD_CALTYPESCALE:
        desc = "calibration scaling";
        break;

      case AreaFile.AD_AUXOFFSET:
        desc = "byte offset to the supplemental block";
        break;

      case AreaFile.AD_CALOFFSET:
        desc = "byte offset to the calibration block";
        break;

      case AreaFile.AD_NUMCOMMENTS:
        desc = "number of comment cards";
        break;

    }
    desc = desc.replaceAll("\\s", "_");
    return desc;

  }
Get a description for a particular Area Directory entry

@param index the index
@return a description