This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -rupN hdf5-1.8.5-patch1_original/fortran/test/tH5A_1_8.f90 hdf5-1.8.5-patch1/fortran/test/tH5A_1_8.f90 | |
| --- hdf5-1.8.5-patch1_original/fortran/test/tH5A_1_8.f90 2010-08-26 16:21:54.000000000 +0200 | |
| +++ hdf5-1.8.5-patch1/fortran/test/tH5A_1_8.f90 2010-12-29 18:09:41.000000000 +0100 | |
| @@ -158,13 +158,13 @@ SUBROUTINE attribute_test_1_8(cleanup, t | |
| !!$ CALL test_attr_corder_transition(my_fcpl, my_fapl) | |
| !!$ CALL test_attr_corder_delete(my_fcpl, my_fapl) | |
| ret_total_error = 0 | |
| - CALL test_attr_info_by_idx(new_format, my_fcpl, my_fapl, ret_total_error) | |
| + CALL test_attr_info_by_idx(new_format(i), my_fcpl, my_fapl, ret_total_error) | |
| CALL write_test_status(ret_total_error, & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create an ATpy table in IRAF hselect style | |
| # Example: | |
| # | |
| # >>> files = glob.glob(os.path.join('.', '*.fits')) | |
| # >>> t = hselect(files) | |
| import glob | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import urllib | |
| import urllib2 | |
| from xml.etree.ElementTree import ElementTree | |
| mission = 'GLIMPSE' | |
| base_url = 'http://irsa.ipac.caltech.edu/cgi-bin/Cutouts/nph-cutouts' | |
| options = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Object-oriented API | |
| # | |
| # Memory usage (iteration, object count, memory size) | |
| # 100 5637 1562216 | |
| # 200 5529 1491528 | |
| # 300 5422 1426264 | |
| # 400 5758 1587376 | |
| # 500 5422 1426288 | |
| # 600 5416 1440456 | |
| # 700 5610 1515056 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <CCfits> | |
| int main() | |
| { | |
| CCfits::FITS::setVerboseMode(true); | |
| try | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from scipy.weave import converters | |
| import scipy.weave as weave | |
| import numpy as np | |
| def convolve(image, kernel): | |
| image = image.astype(float) | |
| kernel = kernel.astype(float) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Convert 2MASS ATLAS images into MJy/sr, and subtract background value | |
| # estimated by 2MASS pipeline. | |
| # | |
| # Example: | |
| # | |
| # >>> atlas_to_MJysr('glimpse_k_test.fits', 'glimpse_k_cal.fits') | |
| # | |
| import pyfits | |
| import pywcs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Simple command-line IRAF-style hselect. To use: | |
| # | |
| # $ hselect CDELT1 *.fits | |
| import sys | |
| import pyfits | |
| keyword = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sampy import * | |
| import time | |
| import urllib | |
| myhub = SAMPHubProxy() | |
| myhub.connect() | |
| client = SAMPClient(myhub) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sampy import * | |
| import time | |
| import urllib | |
| myhub=SAMPHubProxy() | |
| myhub.connect() | |
| client=SAMPClient(myhub) |