freeform handler.
Daniel Holloway
d.holloway at opendap.org
Wed Feb 7 06:34:53 PST 2007
On Feb 6, 2007, at 6:15 PM, Denis Nadeau wrote:
> Hi,
>
> I have files are the same directory and they have different binary
> formats with the same extension....
> It seems that I cannot use "bin.fmt" for these files.
>
> Is there a way to select a different "fmt" files for the following
> binary files using OPeNDAP http link?
>
Denis,
The current behavior of that software is to look for format
descriptors as:
1: <filename>.fmt (.e.g., Temperature_A.2007.01.23.fmt)
simply replacing the current filename suffix with '.fmt'
2: <ext>.fmt (.e.g., bin.fmt)
using the current filename suffix concatenated with
'.fmt', as you've noted.
You could modify the software to handle different input
filename munging, you'd have to modify the underlying FFND modules
(there are only one or two you'd have to modify). If option #1
listed above isn't going to work for you that might be your best bet
if you're unable to segregate the files into subdirectories based on
parameter type (.i.e., Temperature, GPHeight, et c.)
Dan
>
> Can I use:
> Temperature.fmt
> GPHeight.fmt
> ...
>
> Maybe a I could modify the Freeform handler to retrieve the prefix of
> the files instead of the extension.
> Your comments are welcome.
>
> -rw-rw-r-- 1 ??? ??? 6220800 Jan 26 08:01 ./Temperature_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 6220800 Jan 26 08:01 ./GPHeight_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 3110400 Jan 26 08:01 ./H2OVapMMR_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 3110400 Jan 26 08:01 ./RelHumid_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./TotO3_A.2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./SurfAirTemp_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./SurfSkinTemp_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./SurfPres_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./CloudFrc_A.2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./CloudTopPres_A.
> 2007.01.23.bin
> -rw-rw-r-- 1 ??? ??? 259200 Jan 26 08:01 ./TotCldLiqH2O_A.
> 2007.01.23.bin
>
> Regards,
> Denis
>
> --
> Denis Nadeau
> Goddard Earth Sciences Data & Information Services Center
> Code 610.2
> NASA Goddard Space Flight Center, Greenbelt, MD 20771
> Phone: (301) 614-5514
> Fax: (301) 614-5268
> email: dnadeau at pop600.gsfc.nasa.gov
> http://disc.gsfc.nasa.gov
> http://giovanni.gsfc.nasa.gov
>
More information about the Opendap-tech
mailing list