JB2008 Calling Script

The script jb2k8.m is used to call the JB2008 model in MATLAB®.

Contents

Syntax

[outputyear,outputdoy,outputhr,outputmin,outputsec,outputht,outputlat,outputlon,outputsun1,outputsun2,outputtemp1,outputtemp2,outputdensity,outputD1950,outputF10,outputF10B,outputS10,outputS10B,outputXM10,outputXM10B,outputY10,outputY10B,outputDSTDTC] = jb2k8(years,doy,hour,min,sec,ht,lat,lon)

[~,~,~,~,~,~,~,~,~,~,~,~,outputdensity,~,~,~,~,~,~,~,~,~,~] = jb2k8(years,doy,hour,min,sec,ht,lat,lon)

Formatting

The script UpdateFile.m must be included to update input files automatically. Any files that are missing or out of date will be updated automatically.

MATLAB® 2014b is required to use this function.

FileSum = exist('SOLFSMY.TXT') + exist('SOLRESAP.TXT') + ...
exist('DSTFILE.TXT') +  exist('DTCFILE.TXT');
if  verLessThan('matlab', '8.4') == 1 & FileSum == 8
  disp(['MATLAB 2014b or later is required to automatically update files.'])
  disp(['Files may be out of date!'])
end

Inputs

Outputs

Time:

Location:

Other:

More About

Please find the latest version of the code at the JB2008 website.

See Also

atmosnrlmsise00