@@ -0,0 +1,1442 @@
+def instrument_FOV(FOV_size):%0A    %0A    %22%22%22%0A%0A    Modify the file output of Instrument Footprint Editor%0A    provided by Aladin with a user FOV size.%0A%0A        http://aladin.u-strasbg.fr/footprint_editor/#%0A    %0A    %22%22%22%0A%0A%0A    from send_Aladin_image import send_Aladin_image%0A    %0A    import warnings%0A    %0A    # ignore all warnings from Astropy%0A    from astropy.utils.exceptions import AstropyWarning%0A%0A    warnings.simplefilter('ignore', category=AstropyWarning)%0A%0A    %0A    from astropy.io.votable import parse%0A    %0A    # download an Aladin Instrument Footprint file from GitHub%0A    # or making it from http://aladin.u-strasbg.fr/footprint_editor/#%0A    %0A    # Reading the Instrument Footprint file template%0A    votable = parse(%22footprint_GWsky2.vot%22)%0A%0A    # get table in the file (FOV size)%0A    table = votable.get_first_table()%0A%0A    %0A    # get the data in the array member variable:%0A    data = table.array%0A%0A    # Convert FOV size degree to arcsecond%0A%0A    FOV_size_arcsec = FOV_size*3600%0A%0A    %0A    # user FOV size%0A    data%5B0%5D = - FOV_size_arcsec /  2.0,   FOV_size_arcsec / 2.0%0A    data%5B1%5D =   FOV_size_arcsec /  2.0,   FOV_size_arcsec / 2.0%0A    data%5B2%5D =   FOV_size_arcsec /  2.0, - FOV_size_arcsec / 2.0%0A    data%5B3%5D = - FOV_size_arcsec /  2.0, - FOV_size_arcsec / 2.0%0A%0A    # outputting a VOTable file%0A    votable.to_xml('instrument_FOV.vot')%0A    %0A    # send to aladin the instrument_FOV.vot%0A    send_Aladin_image('instrument_FOV.vot')%0A%0A    %0A%0A     %0A

Create instrument_FOV.py