半方差函数球状模型拟合IDL代码

IDL code:

; Define a procedure to return γ(h) and the partial derivatives according Equation(7)
pro Semi_Var,X,A,F,pder
F=A[0]+A[1](1.5(X/A[2])-0.5*(X/A[2])^3)
if n_params() ge 4 then begin
pder=fltarr(n_elements(X),3)
pder[,0]=1
pder[
,1]=(1.5*(X/A[2])-0.5*(X/(A[2]^3)
pder[,2]=1.5A[1]*(X3/(A[2]4)-(X/A[2])^2))
endif
end

; Compute the fit to the function
; Input the independent h and dependent variables r calculated according Equation (6)
; Define a vector of weights.
weights = 1.0/r

; Provide an initial guess of the function’s parameters.
A = [1.0, 5.0, 30.0]

; Compute the parameters.
yfit = CURVEFIT(h, r, weights, A, SIGMA, FUNCTION_NAME=‘Semi_Var’)

C0=A[0] & C=A[1] & a=A[2]

Fitting results:
Location: 29.8065N,121.7873E
Landsat Data: LT05_L1TP_20091021 (Red Band)
1.0 Km: C0=3.70000, C=8.44564, a=739.253
1.5 Km: C0=3.26735, C=5.64539, a=870.949
2.0 Km: C0=3.33918, C=4.27791, a= 985.988

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值