private int [ ] getIntArray ( AttributeContainer ctv , String attName ) { Attribute att = ctv . findAttribute ( attName ) ; if ( att == null ) { throw new IllegalArgumentException ( "McIDASArea coordTransformVariable " + ctv . getName ( ) + " must have " + attName + " attribute" ) ; } Array arr = att . getValues ( ) ; return ( int [ ] ) arr . get1DJavaArray ( int . class ) ; }
get the int array from the variable attribute