API
Index
NCTiles.BinDataNCTiles.BinDataNCTiles.NCDataNCTiles.NCTNCTiles.NCvarNCTiles.TileDataNCTiles.TileDataBase.writeBase.writeNCTiles.addDataNCTiles.addDimNCTiles.addDimNCTiles.addDimDataNCTiles.addVarNCTiles.addVarNCTiles.addVarNCTiles.createfileNCTiles.readbinNCTiles.readbinNCTiles.readncfile
Docstrings
NCTiles.BinData — TypeBinDataData structure containing a string or an array of strings (NetCDF file names) as well as metadata needed to read a file.
struct BinData
fnames::Union{Array{String},String}
precision::Type
iosize::Tuple
fldidx::Int
endNCTiles.BinData — MethodBinData(fnames::Union{Array{String},String},precision::Type,iosize::Tuple)Construct a BinData struct for files that contain one field.
NCTiles.NCData — TypeNCDataData structure containing a string or an array of strings (file names) of NetCDF files as well as information needed to read a file.
struct NCData
fname::AbstractString
varname::AbstractString
backend::Module
precision::Type
endNCTiles.NCT — TypeNCTData structure containing information needed to write a NetCDF file.
NCTiles.NCvar — TypeNCvarData structure containing information needed to write a variable to NetCDF files.
Instead of loading the data into memory, one can provide a list of input file names (see Bindata).
Attributes (atts) : 1. string attributes will be writen to netcdf files; 2. a function attribute called "readdata"NCTiles.readata will be used instead of the NCTiles.readata default.
struct NCvar
name::String
units::String
dims
values
atts::Union{Dict,Nothing}
backend::Module
endNCTiles.TileData — TypeTileData{T}Data structure containing either a MeshArray struct or BinData struct (see vals), MeshArray structs describing the tile layout (tileinfo), and other information for reading/writing tile data.
struct TileData{T}
vals::T
tileinfo::Dict
tilesize::Tuple
precision::Type
numtiles::Int
endNCTiles.TileData — MethodTileData(vals,tilesize::Tuple)Construct a TileData struct. First generate the tileinfo, precision, and numtiles attributes.
Base.write — Methodwrite(myflds::Dict,savename::String;README="",globalattribs=Dict())Creates NetCDF file and writes myflds and all their dimensions to the file.
Base.write — Methodwrite(myfld::NCvar,savename::String;README="",globalattribs=Dict())Creates NetCDF file and writes myfld and all its dimensions to the file.
NCTiles.addData — MethodaddData(v::Union{NCDatasets.CFVariable,NetCDF.NcVar},var::NCvar)Fill variable with data in netcdf file using either NCDatasets.jl or NetCDF.jl
NCTiles.addDim — MethodaddDim(ds::NCDatasets.Dataset,dimvar::NCvar) # NCDatasetsAdd a dimension to a NCDatasets.Dataset
NCTiles.addDim — MethodaddDim(dimvar::NCvar)Add a dimension to a NetCDF file using NetCDF.jl
NCTiles.addDimData — MethodaddDimData(v::Union{NCDatasets.CFVariable,NetCDF.NcVar,Array},var::NCvar)Add dimension data to predefined dimensions in a NetCDF file.
NCTiles.addVar — MethodaddVar(ds::NCDatasets.Dataset,field::NCvar)Add a variable to a NetCDF file using NCDatasets.jl
NCTiles.addVar — MethodaddVar(field::NCvar,dimlist::Array{NetCDF.NcDim})Add a variable with dimensions dimlist to a NetCDF file using NetCDF.jl
NCTiles.addVar — MethodaddVar(field::NCvar})Add a variable and its dimensions to a NetCDF file using NetCDF.jl
NCTiles.createfile — Functioncreatefile(filename, field::Union{NCvar,Dict{String,NCvar}}, README;
fillval=NaN, missval=NaN, itile=1, ntile=1)Create NetCDF file and add variable + dimension definitions using either NCDatasets.jl or NetCDF.jl
NCTiles.readbin — Functionreadbin(fname::String,prec::Type,iosize::Tuple,fldidx=1)Read in a binary file to an Array.
NCTiles.readbin — Functionreadbin(flddata::BinData,tidx=1)Read in a binary file as an array as specified by BinData
NCTiles.readncfile — Functionreadncfile(fname,backend::Module=NCDatasets)Read in a NetCDF file and return variables/dimensions as NCvar structs, and file attributes as Dict. Large variables/dimensions are not loaded into memory. This can use either NCDatasets.jl or NetCDF.jl