diff --git a/dev/attributes/index.html b/dev/attributes/index.html index 9b1fac89..5ed60bc6 100644 --- a/dev/attributes/index.html +++ b/dev/attributes/index.html @@ -29,4 +29,4 @@ ))

Note that Dict does not perserve the order of the attributes. Therefore an OrderedDict from the package DataStructures is preferable.

Or one could use simply the fillvalue parameter of defVar.

ncv1 = defVar(ds,"v1", UInt8, ("longitude", "latitude", "time"), fillvalue = UInt8(255), attrib = [
     "add_offset"                => -1.0,
     "scale_factor"              => 5.0,
-])
+]) diff --git a/dev/dataset/index.html b/dev/dataset/index.html index 3ca637fc..a3e4de6e 100644 --- a/dev/dataset/index.html +++ b/dev/dataset/index.html @@ -99,4 +99,4 @@ for (groupname,group) in ds.groups # all groups @show (groupname,group) -end +end diff --git a/dev/dimensions/index.html b/dev/dimensions/index.html index af262fdb..e290dd8f 100644 --- a/dev/dimensions/index.html +++ b/dev/dimensions/index.html @@ -29,4 +29,4 @@ ds.dim["longitude"] = 100

If len is the special value Inf, then the dimension is considered as unlimited, i.e. it will grow as data is added to the NetCDF file.

source

One can iterate over a list of dimensions as follows:

for (dimname,dim) in ds.dim
     # all dimensions
     @show (dimname,dim)
-end
+end diff --git a/dev/experimental/index.html b/dev/experimental/index.html index 6c23c8df..a8015d23 100644 --- a/dev/experimental/index.html +++ b/dev/experimental/index.html @@ -143,4 +143,4 @@ @test v == v2 close(ds)
Note

For optimal performance, one should try to load contiguous data ranges, in particular when the data is loaded over HTTP/OPeNDAP.

source

Experimental functions

NCDatasets.ancillaryvariablesFunction
ncvar = NCDatasets.ancillaryvariables(ncv::NCDatasets.CFVariable,modifier)

Return the first ancillary variables from the NetCDF variable ncv with the standard name modifier modifier. It can be used for example to access related variable like status flags.

source
Base.filterFunction
data = NCDatasets.filter(ncv, indices...; accepted_status_flags = nothing)

Load and filter observations by replacing all variables without an acepted status flag to missing. It is used the attribute ancillary_variables to identify the status flag.

# da["data"] is 2D matrix
-good_data = NCDatasets.filter(ds["data"],:,:, accepted_status_flags = ["good_data","probably_good_data"])
source
+good_data = NCDatasets.filter(ds["data"],:,:, accepted_status_flags = ["good_data","probably_good_data"])source diff --git a/dev/index.html b/dev/index.html index ee488433..fc3fbb65 100644 --- a/dev/index.html +++ b/dev/index.html @@ -131,4 +131,4 @@ # if the attribute does not exists units = get(v,"units","adimensional") -close(ds) +close(ds) diff --git a/dev/issues/index.html b/dev/issues/index.html index 85c8e030..5e3df62d 100644 --- a/dev/issues/index.html +++ b/dev/issues/index.html @@ -36,4 +36,4 @@ @ stdin:1 during initialization of module NetCDF_jll

You will likely have similar issues with julia installed from other package managers (like Debian/Ubuntu apt, Homebrew...). The only supported solution is to install the offical julia builds.

version `CURL_4' not found

If you see the following error:

ERROR: LoadError: InitError: could not load library "/home/user/.julia/artifacts/461703969206dd426cc6b4d99f69f6ffab2a9779/lib/libnetcdf.so"
 /usr/lib/x86_64-linux-gnu/libcurl.so: version `CURL_4' not found (required by /home/user/.julia/artifacts/461703969206dd426cc6b4d99f69f6ffab2a9779/lib/libnetcdf.so)

make sure that you are using the offical julia builds (see above) and that your LD_LIBRARY_PATH and LD_PRELOAD are empty. You can verify this by running the following commands in a terminal:

echo $LD_PRELOAD
-echo $LD_LIBRARY_PATH

Corner cases

+echo $LD_LIBRARY_PATH

Corner cases

diff --git a/dev/performance/index.html b/dev/performance/index.html index ae7c440b..300db4c8 100644 --- a/dev/performance/index.html +++ b/dev/performance/index.html @@ -28,4 +28,4 @@ v = ds["v1"][:,1:3,:]; # fast v = ds["v1"][:,:,CartesianIndex(1)] # slow v = ds["v1"][:,:,1] # fast -close(ds) +close(ds) diff --git a/dev/search/index.html b/dev/search/index.html index 51a17057..6345557f 100644 --- a/dev/search/index.html +++ b/dev/search/index.html @@ -1,2 +1,2 @@ -Search · NCDatasets.jl

Loading search...

    +Search · NCDatasets.jl

    Loading search...

      diff --git a/dev/tutorials/index.html b/dev/tutorials/index.html index 0545cfc3..fbcd2da6 100644 --- a/dev/tutorials/index.html +++ b/dev/tutorials/index.html @@ -138,4 +138,4 @@ Dimensions: lon × lat Attributes: long_name = 4um Sea Surface Temperature -[...]

      The example requires NCDatasets 0.12.5 which allows one to read a NetCDF dataset directly from a vector of bytes in memory.

      To debug, it is useful to run the aws shell command to list all keys in the buckets (it requires the AWS_* environment variables to be set):

      aws s3 ls s3://podaac-ops-cumulus-protected/MODIS_TERRA_L3_SST_THERMAL_DAILY_4KM_NIGHTTIME_V2019.0/
      +[...]

      The example requires NCDatasets 0.12.5 which allows one to read a NetCDF dataset directly from a vector of bytes in memory.

      To debug, it is useful to run the aws shell command to list all keys in the buckets (it requires the AWS_* environment variables to be set):

      aws s3 ls s3://podaac-ops-cumulus-protected/MODIS_TERRA_L3_SST_THERMAL_DAILY_4KM_NIGHTTIME_V2019.0/
      diff --git a/dev/variables/index.html b/dev/variables/index.html index 0e532256..2c821a27 100644 --- a/dev/variables/index.html +++ b/dev/variables/index.html @@ -92,4 +92,4 @@ lon = coord(ncv,"longitude")[:] lat = coord(ncv,"latitude")[:] v = ncv[:] -close(ds)source
      NCDatasets.boundsFunction
      b = bounds(ncvar::NCDatasets.CFVariable)

      Return the CFVariable corresponding to the bounds attribute of the variable ncvar. The time units and calendar from the ncvar are used but not the attributes controling the packing of data scale_factor, add_offset and _FillValue.

      source
      +close(ds)source
      NCDatasets.boundsFunction
      b = bounds(ncvar::NCDatasets.CFVariable)

      Return the CFVariable corresponding to the bounds attribute of the variable ncvar. The time units and calendar from the ncvar are used but not the attributes controling the packing of data scale_factor, add_offset and _FillValue.

      source