[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20011015: HDF to areafile



>From: Darren Gallant <address@hidden>
>Organization: UCAR/JOSS
>Keywords: 200110151753.f9FHrZ118806 McIDAS TeraScan HDF AREA

Darren,

I am in Madison, WI right now, so I can't help out with your HDF to AREA
conversion process.  It may be very helpful to check out the beginning
section(s) of the McIDAS Programming Manual (go to the Unidata McIDAS
HomePage; click on documentation (Doc) and then select the application
programming manual).  The first couple of chapters contain information
on programming in the McIDAS environment.  Some of the info is on how
to build local programs, and linking is part of building.

I will be able to look at your program in depth when I get back to Boulder
next Monday.

Tom

>The attached program extracts image data and pertinent parameters from a
>HDF satellite image file. I use a precompiled HDf library for
>Solaris and the following to compile the code: f77 -O -o HDF2AREA
>HDF2AREA.f -L/home/gallant/bin/HDF/current/4.1r3_solaris/lib -lmfhdf -ldf
>-ljpeg -lz -lnsl -L/usr/local/lib.
>
>In order to create an areafile from the HDF image data, I would just place
>in HDF2AREA.f the needed lines of code from makearea.pgm. Unfortunately, I
>don't know how to compile HDF2AREA with Mcidas function calls. What lines
>would I need in my makefile to compile code containing calls to Mcidas
>functions?
>
>Thanks
>
>Darren
>
>
>Darren R. Gallant              UCAR/JOSS
>Programmer/Technician           Joint OfFice Of Science Support
>303-497-2634                    P.O. Box 3000
>address@hidden                Boulder,CO 80307-30000
>
>
>---559023410-758783491-1003168409=:1356
>Content-Type: TEXT/PLAIN; charset=US-ASCII; name="HDF2AREA.f"
>Content-Transfer-Encoding: BASE64
>Content-ID: <address@hidden>
>Content-Description: 
>Content-Disposition: attachment; filename="HDF2AREA.f"
>
>ICAgICAgUFJPR1JBTSBIREYyQVJFQQ0KQyAgICAgUHJvZ3JhbSBpbnB1dHMg
>SERGIGFuZCBjcmVhdGVzIGFuIEFSRUEgZmlsZSBmb3IgZWFjaCBjaGFubmVs
>DQpDCQ0KQw0KQwkNCkMNCkMqKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKio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ICBDQUxM
>IFNERVNUKCdNQUtFQVJFQSAtIEJlZ2luJywwKQ0KICAgICAgRE8gV0hJTEUg
>KEZJTENOVCAuTEUuIEFSR0NUKQ0KQyBJbnRpYWxpemUgYXJyYXlzDQogICAg
>ICAgICBqID0gMQ0KICAgICAgICAgZG8gd2hpbGUoaiAubGUuIGludChNQVhE
>SU0vNCkpDQogICAgICAgICAgICBpYnVmZmVyKGopID0gMA0KICAgICAgICAg
>ICAgaiA9IGogKyAxDQogICAgICAgICBlbmRkbw0KDQogICAgICAgICBqID0g
>MQ0KICAgICAgICAgZG8gd2hpbGUoaiAubGUuIGludChNQVhESU0vMikpDQog
>ICAgICAgICAgICBqYnVmZmVyKGopID0gMA0KICAgICAgICAgICAgaiA9IGog
>KyAxDQogICAgICAgICBlbmRkbw0KICAgICAgICAgDQogICAgICAgICBqID0g
>MQ0KICAgICAgICAgZG8gd2hpbGUoaiAubGUuIE1BWERJTSkNCiAgICAgICAg
>ICAgICBjYnVmZmVyKGopID0gJyAnDQogICAgICAgICAgICBqID0gaiArIDEN
>CiAgICAgICAgIGVuZGRvDQoNCiAgICAgICAgIGo9MQ0KICAgICAgICAgZG8g
>d2hpbGUoaiAubGUuIE5VTSkNCiAgICAgICAgICAgIHZhcl9uYW1lcyhqKSA9
>ICcgJw0KICAgICAgICAgICAgdW5pdHNfYnVmZmVyKGopID0gJyAnDQogICAg
>ICAgICAgICBpbmRleGVzKGopID0gMA0KICAgICAgICAgICAgcmFua3Moaikg
>PSAwDQogICAgICAgICAgICBkaW1lbnNpb25zKGosMSkgPSAwDQogICAgICAg
>ICAgICBkaW1lbnNpb25zKGosMikgPSAwDQogICAgICAgICAgICBhdHRyaWJz
>KGopID0gMA0KICAgICAgICAgICAgdmFyX3R5cGVzKGopID0gMA0KICAgICAg
>ICAgICAgY2FsaWIoaikgPSAwLg0KICAgICAgICAgICAgY2FsaWJfZXJyKGop
>ID0gMC4NCiAgICAgICAgICAgIG9mZnNldChqKSA9IDAuDQogICAg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ICAgICAgICAgICAgRElNMCA9IGRpbWVuc2lvbnMoaywyKQ0KICAgICAgICAg
>ICAgRElNMSA9IGRpbWVuc2lvbnMoaywxKQ0KICAgICAgICAgICAgc3RhcnQo
>MSkgPSAwDQogICAgICAgICAgICBzdGFydCgyKSA9IDANCiAgICAgICAgICAg
>IGVkZ2VzKDEpID0gRElNMQ0KICAgICAgICAgICAgZWRnZXMoMikgPSAxDQpD
>ICAgICAgICAgICAgZWRnZXMoMikgPSBESU0wDQogICAgICAgICAgICBzdHJp
>ZGUoMSkgPSAxDQogICAgICAgICAgICBzdHJpZGUoMikgPSAxDQpDICoqKiBh
>c3N1bWVzIHRoYXQgdGhlIGZpcnN0IHBlcmlvZCBpbiB0aGUgZmlsZW5hbWUg
>aXMgYWxzbyB0aGUgbGFzdCEhIQ0KICAgICAgICAgICAgTE9DID0gSU5ERVgo
>SU5GSUwsJy5oZGYnKQ0KICAgICAgICAgICAgSUYgKExPQyAuRVEuIDApIFRI
>RU4NCiAgICAgICAgICAgICAgIExPQyA9IElOREVYKEFSR1YsJyAnKQ0KICAg
>ICAgICAgICAgICAgTE9DID0gTE9DIC0gMQ0KICAgICAgICAgICAgICAgT1VU
>RklMID0gSU5GSUwoMTpMT0MpIC8vICcudmFyX25hbWVzKGspJw0KICAgICAg
>ICAgICAgRUxTRQ0KICAgICAgICAgICAgICAgT1VURklMID0gSU5GSUwoMTpM
>T0MpIC8vIHZhcl9uYW1lcyhrKQ0KICAgICAgICAgICAgRU5EIElGDQogICAg
>ICAgICAgICB3cml0ZSgqLDU1KU9VVEZJTA0KIDU1ICAgICAgICAgZm9ybWF0
>KCcuLi4gJyxBNDAsJyBvcGVuZWQgZm9yIFdSSVRFLicpDQogICAgICAgICAg
>ICBPUEVOIChGSUxFPU9VVEZJTCwgVU5JVD1PVVRVTkksIFNUQVRVUz0nTkVX
>JywgRVJSPTk5OTkpDQoNCiAgICAgICAgICAgIHNkX2luZGV4ID0gaW5kZXhl
>cyhrKQ0KICAgICAgICAgICAgc2RzX2lkID0gc2ZzZWxlY3QgKHNkX2lkLCBz
>ZF9pbmRleCkgDQogICAgICAgICAgICBpZiAoc2RzX2lkIC5lcS4gRkFJTCkg
>dGhlbg0KICAgICAgICAgICAgICAgaXN0YXQ9aGVwcm50KDApDQogICAgICAg
>ICAgICBlbmQgaWYNCiAgICAgICAgICAgIGlmKHZhcl90eXBlcyhrKSAuZXEu
>IDIyKSB0aGVuDQogICAgICAgICAgICAgICBkbyAzMCBqaj0xLERJTTANCiAg
>ICAgICAgICAgICAgICAgIGlzdGF0PXNmcmRhdGEoc2RzX2lkLCBzdGFydCwg
>c3RyaWRlLCBlZGdlcywgaWJ1ZmZlcikNCiAgICAgICAgICAgICAgICAgIHN0
>YXJ0KDIpID0gc3RhcnQoMikgKyAxDQogICAgICAgICAgICAgICAgICBkbyAz
>NSBpaT0xLERJTTENCiAgICAgICAgICAgICAgICAgICAgIGNvdW50ID0gMipp
>aQ0KDQogICAgICAgICAgICAgICAgICAgICBjYnVmZmVyKGNvdW50LTEpID0g
>Y2hhcihpYnVmZmVyKGlpKS8yNTYpDQoNCiAgICAgICAgICAgICAgICAgICAg
>IGNidWZmZXIoY291bnQpID0gY2hhcihpYnVmZmVyKGlpKSoyNTYpDQogMzUg
>ICAgICAgICAgICAgICBjb250aW51ZQ0KDQogICAgICAgICAgICAgICAgICAg
>d3JpdGUoT1VUVU5JLDYwKShjYnVmZmVyKGtrKSxraz0xLDIqRElNMSkNCiAz
>MCAgICAgICAgICAgIGNvbnRpbnVlICAgDQogICAgICAgICAgICBlbHNlIGlm
>KHZhcl90eXBlcyhrKS5lcS4yMS5vci52YXJfdHlwZXMoaykuZXEuMjApIHRo
>ZW4NCiAgICAgICAgICAgICAgIGRvIDQwIGpqID0gMSxESU0wDQogICAgICAg
>ICAgICAgICAgICBpc3RhdD1zZnJjZGF0YShzZHNfaWQsIHN0YXJ0LCBzdHJp
>ZGUsIGVkZ2VzLCBjYnVmZmVyKQ0KICAgICAgICAgICAgICAgICAgc3RhcnQo
>MikgPSBzdGFydCgyKSArIDENCiAgICAgICAgICAgICAgICAgICB3cml0ZShP
>VVRVTkksNjUpKGNidWZmZXIoaWkpLGlpPTEsRElNMSkNCiA0MCAgICAgICAg
>ICAgIGNvbnRpbnVlDQogICAgICAgICAgICBlbmQgaWYNCg0KICAgICAgICAg
>ICAgaWYgKGlzdGF0IC5lcS4gRkFJTCkgdGhlbg0KICAgICAgICAgICAgICAg
>aXN0YXQ9aGVwcm50KDApDQogICAgICAgICAgICBlbmQgaWYNCiAgICAgICAg
>ICAgIHdyaXRlKCosKiknRWRnZXM6Jw0KICAgICAgICAgICAgd3JpdGUoKiw0
>NSkoZWRnZXMoaiksaj0xLDIpDQogNDUgICAgICAgICBmb3JtYXQoMXgsaTYp
>DQogICAgICAgICAgICB3cml0ZSgqLDUwKURJTTAsRElNMQ0KIDUwICAgICAg
>ICAgZm9ybWF0KCdESU0wID0gJyxpNiwxeCwnRElNMSA9ICcsaTYpDQogNjAg
>ICAgICAgICBmb3JtYXQoPDIqRElNMT4oQSksJCkNCiA2NSAgICAgICAgIGZv
>cm1hdCg8RElNMT4oQSksJCkNCiA3MCAgICAgICAgIGZvcm1hdCgxeCw8RElN
>MT4oaTQpKQ0KQyAgICAgVGVybWluYXRlIGFjY2VzcyB0byB0aGUgYXJyYXku
>DQogICAgICAgICAgICBpc3RhdCA9IHNmZW5kYWNjKHNkc19pZCkNCiAgICAg
>ICAgICAgIGlmIChpc3RhdCAuZXEuIEZBSUwpIHRoZW4NCiAgICAgICAgICAg
>ICAgIGlzdGF0PWhlcHJudCgwKQ0KICAgICAgICAgICAgZW5kIGlmDQoNCg0K
>IDIwICAgICAgY29udGludWUNCg0KQyAgICAgVGVybWluYXRlIGFjY2VzcyB0
>byB0aGUgU0QgaW50ZXJmYWNlIGFuZCBjbG9zZSB0aGUgZmlsZS4NCiAgICAg
>ICAgIGlzdGF0ID0gc2ZlbmQoc2RfaWQpDQogICAgICAgICBpZiAoaXN0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
>CiAgICAgKydndmFyX2NoNScpIC5hbmQuIHJhbmsgLmVxLiAyLikgdGhlbg0K
>ICAgICAgICAgICAgY291bnRlciA9IGNvdW50ZXIgKyAxDQogICAgICAgICAg
>ICB2YXJfbmFtZXMoY291bnRlcikgPSBuYW1lDQogICAgICAgICAgICBpbmRl
>eGVzKGNvdW50ZXIpID0gc2RfaW5kZXgNCiAgICAgICAgICAgIHJhbmtzKGNv
>dW50ZXIpID0gcmFuaw0KICAgICAgICAgICAgYXR0cmlicyhjb3VudGVyKSA9
>IGF0dHJpYnV0ZXMNCiAgICAgICAgICAgIHZhcl90eXBlcyhjb3VudGVyKSA9
>IG51bV90eXBlDQogICAgICAgICAgICBpID0gMQ0KICAgICAgICAgICAgZG8g
>d2hpbGUgKGkgLmxlLiByYW5rcyhjb3VudGVyKSkNCiAgICAgICAgICAgICAg
>IGRpbWVuc2lvbnMoY291bnRlcixpKSA9IGRpbV9zaXplcyhpKQ0KICAgICAg
>ICAgICAgICAgaSA9IGkgKyAxDQogICAgICAgICAgICBlbmQgZG8NCiAgICAg
>ICAgIGVuZCBpZg0KICAgICAgICAgaXN0YXQgPSBzZmVuZGFjYyhzZHNfaWQp
>ICAgICAgDQogMTAgICBjb250aW51ZQ0KICAgICAgcmV0dXJuIA0KICAgICAg
>ZW5kDQoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgICAgc3Vicm91dGlu
>ZSBnZXRfY2FsaWJfaW5mbyAoc2RfaWQsIGluZGV4ZXMsIHZhcl90eXBlcywg
>Y2FsaWIsIA0KICAgICArY2FsaWJfZXJyLCBvZmZzZXQsIG9mZnNldF9lcnIs
>IGNvdW50ZXIpDQoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgICAgDQog
>ICAgICBpbnRlZ2VyIHNkX2lkLCBzZHNfaWQsIH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AxMCAgIGNvbnRpbnVlICAgICAgDQogICAgICBy
>ZXR1cm4NCiAgICAgIGVuZA0KKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0K
>ICAgICAgc3Vicm91dGluZSBnZXRfdW5pdHNfaW5mbyhzZF9pZCwgaW5kZXhl
>cywgdW5pdHNfYnVmZmVyLCANCiAgICAgK2NvdW50ZXIpDQoqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqDQogICAgICBpbnRlZ2VyIHNkX2lkLCBzZHNfaWQs
>IGF0dHJfaW5kZXgsIHNkX2luZGV4LCBjb3VudGVyLCANCiAgICAgK3Nmc2Vs
>ZWN0LCBzZmZhdHRyLCBzZnJuYXR0LCBzZmVuZGFjYywgaXN0YXQNCiAgICAg
>IGludGVnZXIqNCBpbmRleGVzKCopLCBGQUlMDQogICAgICBwYXJhbWV0ZXIo
>RkFJTCA9IC0xKQ0KICAgICAgY2hhcmFjdGVyKjIwIHVuaXRzX2J1ZmZlcigq
>KQ0KICAgICAgZG8gMTAgayA9IDEsY291bnRlcg0KICAgICAgICAgc2RfaW5k
>ZXggPSBpbmRleGVzKGspDQogICAgICAgICBzZHNfaWQgPSBzZnNlbGVjdCAo
>c2RfaWQsIHNkX2luZGV4KQ0KICAgICAgICAgYXR0cl9pbmRleCA9IHNmZmF0
>dHIoc2RzX2lkLCAndW5pdHMnKQ0KICAgICAgICAgaWYgKHNkc19pZCAuZXEu
>IEZBSUwpIHRoZW4NCiAgICAgICAgICAgIGlzdGF0PWhlcHJudCgwKQ0KICAg
>ICAgICAgZW5kIGlmDQogICAgICAgICBpc3RhdCA9IHNmcm5hdHQoc2RzX2lk
>LCBhdHRyX2luZGV4LCB1bml0c19idWZmZXIoaykpDQogICAgICAgICBpZihp
>c3RhdCAubmUuIEZBSUwpIHRoZW4NCiAgICAgICAgICAgIHdyaXRlKCosKikn
>dW5pdHM6Jyx1bml0c19idWZmZXIoaykNCiAgICAgICAgIGVuZCBpZg0KDQpD
>ICAgICBUZXJtaW5hdGUgYWNjZXNzIHRvIHRoZSBhcnJheSANCiAgICAgICAg
>IGlzdGF0ID0gc2ZlbmRhY2Moc2RzX2lkKSAgICAgICAgICAgIA0KDQogMTAg
>ICBjb250aW51ZQ0KICAgICAgcmV0dXJuDQogICAgICBlbmQNCioqKioqKioq
>KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
>KioqKioqKioqKioqKioqKioqKg0KDQoNCg0KDQo=
>---559023410-758783491-1003168409=:1356--
>



NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.