CbiomesProcessing.jl documentation

CbiomesProcessing.jl provides a simple, distributed workflow to e.g. post-process binary model output. Inter-operability with MeshArrays.jl and NCTiles.jl is an important prospect of this package.

Contents

Main Features

Currently the reference implementation consists of

API / Functions further documents the CbiomesProcessing module functions that are included in:

  • examples.jl includes simple examples without TaskDriver.
  • fileloops.jl includes task loops such as CbiomesProcessing.loop_task1()](@ref). A real-life example is provided in the TaskDriver documentation reported below.
  • utilities.jl provides low-level functions such as TaskDriver.
  • src/CMAP2019/ contains a workflow that was used to process model output for ingestion in CMAP

Index

API / Functions

CbiomesProcessing.TaskDriverMethod
TaskDriver(indx,fn)

Broacast / distribute task (fn; e.g. loop_task1) over indices (indx; e.g. file indices)

Examples:

using CbiomesProcessing, Distributed, SparseArrays
TaskDriver(1,CbiomesProcessing.loop_task1)

StartWorkers(4)
@everywhere using CbiomesProcessing, SparseArrays
TaskDriver(1:4,CbiomesProcessing.loop_task1)

Visualize results:

using FortranFiles, Plots
k=1
recl=720*360*4
fil="diags_interp/ETAN/ETAN.0000000732.data"
f =  FortranFile(fil,"r",access="direct",recl=recl,convert="big-endian")
tmp=read(f,rec=k,(Float32,(720,360))); close(f)
heatmap(tmp)
source
CbiomesProcessing.loop_task1Method
loop_task1(indx,M)

Loop over a subset of model output files (filList[indx]), apply MatrixInterp (M) as a postprocessing step, and write the result to file (one subfolder for each variable)

source
CbiomesProcessing.loop_task2Method
loop_task2(indx)

Loop over a subset of model output files (filList[indx]), convert Rirr* to Satellite Chl as a postprocessing step, and write the result to file (one subfolder for each variable)

source
CbiomesProcessing.loop_task3Method
loop_task3(indx)

Loop over a subset of model output files (filList[indx]), compute export as a postprocessing step, and write the result to file (one subfolder for each variable)

source
CbiomesProcessing.loop_task4Method
loop_task4(indx)

Loop over model output files and time average them as a postprocessing step, and write the result to file (one subfolder for each variable)

source

/