Hello OpenDX users (who naturally have an uncanny grasp of the native
file format),

I am having troubles with the native file format. Attached is
spawn_small.dx a cut
down version of file I am trying to import. When Importing in OpenDX
4.1.3 on Linux RH7.1
I get the following message

ERROR: Import: Bad type: bad positions/box type in bounding box

The reasoning behind trying to setup the file this way was to have one
big list of positions (global_position_list).
Each member of the "spawnings" group represents information on
position/reef name where particles
where released ("spawn reef" member, only one position) and
position/%data where particles landed
("settlement reefs" member, many positions).

As a work around I have made up spawn_small_dep.dx which Imports just
fine.
The main difference being that the position components are not "ref" to
position_list.

Any explanation as to why my first approach did not work as expected
would be appreciated.

Thanks,
Simon.

// Simon Spagnol, [EMAIL PROTECTED]
// Australian Institute Of Marine Science
// PMB No 3, Townsville 4810, QLD Australia
// ph: +61-7-47534444, fax: +61-7-47725852

object "global_position_list" class array type float rank 1 shape 2 items 10 
data follows
145.5403208  -12.19577606
145.3647777  -12.7175451
145.4724743  -12.43621811
145.4488919  -12.57999657
145.5964386  -12.25778462
145.3411953  -12.86132356
145.6333879  -12.40779302 
145.5271418  -12.59367334 
145.5005959  -12.69778376 
145.5751258  -12.60423515 

object "global_name_list" class array type string rank 1 shape 25 items 10 data 
follows
"Howick Island Reef"
"U/N"
"MacGillivray Reef"
"Nymph Island Reef"
"Coquet Island Reef"
"U/N"
"Lizard Island NW Side Re"
"U/N"   
"U/N"   
"Trutle Group Reef A"

##spawn reef 1, settlement reef info

#spawn reef 1, settlement locations
object 0 class array type int rank 0 items 5 data follows
 0 1 5 7 9
 attribute "ref" string "local_position_list"

#spawn reef 1, settlement data
object 1 class array type float rank 0 items 5 data follows
 0.25 0.5 0.75 0.1 0.8
 attribute "dep" string "positions"

#spawn reef 1, settlement class
object 2 class field
 component "local_position_list" value "global_position_list"
 component "positions" value 0
 component "data" value 1

##spawn reef 1, spawn reef info

#spawn reef 1, location
object 3 class array type int rank 0 items 1 data follows
 3
 attribute "ref" string "local_position_list"

#spawn reef 1, name
object 4 class array type int rank 0 items 1 data follows
 3
 attribute "ref" string "local_name_list"

#spawn reef 1, spawn class
object 5 class field
 component "local_position_list" value "global_position_list"
 component "local_name_list" value "global_name_list"
 component "positions" value 3
 component "data" value 4

#spawn reef 1, group info
object 6 class group
 member "settlement reefs" value 2
 member "spawn reef" value 5

#group of all spawn reefs
object "spawnings" class group
 member 0 value 6
end
##spawn reef 1, settlement reef info

#spawn reef 1, settlement locations
object 0 class array type float rank 1 shape 2 items 5 data follows
145.5403208  -12.19577606
145.3647777  -12.7175451
145.3411953  -12.86132356
145.4488919  -12.57999657
145.5751258  -12.60423515 

#spawn reef 1, settlement data
object 1 class array type float rank 0 items 5 data follows
 0.25 0.5 0.75 0.2 0.8
 attribute "dep" string "positions"

#spawn reef 1, settlement class
object 2 class field
 component "positions" value 0
 component "data" value 1

##spawn reef 1, spawn reef info

#spawn reef 1, location
object 3 class array type float rank 1 shape 2 items 1 data follows
 145.5271418  -12.59367334 

#spawn reef 1, name
object 4 class array type string rank 1 shape 4 items 1 data follows
"U/N"   

#spawn reef 1, spawn class
object 5 class field
 component "positions" value 3
 component "data" value 4

#spawn reef 1, group info
object 6 class group
 member "settlement reefs" value 2
 member "spawn reef" value 5

#group of all spawn reefs
object "spawnings" class group
 member 0 value 6
end

Reply via email to