Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases body Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Print NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareEq NameLoad Num body Return NameLoad orelse Return NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Print NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num orelse Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Num keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpPow Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpPow Num AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Pass If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpMult AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpMult AttributeLoad NameLoad attr Num BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr BinOpSub BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore NameLoad For NameStore Call NameLoad Num AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Break If UnaryOpNot NameLoad body Continue orelse If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr TryExcept body For NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMult Num NameLoad BinOpMult Num NameLoad handlers ExceptHandler body Raise If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A errno N/A math N/A os N/A re N/A sys N/A datetime N/A urllib N/A StringIO N/A Image N/A ImageOps DataInfo N/A N/A N/A tilesize 256 N/A rows 468 N/A cols 529 __init__ N/A N/A self N/A N/A N/A N/A getFileLocation N/A N/A self scale slice row col N/A N/A N/A N/A N/A {0}/{1}/{2}/{3}_{4}.png format N/A self root scale slice row col N/A doesSliceExist N/A N/A self slice N/A N/A N/A Check to see if a slice exists by loading the thumbnail. N/A N/A self remote N/A N/A url N/A N/A {0}/small/{1}.png format N/A self root slice N/A url N/A code N/A N/A N/A urllib urlopen url code N/A N/A code 200 N/A N/A True N/A N/A False N/A N/A N/A N/A N/A os path isfile N/A N/A {0}/small/{1}.png format N/A self root slice N/A getImage N/A N/A self scale slice col row N/A N/A N/A filename N/A N/A self getFileLocation scale slice col row N/A filename N/A image_file None N/A N/A self remote N/A N/A remote_image N/A N/A urllib urlopen filename N/A image_data N/A N/A remote_image read N/A image_file N/A N/A StringIO StringIO N/A N/A N/A image_file write image_data N/A N/A N/A image_file seek 0 N/A N/A image_file N/A open filename rb N/A img N/A N/A Image open image_file N/A img N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Tile images into a larger image N/A N/A N/A parser add_argument --root action store required True help Root directory of data (do not include '/0') N/A N/A N/A parser add_argument --slice action store required True type int help First slice to convert (int) N/A N/A N/A parser add_argument --slices action store type int default 1 help Number of slices to convert N/A N/A N/A parser add_argument --increment action store type int default 1 help Increment between slices N/A N/A N/A parser add_argument --useclosest action store_true required False default False help Use closest slice if slice does not exist N/A N/A N/A parser add_argument --scale action store required True type int default 0 help Scale level N/A N/A N/A parser add_argument --full action store_true required False default False help Read entire slice (do not specify row/col/rows/cols N/A N/A N/A parser add_argument --cols action store type int default 1 help Number of columns to copy N/A N/A N/A parser add_argument --rows action store type int default 1 help Number of rows to copy N/A N/A N/A parser add_argument --row action store type int default 0 help Row to start with N/A N/A N/A parser add_argument --col action store type int default 0 help Column to start with N/A N/A N/A parser add_argument --outdir action store default . help Output directoy N/A N/A N/A parser add_argument --readme action store type bool default True help Output README.txt (default) N/A N/A N/A parser add_argument --crop action store nargs 4 type int required False help Cropping box for final image N/A args N/A N/A parser parse_args N/A data N/A DataInfo N/A N/A data root N/A args root N/A N/A N/A N/A data root startswith http:// N/A N/A N/A data remote True N/A N/A N/A data remote False N/A N/A args full N/A N/A N/A args row 0 N/A N/A args col 0 N/A N/A args rows N/A int N/A N/A math ceil N/A N/A data rows N/A 2.0 N/A args scale N/A N/A args cols N/A int N/A N/A math ceil N/A N/A data cols N/A 2.0 N/A args scale N/A N/A N/A N/A N/A os makedirs N/A args outdir N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A args readme N/A N/A readmefile N/A N/A {0}/README.txt format N/A args outdir N/A readme N/A open readmefile w N/A N/A N/A readme write N/A N/A # Generated by {0} at {1}
 format N/A N/A os getlogin N/A N/A N/A N/A N/A datetime datetime now __str__ N/A N/A N/A readme write N/A N/A # Scale: {0}
 format N/A args scale N/A N/A N/A readme write N/A N/A # Corner: x={0} y={1}
 format N/A N/A args col 256 N/A N/A args row 256 N/A N/A N/A readme write N/A N/A # Size: dx={0} dy={1}
 format N/A N/A args cols 256 N/A N/A args rows 256 N/A N/A N/A readme write N/A N/A # Slices: {0}-{1}
 format N/A args slice N/A N/A N/A args slice N/A args slices 1 N/A N/A N/A readme write N/A N/A # Increment: {0}
 format N/A args increment N/A N/A N/A readme close N/A slice N/A xrange N/A args slice N/A N/A args slice N/A args slices N/A args increment N/A N/A N/A args useclosest N/A N/A slicefound False N/A delta N/A xrange 0 N/A args increment N/A N/A N/A N/A data doesSliceExist N/A slice delta N/A N/A slicefound True N/A slice N/A slice delta N/A N/A N/A slicefound N/A N/A N/A N/A N/A N/A N/A data doesSliceExist slice N/A N/A N/A img N/A N/A Image new L N/A N/A 256 N/A args cols N/A 256 N/A args rows N/A N/A N/A col N/A xrange N/A args cols N/A N/A row N/A xrange N/A args rows N/A N/A t N/A N/A data getImage N/A args scale slice N/A N/A args row row N/A N/A args col col N/A N/A N/A img paste t N/A N/A 256 col N/A 256 row N/A N/A N/A N/A N/A N/A args crop N/A N/A img N/A N/A img crop N/A tuple N/A args crop N/A outfile N/A N/A {0}/{1}.png format N/A args outdir slice N/A outfile N/A N/A N/A img save outfile format PNG optimize 1 N/A N/A N/A __name__ __main__ N/A N/A N/A main