M
mcl
I'm a climatologist and have asked many questions here before although not
for a few months. I'm trying to import climate data from different source
and their format is very different and it's causing a problem.
It's comma delimited (that's no problem) in this format:
Station ID, Element Code (ie, TMAX for max Temp, PCRP for precipitaion),
Unit (ie. F), Year, Month, Day01, Day02, Day03, etc.
In previous data sources DAY was an element with numbers 1-31. But here each
day is a separate element. That's the problem. Of course Days 29-31 can be
blank (-99999) which is not a problem).
The logic of trying to crunch this data when each day is a different element
has me stumped. For example, I tried to generate in a query with one extra
column where for each Year & Month where it would display the Max temp by
Year and Month and couldn't do it. In past cases where Day was one element
with number 1-31 I just pulled the Max of Tmax by Year, Month. In this case
I tried Max([Day01,Day02, etc) and it would do it. I am able to "Total" for
PRCP by using [Day01]+[Day02]+[etc] (doing that right now while also typing
this. But max([Day01],[Day02],etc) seemed to go nowhere although MS Access
help seemed to show it would BUT said could only handle up to 30 values (of
course I need 31).
for a few months. I'm trying to import climate data from different source
and their format is very different and it's causing a problem.
It's comma delimited (that's no problem) in this format:
Station ID, Element Code (ie, TMAX for max Temp, PCRP for precipitaion),
Unit (ie. F), Year, Month, Day01, Day02, Day03, etc.
In previous data sources DAY was an element with numbers 1-31. But here each
day is a separate element. That's the problem. Of course Days 29-31 can be
blank (-99999) which is not a problem).
The logic of trying to crunch this data when each day is a different element
has me stumped. For example, I tried to generate in a query with one extra
column where for each Year & Month where it would display the Max temp by
Year and Month and couldn't do it. In past cases where Day was one element
with number 1-31 I just pulled the Max of Tmax by Year, Month. In this case
I tried Max([Day01,Day02, etc) and it would do it. I am able to "Total" for
PRCP by using [Day01]+[Day02]+[etc] (doing that right now while also typing
this. But max([Day01],[Day02],etc) seemed to go nowhere although MS Access
help seemed to show it would BUT said could only handle up to 30 values (of
course I need 31).