![]() # Prepare map tiles for different zoom levels: writeto( 'other_match.fits', clobber = True) swarpImage( other_image '' %( other_ext), mode = swarpmode) # Refine center position from SWarp's own output swarpImage( reference_image '' %( reference_ext), mode = 'wait') swarpMatchImage( reference_image, extension = reference_ext) # Swarp the `other_image` to the `reference_image` pixels LinearRGB( subs, subs, subs, shape = None, filename = outfile)ĭef makeOtherTiles( reference_image = 'ib6o23020_drz.fits', LuptonRGB( subs * zmax, subs * zmax, subs * zmax, Q = rgb_params, alpha = rgb_params, m0 = rgb_params, m1 = 1, shape = None, filename = outfile, ds9 = None, verbose = False, rgb_clip = rgb_clip) Subim = data2image( sub, zmin = zmin, zmax = zmax) Outfile = outPath '%s_%d_%d_%d.png' %( tileroot, Sub = full_images[ fully -( j 1) * TILE_SIZE: fully - j * TILE_SIZE, # print pixRatio, dx/xsize, fullx/256., fully/256. #data_copy.resize((int(ysize*pixRatio),int(xsize*pixRatio))) #print, , padL, padR, padT, padB, xsize, ysize, dx, dy # below works empirically for my test case, but not sure why.ĭd = ( padL - padR) / 2 padR = dd padL -= dd # Need to shift the image padding for the #padL = (np.ceil(pixSW.tilex)-pixSW.tilex)*TILE_SIZE CalculateBoundsZoomLevel( bounds, view_size) LlCenter = lng_offset - llCenterĬdelt = np. #makeMapHTML(llSW,llNE,lng_offset=lng_offset) showMessage( "`fitsfile` must be either a single image filename or a comma-separated list of 3 images for RGB", warn = True) Images (R,G,B) that will be used to generate a 3-color image. "fitsfile" can be a single FITS image or a comma-separated list of three North-up, East-left, like normal Multidrizzle output. Make Google map tiles for an input FITS image, which is assumed to be ![]() MakeGMapTiles(fitsfile=None,outPath=None,tileroot='direct', extension=1, ![]() MAP_KEY = 'ABQIAAAA1XbMiDxx_BTCY2_FkPh06RR20YmIEbERyaW5EQEiVNF0mpNGfBSRb' \ĭef makeGMapTiles( fitsfile = None, outPath = None, tileroot = 'direct', extension = 1, # This is the Maps API key for running on localhost:8080 ![]() # Specifies the size of the map (in pixels). Convert Multidrizzle drz.fits (North up) to Google Maps tiles ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |