[Thread Prev][Thread Next][Index]

Re: compression by gathering



Hi Ed,
Do I gather that you are referring to the compression proposal that is in
draft in the "CF" netCDF climate data conventions?

It would be a very straightforward matter to create an external function to
perform this unpacking ("decompressing"). The existing function SAMPLEIJ is
just the inverse -- it performs the "packing" of a 2D (IJ) array into 1D given
a list of (i,j) indices.

Details on writing external functions are at
http://ferret.wrc.noaa.gov/Ferret/External_Functions/ferret_EF.html

An analogous external function would be SCAT2GRIDGAUSS_XY, which also takes 1D
arrays as input and returns a 2D array. The source code for SCAT2GRIDGAUSS_XY
(and SAMPLEIJ) can be found linked to the external functions page, under "more examples".
Note that you'll want to go through the instructions for getting started writing external
functions first, and then use these for ideas in writing your own function.

Ansley Manke
 
 

Ed Maurer wrote:

Is there a method for easily viewing netCDF files created with compresison
by gathering?

thanks,
Ed
____________________________________________________________________
Ed Maurer    edm@hydro.washington.edu

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement