creating a descriptor file for an hdf file

Deborah Herceg herceg at MARINE.RUTGERS.EDU
Thu Mar 22 20:03:30 EDT 2007


Hi hoop,

thats all it needed! thank you!
deborah

> I'm not sure I know how to read NCL's dumps, but it looks like the
> lat and lon coordinate variables misnamed their units attribute as
> just "unit", which would lead to the sdfopen error message.  So,
> I'm guessing the XDFopen DDF only needs these three lines:
> DSET /path/to/foo.hdf
> XDEF lon
> YDEF lat
>
> The rest will (hopefully) be picked up automagically.  I suspect the
> reason why ncdump didn't work is that it was they Unidata NetCDF
> version of ncdump, not the one that comes with HDF-SDS.  Try the above
> to start, and then maybe enhance it if need be.
>
> -Hoop
>> From owner-gradsusr at LIST.CINECA.IT  Thu Mar 22 11:24:43 2007
>>
>> Hello all,
>> I a am trying to create a descriptor file for an hdf data file for
>> Pathfinder SST data set available from
>> http://podaac.jpl.nasa.gov/products/product216.html.
>>
>> - sdfopen creates an error message about not recognizing the
>> x-coordinate.
>> i tried xdfopen with a file but since the data is at 4km res, not sure
>> how
>> to specify it in a descriptor file. any help is highly appreciated.
>>
>> -------------------------------------------------------------------------
>>
>> I am currently using:
>>
>> Grid Analysis and Display System (GrADS) Version 1.9b4
>> ....
>> Config: v1.9b4 32-bit little-endian readline sdf/xdf hdf-sds netcdf lats
>> printim
>>
>> on a Linux box.
>>
>> --------------------------------------------------------------------------
>>
>> The ncl_file dump looks like this (could not get ncdump to work):
>>
>> >ncl_filedump 200201.s04w3pfrt-sst-16b.hdf
>> Copyright (C) 1995-2006 - All Rights Reserved
>>  University Corporation for Atmospheric Research
>>  NCAR Command Language Version 4.2.0.a034
>>  The use of this software is governed by a License Agreement.
>>  See http://www.ncl.ucar.edu/ for more details.
>> Variable: f (file variable)
>>
>> filename:       200201.s04w3pfrt-sst-16b
>> path:   200201.s04w3pfrt-sst-16b.hdf
>>    file global attributes:
>>       dsp_SubImageId : 0
>>       dsp_SubImageName : SST
>>       dsp_ModificationDate : 20040222
>>       dsp_ModificationTime : 154417
>>       dsp_SubImageFlag : 64
>>       dsp_SubImageTitle : \\NLC Postage Stamp
>>       dsp_StartDate : 20020106
>>       dsp_StartTime : 45722.11
>>       dsp_SizeX : 8192
>>       dsp_SizeY : 4096
>>       dsp_OffsetX : 0
>>       dsp_RecordLength : 16384
>>       dsp_DataOrganization : 0x40
>>       dsp_NumberOfBands : 0x01
>>       dsp_ing_tiros_ourid : NO16GAC C���
>>       dsp_ing_tiros_numscn : -4857
>>       dsp_ing_tiros_idsat : 3072
>>       dsp_ing_tiros_iddata : 512
>>       dsp_ing_tiros_year : -11769
>>       dsp_ing_tiros_daysmp : 1536
>>       dsp_ing_tiros_milsec : -1019277311
>>       dsp_ing_tiros_slope : <ARRAY>
>>       dsp_ing_tiros_intcpt : <ARRAY>
>>       dsp_ing_tiros_tabadr : <ARRAY>
>>       dsp_ing_tiros_cnlins : 256
>>       dsp_ing_tiros_cncols : 256
>>       dsp_ing_tiros_czncs : -26367
>>       dsp_ing_tiros_line : 256
>>       dsp_ing_tiros_icol : 0
>>       dsp_ing_tiros_date0 : 18-FEB-04 22:52:39&#65533;
>>       dsp_ing_tiros_time0 : 22:52:39&#65533;
>>       dsp_ing_tiros_label : <ARRAY>
>>       dsp_ing_tiros_nxtblk : 1280      dsp_ing_tiros_nxtblk : 1280
>>       dsp_ing_tiros_datblk : 1280
>>       dsp_ing_tiros_itape : 256
>>       dsp_ing_tiros_cbias : 0
>>       dsp_ing_tiros_ccoeff : 0
>>       dsp_ing_tiros_pastim : -1019277311
>>       dsp_ing_tiros_passcn : 256
>>       dsp_ing_tiros_lostct : 0
>>       dsp_ing_tiros_lost : <ARRAY>
>>       dsp_ing_tiros_ndrll : 2560
>>       dsp_ing_tiros_ndrrec : <ARRAY>
>>       dsp_ing_tiros_ndrlat : <ARRAY>
>>       dsp_ing_tiros_ndrlon : <ARRAY>
>>       dsp_ing_tiros_chncnt : 1280
>>       dsp_ing_tiros_chndsq : <ARRAY>
>>       dsp_ing_tiros_czncs2 : -13056
>>       dsp_ing_tiros_wrdsiz : 512
>>       dsp_ing_tiros_nchbas : 0
>>       dsp_ing_tiros_nchlst : 0
>>       dsp_ing_tiros_rpmclc :  0
>>       dsp_ing_tiros_numpix : -26367
>>       dsp_ing_tiros_scnden : 768
>>       dsp_ing_tiros_eltden : 1280
>>       dsp_ing_tiros_orbtno : 0
>>       dsp_ing_tiros_slope2 : <ARRAY>
>>       dsp_ing_tiros_intcp2 : <ARRAY>
>>       dsp_ing_tiros_prtemp : -7.290557e-08
>>       dsp_ing_tiros_timerr :  0
>>       dsp_ing_tiros_timstn : 0
>>       dsp_nav_xsatid : BIN
>>       dsp_nav_xsatty : 0x05
>>       dsp_nav_xproty : 0x08
>>       dsp_nav_xmapsl : 0x00
>>       dsp_nav_xtmpch : 0x04
>>       dsp_nav_ximgdy : 2006
>>       dsp_nav_ximgtm : 45722.11
>>       dsp_nav_xorbit : 6653
>>       dsp_nav_ximgcv : <ARRAY>
>>       dsp_nav_earth_linoff :  0
>>       dsp_nav_earth_pixoff :  0
>>       dsp_nav_earth_scnstr :  1
>>       dsp_nav_earth_scnstp : 4096
>>       dsp_nav_earth_pixstr :  1
>>       dsp_nav_earth_pixstp : 8192
>>       dsp_nav_earth_latorg :  0
>>       dsp_nav_earth_lonorg :  0
>>       dsp_nav_earth_orgrot :  0
>>       dsp_nav_earth_lattop :  0
>>       dsp_nav_earth_latbot :  0
>>       dsp_nav_earth_latcen :  0
>>       dsp_nav_earth_loncen :  0
>>       dsp_nav_earth_height : 179.96
>>       dsp_nav_earth_width :  0
>>       dsp_nav_earth_level :  1
>>       dsp_nav_earth_xspace :  3
>>       dsp_nav_earth_yspace :  3
>>       dsp_nav_earth_rev : 1.0
>>       dsp_nav_earth_dflag :  0
>>       dsp_nav_earth_numpix : 8192
>>       dsp_nav_earth_numras : 4096
>>       dsp_nav_earth_magxx :  1
>>       dsp_nav_earth_magyy :  1
>>       dsp_hgt_llnval : 23
>>       dsp_hgt_lltime : 17792115
>>       dsp_hgt_llvect : <ARRAY>
>>       history :  PATHNLC Feb 18 22:54:54 2004 PATHNLC
>> t,3,270.16,0.05,0.,0.01,271.16,308.16,,,,1,,,2,,,3,,,,,,4,,,,,,,1.,,35.,0.1,5,,,,,,,0.7,,35.,0.15,45.,80.,0.005,20,0.,3.6,0.,8.,t,,,,,,,,
>> ,,,,1.2,,,,1.2,,55.,1,270.16,0.05 pixsiz=16 allb=4 nlsst=1 vernum=4
>> version=V4.2 pathfinder flagtree 3bitqual 14oct97 newtest=1 tree=0
>> in=/var1/gacsst/orbit/02006032613/sector//02006045722.N16 at ingest
>> in1=/var1/gacsst/gacmask//3wk-200202.m1dw0oisstv2-sst
>> out=/var1/gacsst/gacsst//02006045722.sst at ingest
>>  PATHNLC  NLSST Temp calculation date: April 10, 1996
>>  oisstv2mia Jul 10 15:27:43 2002 oisstv2mia  IN=../global_blnk.m1d-sst
>> IN1=oisst.20020109 OUT=200202.m1dw0oisstv2-sst dtype=1 bias=-3
>> slope=0.15
>>  STATS Jul 10 18:31:56 2002 STATS minpix=1 maxpix=255
>> in=/usr5/gacsst/etc/oiv2/02//200202.m1dw0oisstv2-sst        a udit=t,
>> callim=f, cal=f, cloud=f
>> outm=/usr5/gacsst/etc/oiv2/02/3wk-200202.m1dw0oisstv2-sst
>>  oisstv2mia Jul 10 15:27:38 2002 oisstv2mia  IN=../global_blnk.m1d-sst
>> IN1=oisst.20020102 OUT=200201.m1dw0oisstv2-sst dtype=1 bias=-3
>> slope=0.15
>>  STATS /usr5/gacsst/etc/oiv2/02//200201.m1dw0oisstv2-sst
>>  oisstv2mia Jul 10 15:27:43 2002 oisstv2mia  IN=../global_blnk.m1d-sst
>> IN1=oisst.20020109 OUT=200202.m1dw0oisstv2-sst dtype=1 bias=-3
>> slope=0.15
>>  STATS /usr5/gacsst/etc/oiv2/02//200202.m1dw0oisstv2-sst
>>  oisstv2mia Jul 10 15:27:48 2002 oisstv2mia  IN=../global_blnk.m1d-sst
>> IN1=oisst.20020116 OUT=200203.m1dw0oisstv2-sst dtype=1 bias=-3
>> slope=0.15
>>  STATS /usr5/gacsst/etc/oiv2/02//200203.m1dw0oisstv2-sst
>>  PATHNLC /var1/gacsst/gacmask//3wk-200202.m1dw0oisstv2-sst
>>  PATHNLC  45d coeffs used (1) =    1.037   0.917   0.106   1.008   0.000
>>  PATHNLC  45d coeffs used (2) =    1.488   0.927   0.074   0.842   0.000
>>  PATHNLC  45d coeffs used (3) =    0.000   0.000   0.000   0.000   0.000
>>  PATHNLC  GETOZONE I     0.0900    0.0000
>>  PATHBIN Feb 18 22:57:06 2004 PATHBIN RESOLVE=4 BINMODEL=1     ASC=A
>> GRID=(16, 16) IN=/var1/gacsst/gacsst//02006045722.sst at ingest@sst NLC=1
>>  DATADAY=2002006 DAYSTR=02006013302 DAYEND=02007012446
>> OUT=/var1/gacsst/gacpst//02006045722.b04p3pfrt at pst\NLC Postage Stamp
>> ALLB=4 SEAMLON=-180.0
>> LAND=/var1/gacsst/gacmask//pfv50-land.b04bit-180
>>  PATHTIME Feb 18 22:57:45 2004 PATHTIME WQ=B ASC=A
>> IN=/tmp/02006032613-2002005-3.filespfrt
>> OUT=/var1/gacsst/gaclpst//02006032613-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /var1/gacsst/gacpst//02006042336-2002005.b04p3pfrt at pst@bin_number
>>  PATHTIME
>> /var1/gacsst/gacpst//02006045722-2002005.b04p3pfrt at pst@bin_number
>>  PATHTIME Feb 18 23:07:07 2004 PATHTIME WQ=B ASC=A
>> IN=/i1/gacsst/gacopst/2002005.fileapfrt
>> OUT=/r1/gacsst/pfrt/b04d/02/01/2002005.b04d3pfrt-p at pst@bin_number
>> satzen=f
>>  PATHTIME
>> /i1/gacsst/gacopst//02004222253-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02004235921-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005014759-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005033918-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005052632-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005070823-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005085135-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005102604-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005120825-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005134836-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005152834-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005165438-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005183336-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005202324-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005220553-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02005234743-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02006013906-2002005.b04o3pfrt at pst@bin_number
>>  PATHTIME
>> /i1/gacsst/gacopst//02006032613-2002005.b04o3pfrt at pst@bin_number
>>  PATHCLMAP Feb 19 15:22:52 2004 PATHCLMAP thresh=2. thr2 =12. WQ=F
>> in=/r1/gacsst/pfrt/b04d/02/01//2002005.b04d3pfrt-p at pst
>> ref=/r1/gacsst/pfrt/ref/02//3wk-200201.b09w3pfrt-f7-7 at pst
>> map=/r1/gacsst/gacmask//bin2bin.u04to09
>>  PATHTIME Feb 19 16:01:52 2004 PATHTIME WQ=B ASC=A
>> IN=/r1/gacsst/pfrt/topt/200201.file3pfrt
>> OUT=/r1/gacsst/pfrt/b04w/02/200201.b04w3pfrt at pst@sst at pst@bin_number
>> satzen=f
>>  PATHTIME /r1/gacsst/pfrt/topt//2001364.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2001365.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2002001.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2002002.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2002003.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2002004.b04d3pfrt at pst@bin_number
>>  PATHTIME /r1/gacsst/pfrt/topt//2002005.b04d3pfrt at pst@bin_number
>>  PATHMAP Feb 22 15:44:17 2004 PATHMAP STAT=M QUAL=A WQ=D PIXSIZ=16
>>          IN=/h/mo1/gacsst/pfrt/tomp//200201.b04w3pfrt at pst@sst
>> OUT=(IMG=/mo1/gacsst/pfrt/m04w/02/200201.s04w3pfrt-sst-16b at sst SLO=
>> 0.075
>>      INT=  -3.0    )
>>  PATHMAP Output image pixel, line size =    8192,    4096
>>  PATHMAP Grid spacing (X,Y) = (        3.00,        3.00), Projection
>> Code=     7
>>  PATHMAP Projection Origin Lon,Lat,Rotation =         0.00        0.00
>>    0.00
>>  PATHMAP center lon,lat,width, or height =        0.00       0.00
>> 0.00     179.96
>>
>> q=d
>>    dimensions:
>>       lat = 4096
>>       lon = 8192
>>    variables:
>>       short sst ( lat, lon )
>>          dsp_PixelType :        0x01
>>          dsp_PixelSize :        0x02
>>          dsp_Flag :     0
>>          dsp_nBits :    16
>>          dsp_LineSize : 0
>>          dsp_cal_name : Temperature
>>          units :        Temp
>>          dsp_cal_eqnNumber :    2
>>          dsp_cal_CoeffsLength : 8
>>          dsp_cal_coeffs :       <ARRAY>
>>          scale_factor : 0.075
>>          add_off :      -3
>>          hdf_name :     sst
>>
>>       double lat ( lat )
>>          unit : degrees_north
>>          long_name :    latitude
>>          hdf_name :     lat
>>
>>       double lon ( lon )
>>          unit : degrees_east
>>          long_name :    longitude
>>          hdf_name :     lon
>>
>>
>> Thank you!
>> Deborah Herceg
>>
>



More information about the gradsusr mailing list