Closed tammasloughran closed 9 years ago
So I put in a somewhat adhoc fix that should allow you to have timestamps of any particular flavour. Or most any. I've uploaded a new climpact2_0.2.r file with it. To get the functionality to work you need to specify the "time_format" parameter when calling climpact.loader.
e.g. for your AWAP data it would be: time_format = "%Y%m%d" Other combinations can be chosen as per strptime http://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.html
If you don't specify time_format you'll get the same error about ambiguity as before.
The git clone command wouldn't work for me. Instead, I used: git clone https://github.com/heroldn/climpact2.git
I have run the test script Nick provided and it works with the narclim data. Values look reasonable for TXX.
I tried to use some AWAP data with the following testing template.
I get an error:
It looks like the time formatting is incorrect in my file. They are dates as YYYYMMDD (eg. 20000101, 20000102, etc...) and not a 'days since...' format. So, my files have non-standard timestamps. Do you want to support timestamps?