Copy a single record from the space weather data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(sw_data_type), | intent(in) | :: | me | |||
| integer(kind=ip), | intent(in) | :: | idx |
Index of the record to copy |
Output flux data structure
pure function copy_record(me, idx) result(flux_data) class(sw_data_type), intent(in) :: me integer(ip), intent(in) :: idx !! Index of the record to copy type(flux_data_type) :: flux_data !! Output flux data structure flux_data%mjd = me%mjd(idx) flux_data%f107_obs = me%f107_obs(idx) flux_data%f107_adj = me%f107_adj(idx) flux_data%f107a_obs_ctr = me%f107a_obs_ctr(idx) flux_data%f107a_adj_ctr = me%f107a_adj_ctr(idx) flux_data%kp = me%kp(:, idx) flux_data%ap_avg = me%ap_avg(idx) end function copy_record