[Opendap-tech] handling compression in BES

John Relph John.Relph at noaa.gov
Mon Mar 9 09:54:38 PDT 2009


Pauline Mak wrote:
> Hi John,
> 
> What does the BES.Catalog.catalog.TypeMatch in your bes.conf have?  Mine 
> has:
> 
> BES.Catalog.catalog.TypeMatch=nc:.*\.(nc|NC)(\.gz|\.bz2|\.Z)?$;h4:.*\.(hdf|HDF|eos)(\.gz|\.bz2|\.Z)?$; 

Thanks, that's a very simple and logical fix.  The "Hyrax - BES 
Configuration" page on the OPeNDAP wiki 
(http://docs.opendap.org/index.php/Hyrax_-_BES_Configuration) should be 
updated to point this out.  As it is, the wiki page doesn't mention this at all.

Also, does anybody know how to enable automatic uncompression of ".zip" 
files?  This is apparently not covered in the BES Configuration wiki.

Thanks.

         -- John

> Which basically matches handlers (nc and h4) to regular expressions 
> defining what a "valid" file is.
> 
> Just to make sure... have you installed the NetCDF handler?
> 
> Cheers,
> 
> -Pauline.
> 
> 
> John Relph wrote:
>> Folks,
>>
>> According to 
>> http://docs.opendap.org/index.php/Hyrax_-_BES_Configuration "The bz2, 
>> gz, and Z file compression methods are understood by the BES."
>>
>> I interpret that as saying that I really don't have to do much to get 
>> the BES to automatically uncompress the files.
>>
>> Except that I don't even see the normal links for compressed files.  
>> Here's an example of the display in my browser for a compressed file 
>> on my OPeNDAP server:
>>
>> 20050807-AMSRE-REMSS-L2P-amsr_l2b_r17342.dat-v1.5.nc.bz2  2005-09-03 
>> 23:05:00  1608977 -  -  -  -  -
>>
>> There are no links for ddx, dds, das, info or html, as you can see.  
>> What do I have to change so that OPeNDAP understands that a ".nc.bz2" 
>> file is in fact a legal data file?
>>
>>         -- John
>>
> 
> 


-- 
John Relph <John.Relph at noaa.gov>
ISSO, NOAA/NESDIS/National Oceanographic Data Center


More information about the opendap-tech mailing list