[FLASH-BUGS] doubt about unknowns

Mike Zingale zingale at flash.uchicago.edu
Fri Jul 26 11:55:13 CDT 2002


The batch.pro routine is an old routine (it is part of fidlr, fidlr2 is
the newer version).  Only a single variable is read in, given by the 
'var = ' arguemnt to the read_amr routine.  The fidlr version of read_amr
takes a number, the fidlr2 version takes the character string variable
name, and should probably be used in the future (note there is no port of
batch.pro to fidlr2, but this is something that can easily be done).  The
variable number is simple the number (0 based indexing) of the variable as
listed in the 'unknown names' record in the HDF file.  If you read in that
record to a character array in IDL, you can get the index by using the
where function on the character array using the variable
string.  Alternatively, you can just count the position of the variable
you desire (using 0 based indexing) in that record.

Mike

On Mon, 22 Jul 2002 salilakerkar at yahoo.com wrote:

> Hello,
> 
> I have FLASH generated HDF4 files and I want to use
> them for visualization purpose. I use a idl routine
> called batch.pro which gives me the required file
> which is later on visualized using Express. However my
> problem is that
> in the idl routine I have to give the variable number
> (corresponding to the unknown in hdp command) and I am
> not sure what kind of mapping is used. that is my
> unknown names are at index 11 and data of unknown is
> resideing at index 20. There are 7 unknowns and 5440
> blocks. (I am attaching the required hdp output files)
> 
> What I want to figure out is that if the variable
> numbers are 0 to 6 or they are mapped differerntly to
> different numbers
> 
> Thanks and Regards
> Awaiting your reply,
> 
> Salil Akerkar
> 
> hdp dumpsds -h        ----> info.xt
> hdp dumpsds -i 11    ------> varnames.txt
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com




More information about the flash-bugs mailing list