Having trouble importing time series temperature data
Posted: Mon Apr 07, 2008 1:47 am
Hi,
First let me say I'm overall satisfied with the program, it has been very useful to me in climate science research.
Second, I'm running into a snag due to the way Dplot handles import. I don't think it is a bug, but simply something not envisioned.
The data I use is historical monthly temperature records, which are in the format:
YYYY.mm temp temp temp
Where YYYY.mm would look like this:
1950.1
1950.2
1950.3
...
1950.12
1951.1
1951.2
...
etc
or this:
1950 1
1950 2
1950 3
...
1950 12
The problem is of course that Dplot can't handle using these values for the X axis. So I have to discard these and simply let Dplot handle the data as "months" by automatically figuring out the x axis from the data. This of course leaves me to plot years manually and to have to always set the tick interval on the x axis to 12 so that I can count years.
Unfortunately, I don't have control over the data format as it is provided by the National Weather Service and other agencies, and thus it presents a bit of a quandary as to what to do to handle this better. I run new plots 4-5 times a month, so any sort of solution would be welcome.
Here is sample data file for you to test with:
ftp://ftp.ssmi.com/msu/monthly_time_ser ... _v03_1.txt
First let me say I'm overall satisfied with the program, it has been very useful to me in climate science research.
Second, I'm running into a snag due to the way Dplot handles import. I don't think it is a bug, but simply something not envisioned.
The data I use is historical monthly temperature records, which are in the format:
YYYY.mm temp temp temp
Where YYYY.mm would look like this:
1950.1
1950.2
1950.3
...
1950.12
1951.1
1951.2
...
etc
or this:
1950 1
1950 2
1950 3
...
1950 12
The problem is of course that Dplot can't handle using these values for the X axis. So I have to discard these and simply let Dplot handle the data as "months" by automatically figuring out the x axis from the data. This of course leaves me to plot years manually and to have to always set the tick interval on the x axis to 12 so that I can count years.
Unfortunately, I don't have control over the data format as it is provided by the National Weather Service and other agencies, and thus it presents a bit of a quandary as to what to do to handle this better. I run new plots 4-5 times a month, so any sort of solution would be welcome.
Here is sample data file for you to test with:
ftp://ftp.ssmi.com/msu/monthly_time_ser ... _v03_1.txt