#ifndef READWEIGHTS_H
#define READWEIGHTS_H

#include "typenames.h"

typedef struct{
  unsigned char NumStats;
  unsigned char *StationNum;
} WEIGHT_INFO;

typedef struct{
  char Path[BUFSIZE+1];		/* Variable Name */
  unshort *WeightVector;

} WEIGHT_FILES;

void InitReadWeights(LISTPTR Input, int NX, int NY, unsigned char **BasinMask, 
                     unshort ****WeightArray, WEIGHT_INFO ***WeightInfo, 
                     WEIGHT_FILES *WeightFiles, int NStats);

void ReadWeights(int NX, int NY, unsigned char **BasinMask, unshort ****WeightArray, 
                 WEIGHT_INFO **WeightInfo, int Month, char *Path);

void TempFullWeightArray( WEIGHT_FILES *WeightFiles, WEIGHT_INFO WeightInfo, 
                          unshort *CompressedArray, int NStats ); 



#endif
