Monday, May 5, 2014

代码-画图流程

我发现写代码可以分为以下几个过程:
(1)big idea: 严格意义上不算coding的过程,但其实是最重要的,如果在coding之前不想清楚,那就是为了coding而coding,做出来的东西一点价值都没有。
(2)detailed idea: 具体想实现什么。
先把已有数据列出示意图来,是map?是table?多少time step,spatial resolution多少,都罗列出来。
思考可以进行什么样的分析?
Map:
     A. magnitude: mean, median, mode, maximum, minimum, range
     B. variability (time series or inter datasets or inter models): var/std, cov, mad
     C. trend stat (slope, P) (kind of regression against ts)
     D. correlation/regression
Scatterplot:
     time series correlation VAR1 vs VAR2 at one point (regional averaged)
Timeseries plot:
     plot rawdata and linear trend
Histogram plot:
     A. how total effect attributed to different components
          e.g. physical controls; seasonal attribution; regional attribution.
     B. seasonal comparison

(3)搜索实现该分析画图的工具和想法
可以与其他过程独立出来,通过平时积累,网上搜索。

(4)写代码、调试
这才是真正的写代码的过程。

(5)完善调整修饰
这是最坑爹最考验人耐心的画图过程。

No comments:

Post a Comment