diff --git a/notebooks/write_UvvisIsisLabelNaifSpiceDriver.ipynb b/notebooks/write_UvvisIsisLabelNaifSpiceDriver.ipynb new file mode 100644 index 000000000..411be7e0f --- /dev/null +++ b/notebooks/write_UvvisIsisLabelNaifSpiceDriver.ipynb @@ -0,0 +1,117 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "318dcdae", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "accb1a2f", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import spiceypy as spice\n", + "import json\n", + "import numpy as np\n", + "import pvl\n", + "\n", + "import ale\n", + "from ale.base import Driver\n", + "from ale.base.label_isis import IsisLabel\n", + "from ale.base.data_naif import NaifSpice\n", + "from ale.base.type_distortion import RadialDistortion, NoDistortion\n", + "from ale.base.type_sensor import Framer, LineScanner\n", + "from ale.drivers.clementine_drivers import ClementineUvvisIsisLabelNaifSpiceDriver\n", + "from ale.util import generate_kernels_from_cube\n", + "from ale.base.type_sensor import Framer\n", + "from ale.base.type_distortion import NoDistortion\n", + "\n", + "from ale import util\n", + "from ale.util import generate_kernels_from_cube\n", + "from ale.formatters.formatter import to_isd" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0d88ed00", + "metadata": {}, + "outputs": [], + "source": [ + "os.environ[\"ISISDATA\"] = \"\"\n", + "os.environ[\"ISISTESTDATA\"] = \"\"\n", + "os.environ[\"ISISROOT\"] = \"\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4e3f8e49", + "metadata": {}, + "outputs": [], + "source": [ + "!spiceinit from=LUA3107H.161.clem.cub" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "94fe9e7b", + "metadata": {}, + "outputs": [], + "source": [ + "import pprint\n", + "\n", + "ale_file = \"LUA3107H.161.clem.cub\"\n", + "\n", + "with ClementineUvvisIsisLabelNaifSpiceDriver(ale_file, props = {\"kernels\" : kernels}) as driver: \n", + " ale_isd = to_isd(driver)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "aa530588", + "metadata": {}, + "outputs": [], + "source": [ + "pprint.pprint(ale_isd)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f53f8dce-c5a4-49fa-baf3-0fe472f46bdc", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.16" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.conf b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.conf new file mode 100644 index 000000000..e0cf1fbf3 --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.conf @@ -0,0 +1,9 @@ +LEAPSECONDS_KERNEL = /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls +SPK_KERNEL = uvvis/LUA3107H.161.clem_0.bsp + BODIES = 0, 3, 10, 301, -40 + BEGIN_TIME = 1994 MAR 25 15:03:56.564 + END_TIME = 1994 MAR 25 15:07:57.205 + SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/base/kernels/spk/de430.bsp + INCLUDE_COMMENTS = no + SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp + INCLUDE_COMMENTS = no diff --git a/tests/pytests/data/LUD3125I.161/6.clem_0.xsp b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.xsp similarity index 88% rename from tests/pytests/data/LUD3125I.161/6.clem_0.xsp rename to tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.xsp index df3ccb563..0096699a1 100644 --- a/tests/pytests/data/LUD3125I.161/6.clem_0.xsp +++ b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_0.xsp @@ -3,156 +3,10 @@ DAFETF NAIF DAF ENCODED TRANSFER FILE '2' '6' 'SPKMERGE ' -BEGIN_ARRAY 1 136 -'Segment 5 ' -'-ADAEE9A58AB498^7' -'-ADAEDA9B4D43F^7' -'-28' -'12D' -'1' -'8' -136 -'636C32019320C4^3' -'2B69BB4FE39264^3' -'-54461DBB0B4124^3' -'11DDDB18A72A16^1' -'-7DB19971A6B0C8^0' -'13D65C63DC89BA^1' -'64CF2A2865CFF4^3' -'2ACB978088734E^3' -'-52B76305CA0CFC^3' -'11A130BFCE8CDF^1' -'-7F53B270B737B^0' -'1408FA06926EC6^1' -'662D5AED19073^3' -'2A2B6C1B8A7CC4^3' -'-5124BC12EC5A98^3' -'1163853F7036B2^1' -'-80F0E7494C2B78^0' -'143AC7EF4A019^1' -'6786B0678455BC^3' -'29893F5BE6285A^3' -'-4F8E395995666C^3' -'1124DD5539BEC8^1' -'-8289085785321^0' -'146BC0115EA64E^1' -'68DB1710C7C1AC^3' -'28E517B7D1EFBC^3' -'-4DF3EBC8DC0298^3' -'10E53DFB445A83^1' -'-841BE6A21CCC6^0' -'149BDC7FA4ED0F^1' -'6A2A7BC7DD72C8^3' -'283EFBDFC1E454^3' -'-4C55E4C502DE1^3' -'10A4AC66B13357^1' -'-85A953ECCC8B88^0' -'14CB176ED184A6^1' -'6B74CBD62BF604^3' -'2796F2BD60646C^3' -'-4AB4362498423C^3' -'10632E0661FD53^1' -'-873122C9F14EF^0' -'14F96B37C6BCCE^1' -'6CB9F4F3E07E04^3' -'26ED0372B0207C^3' -'-490EF22DF7A274^3' -'1020C8817864E1^1' -'-88B326AB590C5^0' -'1526D259BC3BB7^1' -'6DF9E54C842108^3' -'26413558CDE39A^3' -'-47662B93EEEC2^3' -'FDD81B5D383BB^0' -'-8A2F33F3F71DA^0' -'1553477C85F448^1' -'6F348B82F04288^3' -'25938FFEA9B1A4^3' -'-45B9F57263D01^3' -'F995FB665E6038^0' -'-8BA52007C4DF2^0' -'157EC57296507B^1' -'7069D6B576CB48^3' -'24E41B27E4053C^3' -'-440A634B4262D4^3' -'F5468C975474^0' -'-8D14C15CEBD408^0' -'15A9473B2C65C1^1' -'7199B681F4F448^3' -'2432DECB467BD6^3' -'-425789028F7A4^3' -'F0EA366BB9DD5^0' -'-8E7DEF8AE07D6^0' -'15D2C804374AB1^1' -'72C41B095DA45C^3' -'237FE311619568^3' -'-40A17ADADCCD94^3' -'EC8163566D01F^0' -'-8FE0835B845048^0' -'15FB432C7E8D1C^1' -'73E8F4F3B1676^3' -'22CB30530458F^3' -'-3EE84D715B220C^3' -'E80C809F6131B^0' -'-913C56D9318BE8^0' -'1622B4455A0AC3^1' -'750835731FF208^3' -'2214CF17A8A4E4^3' -'-3D2C15B9EC53F6^3' -'E38BFE3F31438^0' -'-9291455EAC00B^0' -'16491714A868DB^1' -'7621CE472B6FFC^3' -'215CC813BE8526^3' -'-3B6CE8FAEBED6A^3' -'DF004EB8B83D98^0' -'-93DF2BA4BB829^0' -'166E67966D9E91^1' -'7735B1C06F9D94^3' -'20A32426C98144^3' -'-39AADCC87D3B9E^3' -'DA69E6F074B99^0' -'-9525E7D04D4628^0' -'1692A1FE7DA3F6^1' -'7843D2C2B4D788^3' -'1FE7EC59EAD758^3' -'-37E60700FF0D04^3' -'D5C93E0291515^0' -'-9665597E97EAF8^0' -'16B5C2B9DB883^1' -'794C24C81AC06C^3' -'1F2B29DDA5844E^3' -'-361E7DC7A730FE^3' -'D11ECD17555188^0' -'-979D61D139CA18^0' -'16D7C67011C636^1' -'7A4E9BE3498508^3' -'1E6CE6082B3E1A^3' -'-345457806AAF16^3' -'CC6B0F369AB72^0' -'-98CDE379BB6BA^0' -'16F8AA0471372D^1' -'7B4B2CC1F8C2E8^3' -'1DAD2A534D9601^3' -'-3287AACB114138^3' -'C7AE8119EF1FE8^0' -'-99F6C2C2B6B618^0' -'17186A96F7FABC^1' -'7C41CCAE83F188^3' -'1CEC005A7918EC^3' -'-30B88E7E7C37EC^3' -'C2E9A0FEA8CBE8^0' -'-9B17E599B814^0' -'17370585514F7F^1' -'-ADAEEF3D07A56^7' -'14^2' -'9^1' -'16^2' -END_ARRAY 1 136 -BEGIN_ARRAY 2 45 +BEGIN_ARRAY 1 45 'DE-0430LE-0430 ' -'-ADAEE9A58AB498^7' -'-ADAEDA9B4D43F^7' +'-ADAEEA74017D5^7' +'-ADAEDB69BFF418^7' '12D' '3' '1' @@ -203,11 +57,11 @@ BEGIN_ARRAY 2 45 '546^5' '29^2' '1^1' -END_ARRAY 2 45 -BEGIN_ARRAY 3 39 +END_ARRAY 1 45 +BEGIN_ARRAY 2 39 'DE-0430LE-0430 ' -'-ADAEE9A58AB498^7' -'-ADAEDA9B4D43F^7' +'-ADAEEA74017D5^7' +'-ADAEDB69BFF418^7' 'A' '0' '1' @@ -252,11 +106,11 @@ BEGIN_ARRAY 3 39 '1518^6' '23^2' '1^1' -END_ARRAY 3 39 -BEGIN_ARRAY 4 45 +END_ARRAY 2 39 +BEGIN_ARRAY 3 45 'DE-0430LE-0430 ' -'-ADAEE9A58AB498^7' -'-ADAEDA9B4D43F^7' +'-ADAEEA74017D5^7' +'-ADAEDB69BFF418^7' '3' '0' '1' @@ -307,28 +161,174 @@ BEGIN_ARRAY 4 45 '1518^6' '29^2' '1^1' -END_ARRAY 4 45 +END_ARRAY 3 45 +BEGIN_ARRAY 4 136 +'Segment 5 ' +'-ADAEEA74017D5^7' +'-ADAEDB69BFF418^7' +'-28' +'12D' +'1' +'8' +136 +'620486BCFE5CBC^3' +'2C05D18A818902^3' +'-55D0DC359CADC4^3' +'12197FC9A6FE67^1' +'-7C0ACC88787A7C^0' +'13A2F530D87882^1' +'636C32019320C4^3' +'2B69BB4FE39264^3' +'-54461DBB0B4124^3' +'11DDDB18A72A16^1' +'-7DB19971A6B0C8^0' +'13D65C63DC89BA^1' +'64CF2A2865CFF4^3' +'2ACB978088734E^3' +'-52B76305CA0CFC^3' +'11A130BFCE8CDF^1' +'-7F53B270B737B^0' +'1408FA06926EC6^1' +'662D5AED19073^3' +'2A2B6C1B8A7CC4^3' +'-5124BC12EC5A98^3' +'1163853F7036B2^1' +'-80F0E7494C2B78^0' +'143AC7EF4A019^1' +'6786B0678455BC^3' +'29893F5BE6285A^3' +'-4F8E395995666C^3' +'1124DD5539BEC8^1' +'-8289085785321^0' +'146BC0115EA64E^1' +'68DB1710C7C1AC^3' +'28E517B7D1EFBC^3' +'-4DF3EBC8DC0298^3' +'10E53DFB445A83^1' +'-841BE6A21CCC6^0' +'149BDC7FA4ED0F^1' +'6A2A7BC7DD72C8^3' +'283EFBDFC1E454^3' +'-4C55E4C502DE1^3' +'10A4AC66B13357^1' +'-85A953ECCC8B88^0' +'14CB176ED184A6^1' +'6B74CBD62BF604^3' +'2796F2BD60646C^3' +'-4AB4362498423C^3' +'10632E0661FD53^1' +'-873122C9F14EF^0' +'14F96B37C6BCCE^1' +'6CB9F4F3E07E04^3' +'26ED0372B0207C^3' +'-490EF22DF7A274^3' +'1020C8817864E1^1' +'-88B326AB590C5^0' +'1526D259BC3BB7^1' +'6DF9E54C842108^3' +'26413558CDE39A^3' +'-47662B93EEEC2^3' +'FDD81B5D383BB^0' +'-8A2F33F3F71DA^0' +'1553477C85F448^1' +'6F348B82F04288^3' +'25938FFEA9B1A4^3' +'-45B9F57263D01^3' +'F995FB665E6038^0' +'-8BA52007C4DF2^0' +'157EC57296507B^1' +'7069D6B576CB48^3' +'24E41B27E4053C^3' +'-440A634B4262D4^3' +'F5468C975474^0' +'-8D14C15CEBD408^0' +'15A9473B2C65C1^1' +'7199B681F4F448^3' +'2432DECB467BD6^3' +'-425789028F7A4^3' +'F0EA366BB9DD5^0' +'-8E7DEF8AE07D6^0' +'15D2C804374AB1^1' +'72C41B095DA45C^3' +'237FE311619568^3' +'-40A17ADADCCD94^3' +'EC8163566D01F^0' +'-8FE0835B845048^0' +'15FB432C7E8D1C^1' +'73E8F4F3B1676^3' +'22CB30530458F^3' +'-3EE84D715B220C^3' +'E80C809F6131B^0' +'-913C56D9318BE8^0' +'1622B4455A0AC3^1' +'750835731FF208^3' +'2214CF17A8A4E4^3' +'-3D2C15B9EC53F6^3' +'E38BFE3F31438^0' +'-9291455EAC00B^0' +'16491714A868DB^1' +'7621CE472B6FFC^3' +'215CC813BE8526^3' +'-3B6CE8FAEBED6A^3' +'DF004EB8B83D98^0' +'-93DF2BA4BB829^0' +'166E67966D9E91^1' +'7735B1C06F9D94^3' +'20A32426C98144^3' +'-39AADCC87D3B9E^3' +'DA69E6F074B99^0' +'-9525E7D04D4628^0' +'1692A1FE7DA3F6^1' +'7843D2C2B4D788^3' +'1FE7EC59EAD758^3' +'-37E60700FF0D04^3' +'D5C93E0291515^0' +'-9665597E97EAF8^0' +'16B5C2B9DB883^1' +'794C24C81AC06C^3' +'1F2B29DDA5844E^3' +'-361E7DC7A730FE^3' +'D11ECD17555188^0' +'-979D61D139CA18^0' +'16D7C67011C636^1' +'7A4E9BE3498508^3' +'1E6CE6082B3E1A^3' +'-345457806AAF16^3' +'CC6B0F369AB72^0' +'-98CDE379BB6BA^0' +'16F8AA0471372D^1' +'7B4B2CC1F8C2E8^3' +'1DAD2A534D9601^3' +'-3287AACB114138^3' +'C7AE8119EF1FE8^0' +'-99F6C2C2B6B618^0' +'17186A96F7FABC^1' +'-ADAEF07D07A56^7' +'14^2' +'9^1' +'16^2' +END_ARRAY 4 136 TOTAL_ARRAYS 4 ~NAIF/SPC BEGIN COMMENTS~ -; uvvis/6.clem_0.bsp LOG FILE +; uvvis/LUA3107H.161.clem_0.bsp LOG FILE -; Created 2023-06-06/12:58:32.00. +; Created 2023-07-28/10:00:46.00. ; ; BEGIN SPKMERGE COMMANDS LEAPSECONDS_KERNEL = /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls -SPK_KERNEL = uvvis/6.clem_0.bsp -SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp - INCLUDE_COMMENTS = NO - BODIES = -40 - BEGIN_TIME = 1994 MAR 25 15:04:09.468 - END_TIME = 1994 MAR 25 15:08:10.108 +SPK_KERNEL = uvvis/LUA3107H.161.clem_0.bsp SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/base/kernels/spk/de430.bsp INCLUDE_COMMENTS = NO BODIES = 3, 10, 301 - BEGIN_TIME = 1994 MAR 25 15:04:09.468 - END_TIME = 1994 MAR 25 15:08:10.108 + BEGIN_TIME = 1994 MAR 25 15:03:56.564 + END_TIME = 1994 MAR 25 15:07:57.205 +SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp + INCLUDE_COMMENTS = NO + BODIES = -40 + BEGIN_TIME = 1994 MAR 25 15:03:56.564 + END_TIME = 1994 MAR 25 15:07:57.205 ; END SPKMERGE COMMANDS ~NAIF/SPC END COMMENTS~ diff --git a/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.conf b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.conf new file mode 100644 index 000000000..9b3141eb3 --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.conf @@ -0,0 +1,9 @@ +LEAPSECONDS_KERNEL = /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls +SPK_KERNEL = uvvis/LUA3107H.161.clem_1.bsp + BODIES = 0, 3, 10, 301, -40 + BEGIN_TIME = 1994 MAR 25 15:12:15.347 + END_TIME = 1994 MAR 25 15:16:15.356 + SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/base/kernels/spk/de430.bsp + INCLUDE_COMMENTS = no + SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp + INCLUDE_COMMENTS = no diff --git a/tests/pytests/data/LUD3125I.161/6.clem_1.xsp b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.xsp similarity index 88% rename from tests/pytests/data/LUD3125I.161/6.clem_1.xsp rename to tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.xsp index 6fcbce848..7beba1b8b 100644 --- a/tests/pytests/data/LUD3125I.161/6.clem_1.xsp +++ b/tests/pytests/data/LUA3107H.161/LUA3107H.161.clem_1.xsp @@ -3,156 +3,10 @@ DAFETF NAIF DAF ENCODED TRANSFER FILE '2' '6' 'SPKMERGE ' -BEGIN_ARRAY 1 136 -'Segment 5 ' -'-ADAECA79038998^7' -'-ADAEBB78E2C4F^7' -'-28' -'12D' -'1' -'8' -136 -'7FE0228C78956C^3' -'19D9CE1826BEE5^3' -'-296590A53FE324^3' -'AF8CF40C28E938^0' -'-9F4D460557866^0' -'17A5CCBADF8477^1' -'80B882FD4D73F8^3' -'191210ED0822AE^3' -'-278BA32E394E56^3' -'AAA60790F74D88^0' -'-A0466EDB96958^0' -'17BE8C8CDADABA^1' -'818ABF6C671938^3' -'1849216E6FCB08^3' -'-25AFD29BAEC9D4^3' -'A5B9D3E28EC7E^0' -'-A13762B787E2E8^0' -'17D61C1C854544^1' -'8256D192EA1CA^3' -'177F09E77A4D78^3' -'-23D236BC2E17C8^3' -'A0C8DC9609D508^0' -'-A22013ABA302C^0' -'17EC7A84C51877^1' -'831CB3CE7DC7D^3' -'16B3D4B38DEDEE^3' -'-21F2E76DA86F4C^3' -'9BD3A53FAFD3A8^0' -'-A3007593A0271^0' -'1801A720582BD^1' -'83DC61216AC3C8^3' -'15E78C3C253953^3' -'-2011FC987F6E1E^3' -'96DAB14288E19^0' -'-A3D87E13DCF0B^0' -'1815A1895BEAE6^1' -'8495D531ADB13^3' -'151A3AF68BE328^3' -'-1E2F8E2A949BE5^3' -'91DE83A0CE4CE8^0' -'-A4A82497FD7E2^0' -'18286998BC6B7F^1' -'85490C48DFB6A^3' -'144BEB61AFF764^3' -'-1C4BB4126C912B^3' -'8CDF9ECD4138B^0' -'-A56F624FE40978^0' -'1839FF656B4A51^1' -'85F6035312F438^3' -'137CA803E59A4F^3' -'-1A66863A5490B5^3' -'87DE847E295348^0' -'-A62E322D10957^0' -'184A6343A991B1^1' -'869CB7DE193E08^3' -'12AC7B68C2039^3' -'-18801C83AF5FCC^3' -'82DBB5817B3528^0' -'-A6E490DCB6B5C^0' -'185995C3E12DA5^1' -'873D281829FEF^3' -'11DB701EEDFBF2^3' -'-16988EC2420529^3' -'7DD7B192ADFEA8^0' -'-A7927CC2BF2FD^0' -'186797B1A44F03^1' -'87D752CE01339^3' -'110990B6016A78^3' -'-14AFF4B7A551A^3' -'78D2F731C75FD^0' -'-A837F5F28FB75^0' -'18746A1261E957^1' -'886B376A3F5DC^3' -'1036E7BC7CDC9D^3' -'-12C6660ED2256F^3' -'73CE037C3D0094^0' -'-A8D4FE291CAF3^0' -'18800E244C7E39^1' -'88F8D5F260ED38^3' -'F637FBDA2754D^2' -'-10DBFA57B04414^3' -'6EC952074161F4^0' -'-A96998C3062D6^0' -'188A855CB702D3^1' -'89802F05B13C88^3' -'E8F633F89CB51^2' -'-EF0C902E979DD8^2' -'69C55CBBD4CB3^0' -'-A9F5CAB5204D78^0' -'1893D166C93034^1' -'8A0143DAAB90C8^3' -'DBA9CC11CA6F58^2' -'-D04E95DBA65BA^2' -'64C29BB47FB528^0' -'-AA799A82524DF8^0' -'189BF421D545BB^1' -'8A7C163CAB6F28^3' -'CE536B82BE7D78^2' -'-B18728DEF55AC8^2' -'5FC1851D176D88^0' -'-AAF51031CB9A3^0' -'18A2EF9FB9A7AA^1' -'8AF0A8899C306^3' -'C0F3B8F927701^2' -'-92B7B8E0110F1^2' -'5AC28D148364D^0' -'-AB683544DFA188^0' -'18A8C623352435^1' -'8B5EFDAF06BF78^3' -'B38B5A561F775^2' -'-73E1B295B5BE64^2' -'55C625900B5664^0' -'-ABD314ABD4D5B^0' -'18AD7A1E14F4B9^1' -'8BC71927A4AC48^3' -'A61AF49238D36^2' -'-55067F8C15219C^2' -'50CCBE414B972C^0' -'-AC35BABB2B0A1^0' -'18B10E2F74F72D^1' -'8C28FEF851DA88^3' -'98A32BA1A46448^2' -'-362785ECA86FBA^2' -'4BD6C47D4148C^0' -'-AC90351FA09178^0' -'18B38521D3BFBB^1' -'8C84B3AD1779A8^3' -'8B24A25A302C28^2' -'-17462849F73848^2' -'46E4A325B3D238^0' -'-ACE292D2FC3B6^0' -'18B4E1E945E489^1' -'-ADAECFFD07A56^7' -'14^2' -'9^1' -'16^2' -END_ARRAY 1 136 -BEGIN_ARRAY 2 45 +BEGIN_ARRAY 1 45 'DE-0430LE-0430 ' -'-ADAECA79038998^7' -'-ADAEBB78E2C4F^7' +'-ADAECB477A5248^7' +'-ADAEBC4755751^7' '12D' '3' '1' @@ -203,11 +57,11 @@ BEGIN_ARRAY 2 45 '546^5' '29^2' '1^1' -END_ARRAY 2 45 -BEGIN_ARRAY 3 39 +END_ARRAY 1 45 +BEGIN_ARRAY 2 39 'DE-0430LE-0430 ' -'-ADAECA79038998^7' -'-ADAEBB78E2C4F^7' +'-ADAECB477A5248^7' +'-ADAEBC4755751^7' 'A' '0' '1' @@ -252,11 +106,11 @@ BEGIN_ARRAY 3 39 '1518^6' '23^2' '1^1' -END_ARRAY 3 39 -BEGIN_ARRAY 4 45 +END_ARRAY 2 39 +BEGIN_ARRAY 3 45 'DE-0430LE-0430 ' -'-ADAECA79038998^7' -'-ADAEBB78E2C4F^7' +'-ADAECB477A5248^7' +'-ADAEBC4755751^7' '3' '0' '1' @@ -307,28 +161,174 @@ BEGIN_ARRAY 4 45 '1518^6' '29^2' '1^1' -END_ARRAY 4 45 +END_ARRAY 3 45 +BEGIN_ARRAY 4 136 +'Segment 5 ' +'-ADAECB477A5248^7' +'-ADAEBC4755751^7' +'-28' +'12D' +'1' +'8' +136 +'7F01A504F1E17^3' +'1AA04EB733019A^3' +'-2B3D83469C63E8^3' +'B46E15EF93703^0' +'-9E4BF7EA86E0D^0' +'178BDDCBC4184C^1' +'7FE0228C78956C^3' +'19D9CE1826BEE5^3' +'-296590A53FE324^3' +'AF8CF40C28E938^0' +'-9F4D460557866^0' +'17A5CCBADF8477^1' +'80B882FD4D73F8^3' +'191210ED0822AE^3' +'-278BA32E394E56^3' +'AAA60790F74D88^0' +'-A0466EDB96958^0' +'17BE8C8CDADABA^1' +'818ABF6C671938^3' +'1849216E6FCB08^3' +'-25AFD29BAEC9D4^3' +'A5B9D3E28EC7E^0' +'-A13762B787E2E8^0' +'17D61C1C854544^1' +'8256D192EA1CA^3' +'177F09E77A4D78^3' +'-23D236BC2E17C8^3' +'A0C8DC9609D508^0' +'-A22013ABA302C^0' +'17EC7A84C51877^1' +'831CB3CE7DC7D^3' +'16B3D4B38DEDEE^3' +'-21F2E76DA86F4C^3' +'9BD3A53FAFD3A8^0' +'-A3007593A0271^0' +'1801A720582BD^1' +'83DC61216AC3C8^3' +'15E78C3C253953^3' +'-2011FC987F6E1E^3' +'96DAB14288E19^0' +'-A3D87E13DCF0B^0' +'1815A1895BEAE6^1' +'8495D531ADB13^3' +'151A3AF68BE328^3' +'-1E2F8E2A949BE5^3' +'91DE83A0CE4CE8^0' +'-A4A82497FD7E2^0' +'18286998BC6B7F^1' +'85490C48DFB6A^3' +'144BEB61AFF764^3' +'-1C4BB4126C912B^3' +'8CDF9ECD4138B^0' +'-A56F624FE40978^0' +'1839FF656B4A51^1' +'85F6035312F438^3' +'137CA803E59A4F^3' +'-1A66863A5490B5^3' +'87DE847E295348^0' +'-A62E322D10957^0' +'184A6343A991B1^1' +'869CB7DE193E08^3' +'12AC7B68C2039^3' +'-18801C83AF5FCC^3' +'82DBB5817B3528^0' +'-A6E490DCB6B5C^0' +'185995C3E12DA5^1' +'873D281829FEF^3' +'11DB701EEDFBF2^3' +'-16988EC2420529^3' +'7DD7B192ADFEA8^0' +'-A7927CC2BF2FD^0' +'186797B1A44F03^1' +'87D752CE01339^3' +'110990B6016A78^3' +'-14AFF4B7A551A^3' +'78D2F731C75FD^0' +'-A837F5F28FB75^0' +'18746A1261E957^1' +'886B376A3F5DC^3' +'1036E7BC7CDC9D^3' +'-12C6660ED2256F^3' +'73CE037C3D0094^0' +'-A8D4FE291CAF3^0' +'18800E244C7E39^1' +'88F8D5F260ED38^3' +'F637FBDA2754D^2' +'-10DBFA57B04414^3' +'6EC952074161F4^0' +'-A96998C3062D6^0' +'188A855CB702D3^1' +'89802F05B13C88^3' +'E8F633F89CB51^2' +'-EF0C902E979DD8^2' +'69C55CBBD4CB3^0' +'-A9F5CAB5204D78^0' +'1893D166C93034^1' +'8A0143DAAB90C8^3' +'DBA9CC11CA6F58^2' +'-D04E95DBA65BA^2' +'64C29BB47FB528^0' +'-AA799A82524DF8^0' +'189BF421D545BB^1' +'8A7C163CAB6F28^3' +'CE536B82BE7D78^2' +'-B18728DEF55AC8^2' +'5FC1851D176D88^0' +'-AAF51031CB9A3^0' +'18A2EF9FB9A7AA^1' +'8AF0A8899C306^3' +'C0F3B8F927701^2' +'-92B7B8E0110F1^2' +'5AC28D148364D^0' +'-AB683544DFA188^0' +'18A8C623352435^1' +'8B5EFDAF06BF78^3' +'B38B5A561F775^2' +'-73E1B295B5BE64^2' +'55C625900B5664^0' +'-ABD314ABD4D5B^0' +'18AD7A1E14F4B9^1' +'8BC71927A4AC48^3' +'A61AF49238D36^2' +'-55067F8C15219C^2' +'50CCBE414B972C^0' +'-AC35BABB2B0A1^0' +'18B10E2F74F72D^1' +'8C28FEF851DA88^3' +'98A32BA1A46448^2' +'-362785ECA86FBA^2' +'4BD6C47D4148C^0' +'-AC90351FA09178^0' +'18B38521D3BFBB^1' +'-ADAED13D07A56^7' +'14^2' +'9^1' +'16^2' +END_ARRAY 4 136 TOTAL_ARRAYS 4 ~NAIF/SPC BEGIN COMMENTS~ -; uvvis/6.clem_1.bsp LOG FILE +; uvvis/LUA3107H.161.clem_1.bsp LOG FILE -; Created 2023-06-06/12:58:32.00. +; Created 2023-07-28/10:00:47.00. ; ; BEGIN SPKMERGE COMMANDS LEAPSECONDS_KERNEL = /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls -SPK_KERNEL = uvvis/6.clem_1.bsp -SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp - INCLUDE_COMMENTS = NO - BODIES = -40 - BEGIN_TIME = 1994 MAR 25 15:12:28.251 - END_TIME = 1994 MAR 25 15:16:28.259 +SPK_KERNEL = uvvis/LUA3107H.161.clem_1.bsp SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/base/kernels/spk/de430.bsp INCLUDE_COMMENTS = NO BODIES = 3, 10, 301 - BEGIN_TIME = 1994 MAR 25 15:12:28.251 - END_TIME = 1994 MAR 25 15:16:28.259 + BEGIN_TIME = 1994 MAR 25 15:12:15.347 + END_TIME = 1994 MAR 25 15:16:15.356 +SOURCE_SPK_KERNEL = /Users/ahibl/astro_efs/Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEMV001b.bsp + INCLUDE_COMMENTS = NO + BODIES = -40 + BEGIN_TIME = 1994 MAR 25 15:12:15.347 + END_TIME = 1994 MAR 25 15:16:15.356 ; END SPKMERGE COMMANDS ~NAIF/SPC END COMMENTS~ diff --git a/tests/pytests/data/LUD3125I.161/LUD3125I.161_isis3.lbl b/tests/pytests/data/LUA3107H.161/LUA3107H.161_isis3.lbl similarity index 72% rename from tests/pytests/data/LUD3125I.161/LUD3125I.161_isis3.lbl rename to tests/pytests/data/LUA3107H.161/LUA3107H.161_isis3.lbl index 6bf64f315..c2f2a86b4 100644 --- a/tests/pytests/data/LUD3125I.161/LUD3125I.161_isis3.lbl +++ b/tests/pytests/data/LUA3107H.161/LUA3107H.161_isis3.lbl @@ -23,30 +23,30 @@ Object = IsisCube SpacecraftName = "CLEMENTINE 1" InstrumentId = UVVIS TargetName = MOON - StartTime = 1994-03-25T15:14:28.251 + StartTime = 1994-03-25T15:14:15.347 OrbitNumber = 161 FocalPlaneTemperature = 270.227 - ExposureDuration = 8.0240 - OffsetModeID = 6 + ExposureDuration = 9.0624 + OffsetModeID = 2 GainModeID = 1 CryocoolerDuration = N/A - EncodingCompressionRatio = 4.61 + EncodingCompressionRatio = 11.71 EncodingFormat = CLEM-JPEG-1 End_Group Group = Archive - ProductID = LUD3125I.161 + ProductID = LUA3107H.161 MissionPhase = "LUNAR MAPPING" End_Group Group = BandBin - FilterName = D - Center = 0.95 - Width = 0.03 + FilterName = A + Center = 0.415 + Width = 0.04 End_Group Group = Kernels - NaifFrameCode = -40024 + NaifFrameCode = -40021 LeapSecond = $base/kernels/lsk/naif0012.tls TargetAttitudeShape = ($base/kernels/pck/pck00009.tpc, $base/kernels/pck/lunar_de403_1950-2199_pa.bp- @@ -77,19 +77,19 @@ End_Object Object = Table Name = InstrumentPointing - StartByte = 181940 + StartByte = 181926 Bytes = 64 Records = 1 ByteOrder = Lsb TimeDependentFrames = (-40000, 1) - ConstantFrames = (-40024, -40002, -40000) + ConstantFrames = (-40021, -40002, -40000) ConstantRotation = (-0.006108611041259, -0.99996607260776, -0.0055261654481643, 0.99998079393998, -0.0061027272118314, -0.0010809587141711, 0.0010471973598032, -0.0055326624686356, 0.99998414638618) - CkTableStartTime = -182119471.55935 - CkTableEndTime = -182119471.55935 + CkTableStartTime = -182119484.46283 + CkTableEndTime = -182119484.46283 CkTableOriginalSize = 1 FrameTypeCode = 3 Description = "Created by spiceinit" @@ -148,13 +148,13 @@ End_Object Object = Table Name = InstrumentPosition - StartByte = 182004 + StartByte = 181990 Bytes = 56 Records = 1 ByteOrder = Lsb CacheType = Linear - SpkTableStartTime = -182119471.55935 - SpkTableEndTime = -182119471.55935 + SpkTableStartTime = -182119484.46283 + SpkTableEndTime = -182119484.46283 SpkTableOriginalSize = 1.0 Description = "Created by spiceinit" Kernels = $Clementine1/kernels/spk/SPKMERGE_940219_940504_CLEM- @@ -205,7 +205,7 @@ End_Object Object = Table Name = BodyRotation - StartByte = 182060 + StartByte = 182046 Bytes = 64 Records = 1 ByteOrder = Lsb @@ -216,8 +216,8 @@ Object = Table 0.999999952015, -7.08797549693787e-07, -3.83374897618408e-04, 8.27563025111877e-07, 0.9999999265115) - CkTableStartTime = -182119471.55935 - CkTableEndTime = -182119471.55935 + CkTableStartTime = -182119484.46283 + CkTableEndTime = -182119484.46283 CkTableOriginalSize = 1 FrameTypeCode = 3 Description = "Created by spiceinit" @@ -225,7 +225,7 @@ Object = Table $base/kernels/pck/pck00009.tpc, $base/kernels/pck/lunar_de403_1950-2199_pa.bpc, $base/kernels/fk/lunarMeanEarth001.tf) - SolarLongitude = 128.5635202727 + SolarLongitude = 128.56316186662 Group = Field Name = J2000Q0 @@ -278,13 +278,13 @@ End_Object Object = Table Name = SunPosition - StartByte = 182124 + StartByte = 182110 Bytes = 56 Records = 1 ByteOrder = Lsb CacheType = Linear - SpkTableStartTime = -182119471.55935 - SpkTableEndTime = -182119471.55935 + SpkTableStartTime = -182119484.46283 + SpkTableEndTime = -182119484.46283 SpkTableOriginalSize = 1.0 Description = "Created by spiceinit" Kernels = $base/kernels/spk/de430.bsp @@ -334,14 +334,14 @@ End_Object Object = History Name = IsisCube - StartByte = 182180 - Bytes = 3117 + StartByte = 182166 + Bytes = 6984 End_Object Object = OriginalLabel Name = IsisCube - StartByte = 176548 - Bytes = 5392 + StartByte = 176530 + Bytes = 5396 End_Object Object = NaifKeywords @@ -359,53 +359,53 @@ Object = NaifKeywords BODY301_RADII = (1737.4, 1737.4, 1737.4) BODY_CODE = 301 BODY_FRAME_CODE = 310001 - FRAME_-40024_CENTER = -40 - FRAME_-40024_CLASS = 4 - FRAME_-40024_CLASS_ID = -40024 - FRAME_-40024_NAME = CLEM_UVVIS_D - INS-40024_BORESIGHT = (0, 0, 1) - INS-40024_BORESIGHT_LINE = 144.5 - INS-40024_BORESIGHT_SAMPLE = 192.5 - INS-40024_CCD_CENTER = (512.5, 512.5) - INS-40024_CK_FRAME_ID = -40002 - INS-40024_CK_REFERENCE_ID = -40000 - INS-40024_CK_TIME_BIAS = 0 - INS-40024_CK_TIME_TOLERANCE = 1 - INS-40024_DECENTER = (1.414502e-05, -0.0001372645) - INS-40024_F/RATIO = -999.9999 - INS-40024_FILTER_BANDCENTER = 950 - INS-40024_FILTER_BANDWIDTH = 30 - INS-40024_FILTER_NAME = D - INS-40024_FOCAL_LENGTH = 89.99126699999999 - INS-40024_FOV_ANGLE_UNITS = DEGREES - INS-40024_FOV_CLASS_SPEC = ANGLES - INS-40024_FOV_CROSS_ANGLE = 2.1085 - INS-40024_FOV_FRAME = CLEM_UVVIS_D - INS-40024_FOV_REF_ANGLE = 2.8115 - INS-40024_FOV_REF_VECTOR = (1, 0, 0) - INS-40024_FOV_SHAPE = RECTANGLE - INS-40024_IFOV = -999.999 - INS-40024_ITRANSL = (0, 0, 43.47826087) - INS-40024_ITRANSS = (0, 43.47826087, 0) - INS-40024_LIGHTTIME_CORRECTION = NONE - INS-40024_LT_SURFACE_CORRECT = TRUE - INS-40024_OD_K = (0, -2.398624e-05, 0) - INS-40024_PIXEL_LINES = 288 - INS-40024_PIXEL_PITCH = 0.023 - INS-40024_PIXEL_SAMPLES = 384 - INS-40024_PIXEL_SIZE = (0.023, 0.023) - INS-40024_PLATFORM_ID = -40000 - INS-40024_PP = (0, 0) - INS-40024_SPK_TIME_BIAS = 0 - INS-40024_SWAP_OBSERVER_TARGET = TRUE - INS-40024_TRANSX = (0, 0.023, 0) - INS-40024_TRANSY = (0, 0, 0.023) + FRAME_-40021_CENTER = -40 + FRAME_-40021_CLASS = 4 + FRAME_-40021_CLASS_ID = -40021 + FRAME_-40021_NAME = CLEM_UVVIS_A + INS-40021_BORESIGHT = (0, 0, 1) + INS-40021_BORESIGHT_LINE = 144.5 + INS-40021_BORESIGHT_SAMPLE = 192.5 + INS-40021_CCD_CENTER = (512.5, 512.5) + INS-40021_CK_FRAME_ID = -40002 + INS-40021_CK_REFERENCE_ID = -40000 + INS-40021_CK_TIME_BIAS = 0 + INS-40021_CK_TIME_TOLERANCE = 1 + INS-40021_DECENTER = (2.255006e-05, 2.108941e-05) + INS-40021_F/RATIO = -999.9999 + INS-40021_FILTER_BANDCENTER = 415 + INS-40021_FILTER_BANDWIDTH = 40 + INS-40021_FILTER_NAME = A + INS-40021_FOCAL_LENGTH = 89.874444 + INS-40021_FOV_ANGLE_UNITS = DEGREES + INS-40021_FOV_CLASS_SPEC = ANGLES + INS-40021_FOV_CROSS_ANGLE = 2.1085 + INS-40021_FOV_FRAME = CLEM_UVVIS_A + INS-40021_FOV_REF_ANGLE = 2.8115 + INS-40021_FOV_REF_VECTOR = (1, 0, 0) + INS-40021_FOV_SHAPE = RECTANGLE + INS-40021_IFOV = -999.999 + INS-40021_ITRANSL = (0, 0, 43.47826087) + INS-40021_ITRANSS = (0, 43.47826087, 0) + INS-40021_LIGHTTIME_CORRECTION = NONE + INS-40021_LT_SURFACE_CORRECT = TRUE + INS-40021_OD_K = (0, -2.422842e-05, 0) + INS-40021_PIXEL_LINES = 288 + INS-40021_PIXEL_PITCH = 0.023 + INS-40021_PIXEL_SAMPLES = 384 + INS-40021_PIXEL_SIZE = (0.023, 0.023) + INS-40021_PLATFORM_ID = -40000 + INS-40021_PP = (0, 0) + INS-40021_SPK_TIME_BIAS = 0 + INS-40021_SWAP_OBSERVER_TARGET = TRUE + INS-40021_TRANSX = (0, 0.023, 0) + INS-40021_TRANSY = (0, 0, 0.023) OBJECT_301_FRAME = LUNAR_MEAN_EARTH - TKFRAME_-40024_ANGLES = (-0.00553269372882, -0.0010471975512, + TKFRAME_-40021_ANGLES = (-0.00553269372882, -0.0010471975512, 1.57690497917688) - TKFRAME_-40024_AXES = (1, 2, 3) - TKFRAME_-40024_RELATIVE = CLEM_UVVIS - TKFRAME_-40024_SPEC = ANGLES - TKFRAME_-40024_UNITS = RADIANS + TKFRAME_-40021_AXES = (1, 2, 3) + TKFRAME_-40021_RELATIVE = CLEM_UVVIS + TKFRAME_-40021_SPEC = ANGLES + TKFRAME_-40021_UNITS = RADIANS End_Object End diff --git a/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.bck b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.bck new file mode 100644 index 000000000..61b1928e8 Binary files /dev/null and b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.bck differ diff --git a/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.cmt b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.cmt new file mode 100644 index 000000000..cd795a77b --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.cmt @@ -0,0 +1,4 @@ +This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/LUA3107H.161.clem.cub + +This CK was generated using the following command: {} +ckslicer -LSK /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls -SCLK /Users/ahibl/astro_efs/Clementine1/kernels/sclk/dspse002.tsc -INPUTCK /Users/ahibl/astro_efs/Clementine1/kernels/ck/clem_5sc.bck -OUTPUTCK uvvis/clem_5sc_0_sliced_-40000.bck -ID -40000 -TIMETYPE SCLK -START 1/16154.06620.44193 -STOP 1/16154.06650.03236 \ No newline at end of file diff --git a/tests/pytests/data/LUD3125I.161/clem_5sc_0_sliced_-40000.xfr b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.xfr similarity index 89% rename from tests/pytests/data/LUD3125I.161/clem_5sc_0_sliced_-40000.xfr rename to tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.xfr index 07d4b42af..e51a100d5 100644 --- a/tests/pytests/data/LUD3125I.161/clem_5sc_0_sliced_-40000.xfr +++ b/tests/pytests/data/LUA3107H.161/clem_5sc_0_sliced_-40000.xfr @@ -3,22 +3,36 @@ DAFETF NAIF DAF ENCODED TRANSFER FILE '2' '6' 'CREATED USING ORIGINAL CLEM CK BY NAIF, JPL; DEC 11, 1995 ' -BEGIN_ARRAY 1 403 +BEGIN_ARRAY 1 395 '5 SEC SPACED ATT. DATA INTERVALS ONLY ' -'A27CE28FFE1^B' -'A27CE465FDC^B' +'A27CE276CA1^B' +'A27CE44CCA4^B' '-9C40' '1' '3' '1' -403 -'E1CD9A6B27181^0' -'-3362DB04D1A804^0' -'6BC28C07ABA1F8^0' -'1135E008B8DE96^0' -'2BE57CC72CB18^-2' -'-43C16F8AB2F15^-2' -'-187C7CF2FAD4DE^-2' +395 +'E269B18D926E38^0' +'-3357F97D81F0A4^0' +'6A8AEB56E335DC^0' +'10E7223105E5FD^0' +'11B1B62E943786^-2' +'-13CC1BDFE1A114^-2' +'-90D40A9DA6031^-3' +'E2320838CABC58^0' +'-3356AB85C0521^0' +'6AFD53ADB13DF8^0' +'110196D7D41BF5^0' +'2085556085419E^-2' +'-3549CAEC5836E2^-2' +'-16C5E39087D18F^-2' +'E1F36F1E05CBE^0' +'-3363D801DB34B4^0' +'6B76C295E0676^0' +'111C371FBCCBF3^0' +'1994BFAA9564A4^-2' +'-628DB93670D1B4^-2' +'-1493DBAD4D911F^-2' 'E1B81D3813D4A^0' '-336248E63D5358^0' '6BED7AE70A19B^0' @@ -334,35 +348,16 @@ BEGIN_ARRAY 1 403 '12154AFE3BE27C^-2' '-3FAC8F20CB2ECE^-2' '-3234D02DBF6B14^-2' -'D70AEC670D4A6^0' -'-319797F0DC5556^0' -'7FE6E0949771^0' -'15C7C0AA4CE373^0' -'9F27B26872049^-3' -'-4215710D91F1^-2' -'-156B04422E907E^-2' -'D6B60CA260FC28^0' -'-319F296A15A636^0' -'806BAD2A4C9208^0' -'15EE4B3700E797^0' -'1DB822F023DCD6^-2' -'-132D0C437FDAC^-2' -'-1480406F09FFA8^-3' -'D67D6D52D49318^0' -'-3190D7408E254^0' -'80CC31C2111FA8^0' -'1602B2FBF3641F^0' -'D7BED4150E2788^-4' -'-447575C57AFF7C^-2' -'-29B75CE4F954B2^-2' -'D664EB7D384298^0' -'-318B138C65F676^0' -'80F5DBC9DD9658^0' -'160A7AF2B92419^0' -'-1A6D8F0B35DF5C^-3' -'-353C94CAAD5608^-2' -'-1D2D3D410BFD82^-2' -'A27CE28FFE1^B' +'D717B9E6DABF6^0' +'-3197E619797D72^0' +'7FD20B395AC984^0' +'15C2F03CDD9104^0' +'B64A02347687E^-3' +'-41A7D0247EB95C^-2' +'-1A88BB3E99EC54^-2' +'A27CE276CA1^B' +'A27CE27FDE8^B' +'A27CE289B6^B' 'A27CE2938D8^B' 'A27CE29D65^B' 'A27CE2A73E8^B' @@ -408,17 +403,14 @@ BEGIN_ARRAY 1 403 'A27CE431018^B' 'A27CE43AD9^B' 'A27CE444B28^B' -'A27CE44E8A^B' -'A27CE458618^B' -'A27CE46239^B' -'A27CE465FDC^B' -'A27CE28FFE1^B' +'A27CE44CCA4^B' +'A27CE276CA1^B' '1^1' -'32^2' -END_ARRAY 1 403 +'31^2' +END_ARRAY 1 395 TOTAL_ARRAYS 1 ~NAIF/SPC BEGIN COMMENTS~ -This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/6.clem.cub +This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/LUA3107H.161.clem.cub This CK was generated using the following command: {} ~NAIF/SPC END COMMENTS~ diff --git a/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.bck b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.bck new file mode 100644 index 000000000..48b59d76c Binary files /dev/null and b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.bck differ diff --git a/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.cmt b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.cmt new file mode 100644 index 000000000..7b0f479e7 --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.cmt @@ -0,0 +1,4 @@ +This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/LUA3107H.161.clem.cub + +This CK was generated using the following command: {} +ckslicer -LSK /Users/ahibl/astro_efs/base/kernels/lsk/naif0012.tls -SCLK /Users/ahibl/astro_efs/Clementine1/kernels/sclk/dspse002.tsc -INPUTCK /Users/ahibl/astro_efs/Clementine1/kernels/ck/clem_5sc.bck -OUTPUTCK uvvis/clem_5sc_1_sliced_-40000.bck -ID -40000 -TIMETYPE SCLK -START 1/16154.06681.36760 -STOP 1/16154.06710.56289 \ No newline at end of file diff --git a/tests/pytests/data/LUD3125I.161/clem_5sc_1_sliced_-40000.xfr b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.xfr similarity index 89% rename from tests/pytests/data/LUD3125I.161/clem_5sc_1_sliced_-40000.xfr rename to tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.xfr index a90010ef3..f82b5ab42 100644 --- a/tests/pytests/data/LUD3125I.161/clem_5sc_1_sliced_-40000.xfr +++ b/tests/pytests/data/LUA3107H.161/clem_5sc_1_sliced_-40000.xfr @@ -3,22 +3,36 @@ DAFETF NAIF DAF ENCODED TRANSFER FILE '2' '6' 'CREATED USING ORIGINAL CLEM CK BY NAIF, JPL; DEC 11, 1995 ' -BEGIN_ARRAY 1 403 +BEGIN_ARRAY 1 395 '5 SEC SPACED ATT. DATA INTERVALS ONLY ' -'A27CE65E2D8^B' -'A27CE832F18^B' +'A27CE644F98^B' +'A27CE819BE1^B' '-9C40' '1' '3' '1' -403 -'C80681B356F0F^0' -'-2F13C7D207DA14^0' -'96471F5E4F9F18^0' -'1AF26D3855D852^0' -'18D665F7A1D4F8^-3' -'-2F20F8CF9CD308^-2' -'-19A4103EC44AEA^-2' +395 +'C8BCC7A932ACF8^0' +'-2F21B48D4D120E^0' +'95568A1F2FD1E8^0' +'1AC80898AA1B25^0' +'-1A356A6316A9DD^-3' +'-44097BEFE9844C^-2' +'-11A9E0C6A96F16^-2' +'C87CAC1A647C9^0' +'-2F172CF4BD39EA^0' +'95AD81D7FEF21^0' +'1AD541D79DE4EF^0' +'-B4CA209F6151D^-3' +'-3CE26C95F93AFA^-2' +'-B5BA4850809C3^-3' +'C83967BE859F2^0' +'-2F1E0F80052C2A^0' +'96022B5873F928^0' +'1AE6A37543D974^0' +'-1123308872F366^-2' +'-3545624E1EE1E^-2' +'-1CFDBEF183019F^-2' 'C7E4B5891350E^0' '-2F0CF3EA4448B^0' '9674CDB5021D48^0' @@ -334,35 +348,16 @@ BEGIN_ARRAY 1 403 '7648A64182DD64^-3' '-3DFCC58C807F02^-2' '-6A8A168D279478^-3' -'B9D84B6B855688^0' -'-2C807AB3E9B264^0' -'A77E69E48564B8^0' -'1F08979D3A742E^0' -'18B55BB2E7BC3^-2' -'-4241E968B18A3C^-2' -'-2BC74D0DAF136C^-2' -'B98143E640EED8^0' -'-2C792C30EFEAFC^0' -'A7DC50D5D1D8E8^0' -'1F205E7D3499FE^0' -'CB7EEEBA5793^-3' -'-2CF35E2C5CC736^-2' -'-2BCAC75A3415AC^-2' -'B9259F02DEF6A8^0' -'-2C7C4A009338DC^0' -'A83DE2C555BD58^0' -'1F2EC5119520AD^0' -'EFC5F74E6CB27^-3' -'-3508651175C532^-2' -'-1994978CA9188E^-2' -'B9176A5587EAE^0' -'-2C7592E103B0C4^0' -'A84F1C6DA07FD8^0' -'1F2FB9EB108001^0' -'19CBAA77B5E78C^-2' -'-364CC6A3DC782^-2' -'-203D174F96A4D2^-2' -'A27CE65E2D8^B' +'B9F27CD2CF4E6^0' +'-2C89E9E57CA14C^0' +'A76166D51D7718^0' +'1EFAACE12693E5^0' +'12DAC41F8D80BD^-2' +'-40D05B42F9914^-2' +'-1F3AC17CC6F4^-2' +'A27CE644F98^B' +'A27CE64E69^B' +'A27CE658428^B' 'A27CE6621A^B' 'A27CE66BF18^B' 'A27CE675C9^B' @@ -408,17 +403,14 @@ BEGIN_ARRAY 1 403 'A27CE7FF8A^B' 'A27CE809618^B' 'A27CE81339^B' -'A27CE81D128^B' -'A27CE826EA^B' -'A27CE830C18^B' -'A27CE832F18^B' -'A27CE65E2D8^B' +'A27CE819BE1^B' +'A27CE644F98^B' '1^1' -'32^2' -END_ARRAY 1 403 +'31^2' +END_ARRAY 1 395 TOTAL_ARRAYS 1 ~NAIF/SPC BEGIN COMMENTS~ -This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/6.clem.cub +This CK is for testing with the image: /Users/ahibl/astro_efs/test_imgs/uvvis/LUA3107H.161.clem.cub This CK was generated using the following command: {} ~NAIF/SPC END COMMENTS~ diff --git a/tests/pytests/data/LUD3125I.161/clem_uvvis_beta_ik_v04.ti b/tests/pytests/data/LUA3107H.161/clem_uvvis_beta_ik_v04.ti similarity index 100% rename from tests/pytests/data/LUD3125I.161/clem_uvvis_beta_ik_v04.ti rename to tests/pytests/data/LUA3107H.161/clem_uvvis_beta_ik_v04.ti diff --git a/tests/pytests/data/LUA3107H.161/clem_v12.tf b/tests/pytests/data/LUA3107H.161/clem_v12.tf new file mode 100644 index 000000000..1b8aa6483 --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/clem_v12.tf @@ -0,0 +1,662 @@ +KPL/FK + +\beginlabel +PDS_VERSION_ID = PDS3 +RECORD_TYPE = STREAM +RECORD_BYTES = "N/A" +^SPICE_KERNEL = "clem_v21.tf" +MISSION_NAME = "DEEP SPACE PROGRAM SCIENCE EXPERIMENT" +SPACECRAFT_NAME = "CLEMENTINE 1" +DATA_SET_ID = "CLEM1-L-SPICE-6-V1.0" +KERNEL_TYPE_ID = FK +PRODUCT_ID = "clem_v21.tf" +PRODUCT_CREATION_TIME = 2017-10-01T00:00:00 +PRODUCER_ID = "NAIF/JPL" +MISSION_PHASE_NAME = "N/A" +PRODUCT_VERSION_TYPE = ACTUAL +PLATFORM_OR_MOUNTING_NAME = "N/A" +START_TIME = "N/A" +STOP_TIME = "N/A" +SPACECRAFT_CLOCK_START_COUNT = "N/A" +SPACECRAFT_CLOCK_STOP_COUNT = "N/A" +TARGET_NAME = MOON +INSTRUMENT_NAME = "N/A" +NAIF_INSTRUMENT_ID = "N/A" +SOURCE_PRODUCT_ID = "N/A" +NOTE = "See comments in the file for details" +OBJECT = SPICE_KERNEL + INTERCHANGE_FORMAT = ASCII + KERNEL_TYPE = FRAMES + DESCRIPTION = "Clementine SPICE FK file providing the +complete set of frame definitions for the Clementine spacecraft and its +science instruments, including band specific frames for the UVVIS +camera. Created by NAIF with additions by ASU." +END_OBJECT = SPICE_KERNEL +\endlabel + + +Clementine Frame Definitions Kernel +============================================================================== + + This frame kernel (FK) contains the Clementine spacecraft and + science instrument frame definitions. It also contains name - + to - NAIF ID mappings for the Clementine science instruments (see + the last section of the file.) + + Additional frames for each UVVIS camera filter have been added to + handle band specific optical distortion parameters. + + +Version and Date +-------------------------------------------------------- + + Version 2.1 -- October 01, 2017 -- Emerson Speyerer, ASU + + Added descriptions and new frames for each UVVIS filter. + + Version 2.0 -- June 11, 2007 -- Boris Semenov + + Added descriptions. Added name-ID mapping keywords. + + Version 1.0 -- September 29, 2000 -- Boris Semenov + + Initial Release. Contains Euler angles from Clementine I-Kernel + files. Does not contain a description for any of the frames. + + +References +-------------------------------------------------------- + + 1. C-kernel Required Reading + + 2. Kernel Pool Required Reading + + 3. Frames Required Reading + + 4. High-Resolution Imager (HIRES) I-Kernel File "clem_hires_008.ti" + + 5. Ultraviolet and Visible Imaging Camera (UVVIS) I-Kernel File + "clem_uvvis_008.ti" + + 6. Near Infrared Mapping Spectrometer (NIR) I-Kernel File + "clem_nir_009.ti" + + 7. Long Wavelength Infrared Mapping Spectrometer (LWIR) I-Kernel + File "clem_lwir_008.ti" + + 8. Laser Ranger (LIDAR) I-Kernel File "clem_lidar_005.ti" + + 9. Star Tracker A (ASTAR) I-Kernel File "clem_astar_006.ti" + + 10. Star Tracker B (BSTAR) I-Kernel File "clem_bstar_006.ti" + + 11. Charged Particle Telescope (CPT) I-Kernel File "clem_cpt_002.ti" + + 12. "Post Launch Alignment and Geometric Calibration of the + Clementine Spacecraft and Remote Sensing Science Instruments", + T. Duxbury, Rough Draft, no date + + 13. "Models of the Clementine Spacecraft and Remote Sensing Science + Instruments for Geodesy, Cartography, and Dynamical Sciences", + Draft version 1.0, December 1993. + + +Contact Information +-------------------------------------------------------- + + Boris V. Semenov, NAIF/JPL, (818)-354-8136, Boris.Semenov@jpl.nasa.gov + + +Implementation Notes +-------------------------------------------------------- + + This file is used by the SPICE system as follows: programs that make + use of this frame kernel must ``load'' the kernel, normally during + program initialization (see [2]). The SPICELIB routine FURNSH + (furnsh_c in CSPICE, cspice_furnsh in ICY) loads a kernel file into + the pool as follows: + + CALL FURNSH ( 'frame_kernel_name' ) + furnsh_c ( "frame_kernel_name" ); + cspice_furnsh, "frame_kernel_name" + + This file was created and may be updated with a text editor or word + processor. Should you need to update this kernel in any way, + please, modify the "Version and Date" section above to reflect the + changes. + + +Clementine Frames +-------------------------------------------------------- + + The following Clementine frames are defined in this kernel file: + + Frame Name Relative to Type NAIF ID + ===================== ================== ======= ======= + + Spacecraft Bus Frame: + --------------------- + CLEM_SC_BUS rel.to J2000 CK -40000 + + Instrument Frames: + ------------------ + CLEM_HIRES rel.to SC_BUS FIXED -40001 + CLEM_UVVIS rel.to SC_BUS FIXED -40002 + CLEM_NIR rel.to SC_BUS FIXED -40003 + CLEM_LWIR rel.to SC_BUS FIXED -40004 + CLEM_LIDAR rel.to SC_BUS FIXED -40005 + CLEM_ASTAR rel.to SC_BUS FIXED -40006 + CLEM_BSTAR rel.to SC_BUS FIXED -40007 + CLEM_CPT rel.to SC_BUS FIXED -40008 + + UVVIS Specific Frames: + ---------------------- + CLEM_UVVIS_A rel.to CLEM_UVVIS FIXED -40021 + CLEM_UVVIS_B rel.to CLEM_UVVIS FIXED -40022 + CLEM_UVVIS_C rel.to CLEM_UVVIS FIXED -40023 + CLEM_UVVIS_D rel.to CLEM_UVVIS FIXED -40024 + CLEM_UVVIS_E rel.to CLEM_UVVIS FIXED -40025 + CLEM_UVVIS_F rel.to CLEM_UVVIS FIXED -40026 + + +Clementine Frames Hierarchy +-------------------------------------------------------- + + The diagram below shows Clementine frames hierarchy: + + + "J2000" INERTIAL + +--------------------------------------------+ + | | + | <--ck | <--pck + | | + | V + | "IAU_EARTH" + | EARTH BFR(*) + | ------------ + | + | + | "CLEM_ASTAR" "CLEM_BSTAR" + | ------------ ------------ + | ^ ^ + | | | + V |<--fixed |<--fixed + "CLEM_SC_BUS" | | + +----------------------------------------------------------+ + | | | | | | + |<--fixed |<--fixed |<-fixed |<--fixed |<--fixed |<--fixed + | | | | | | + V V V V V V + "CLEM_HIRES" "CLEM_UVVIS" "CLEM_NIR" "CLEM_LWIR" "CLEM_LIDAR" "CLEM_CPT" + ------------ ------------ ---------- ----------- ------------ ---------- + | + |---> CLEM_UVVIS_A (fixed) + | + |---> CLEM_UVVIS_B (fixed) + | + |---> CLEM_UVVIS_C (fixed) + | + |---> CLEM_UVVIS_D (fixed) + | + |---> CLEM_UVVIS_E (fixed) + | + |---> CLEM_UVVIS_F (fixed) + + +Spacecraft Bus Frame +-------------------------------------------------------- + + The Clementine spacecraft bus frame is defined by the spacecraft + design as follows ([12]): + + * +Z axis is in the direction of the nominal remote sensing + science instrument boresight vectors; + + * +X axis is in the direction of the main rocket engine; + + * +Y axis completes the right handed frame and is in the plane + of the solar arrays; + + * the origin of this frame is at the geometric center of the + spacecraft's octagonal prizm shaped body. + + This diagram illustrates the spacecraft frame: + + ________________ + `. .' + _______ _______ ------------------- _______ _______ + | | | | | | | | | | + | | | | | Science | | | | | + | | | | | Deck | | | | | + | | | | | | | | | | + | | | |+Ysc| +Zsc| | | | | + | | |=| <------o | |=| | | + | | | | | | | | | | | + | | | | | | | | | | | + | | | | | | | | | | | + | | | | | V | | | | | + | | | | | +Xsc| | | | | + ------- ------- ------------------- ------- ------- + |_| + / \ + . . + ._____. + + The spacecraft bus attitude with respect to an inertial frame is + provided by CK kernels. Therefore the spacecraft frame is defined as + a CK-based frame. + + \begindata + + FRAME_CLEM_SC_BUS = -40000 + FRAME_-40000_NAME = 'CLEM_SC_BUS' + FRAME_-40000_CLASS = 3 + FRAME_-40000_CLASS_ID = -40000 + FRAME_-40000_CENTER = -40 + CK_-40000_SCLK = -40 + CK_-40000_SPK = -40 + + \begintext + + +Science Instrument Frames +-------------------------------------------------------- + + All Clementine instrument frames are defined in the same way as + follows ([12,13]): + + * +Z axis is along the instrument boresight vector; + + * +X axis is in the image plane and in the direction of + increasing pixels; + + * +Y axis is in the image plane and in the direction of + increasing lines; + + Since all insruments are rigidly mounted on the spacecraft, the + orientation of their frames is constant with respect to the + spacecraft frame. Therefore, all instrument frames are defined as + fixed offset frames with respect to the spacecraft frame. + + Originally mounting alignment of the instruments was included in + the IK files by providing the orientation of the instrument frame + relative to the spacecraft frame as three angles: thetaX, thetaY, + and thetaZ. The spacecraft-to-instrument frame transformation, + TXYZxyz, could derived from these angles as follows: + + TXYZxyz = R (thetaZ) R (thetaY) R (thetaX) + Z Y X + + where R (theta) represents a 3x3 rotation matrix of angle theta + i + about the i axis. + + The instrument frame definitions below incorporate the rotation + angles from the latest versions of the IKs available at the time + when this FK was created. + + +High-Resolution Imager (HIRES) Frame + + The rotation angles provided in the HIRES frame definition below are + from [4]. + + \begindata + + FRAME_CLEM_HIRES = -40001 + FRAME_-40001_NAME = 'CLEM_HIRES' + FRAME_-40001_CLASS = 4 + FRAME_-40001_CLASS_ID = -40001 + FRAME_-40001_CENTER = -40 + TKFRAME_-40001_SPEC = 'ANGLES' + TKFRAME_-40001_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40001_ANGLES = ( -0.00504400153826, + -0.00125663706144, + -3.14333798284179 ) + TKFRAME_-40001_AXES = ( 1, 2, 3 ) + TKFRAME_-40001_UNITS = 'RADIANS' + + \begintext + + +Ultraviolet and Visible Imaging Camera (UVVIS) Frame + + The rotation angles provided in the UVVIS frame definition below are + from [5]. Band specific frames are included to handle the different + optical distortion parameters + + \begindata + + FRAME_CLEM_UVVIS = -40002 + FRAME_-40002_NAME = 'CLEM_UVVIS' + FRAME_-40002_CLASS = 4 + FRAME_-40002_CLASS_ID = -40002 + FRAME_-40002_CENTER = -40 + TKFRAME_-40002_SPEC = 'ANGLES' + TKFRAME_-40002_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40002_ANGLES = ( 0.0, 0.0, 0.0 ) + TKFRAME_-40002_AXES = ( 1, 2, 3 ) + TKFRAME_-40002_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_A = -40021 + FRAME_-40021_NAME = 'CLEM_UVVIS_A' + FRAME_-40021_CLASS = 4 + FRAME_-40021_CLASS_ID = -40021 + FRAME_-40021_CENTER = -40 + TKFRAME_-40021_SPEC = 'ANGLES' + TKFRAME_-40021_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40021_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40021_AXES = ( 1, 2, 3 ) + TKFRAME_-40021_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_B = -40022 + FRAME_-40022_NAME = 'CLEM_UVVIS_B' + FRAME_-40022_CLASS = 4 + FRAME_-40022_CLASS_ID = -40022 + FRAME_-40022_CENTER = -40 + TKFRAME_-40022_SPEC = 'ANGLES' + TKFRAME_-40022_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40022_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40022_AXES = ( 1, 2, 3 ) + TKFRAME_-40022_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_C = -40023 + FRAME_-40023_NAME = 'CLEM_UVVIS_C' + FRAME_-40023_CLASS = 4 + FRAME_-40023_CLASS_ID = -40023 + FRAME_-40023_CENTER = -40 + TKFRAME_-40023_SPEC = 'ANGLES' + TKFRAME_-40023_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40023_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40023_AXES = ( 1, 2, 3 ) + TKFRAME_-40023_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_D = -40024 + FRAME_-40024_NAME = 'CLEM_UVVIS_D' + FRAME_-40024_CLASS = 4 + FRAME_-40024_CLASS_ID = -40024 + FRAME_-40024_CENTER = -40 + TKFRAME_-40024_SPEC = 'ANGLES' + TKFRAME_-40024_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40024_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40024_AXES = ( 1, 2, 3 ) + TKFRAME_-40024_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_E = -40025 + FRAME_-40025_NAME = 'CLEM_UVVIS_E' + FRAME_-40025_CLASS = 4 + FRAME_-40025_CLASS_ID = -40025 + FRAME_-40025_CENTER = -40 + TKFRAME_-40025_SPEC = 'ANGLES' + TKFRAME_-40025_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40025_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40025_AXES = ( 1, 2, 3 ) + TKFRAME_-40025_UNITS = 'RADIANS' + + FRAME_CLEM_UVVIS_F = -40026 + FRAME_-40026_NAME = 'CLEM_UVVIS_F' + FRAME_-40026_CLASS = 4 + FRAME_-40026_CLASS_ID = -40026 + FRAME_-40026_CENTER = -40 + TKFRAME_-40026_SPEC = 'ANGLES' + TKFRAME_-40026_RELATIVE = 'CLEM_UVVIS' + TKFRAME_-40026_ANGLES = ( -0.00553269372882, -0.00104719755120, 1.57690497917688 ) + TKFRAME_-40026_AXES = ( 1, 2, 3 ) + TKFRAME_-40026_UNITS = 'RADIANS' + + + \begintext + + +Near Infrared Mapping Spectrometer (NIR) Frame + + The rotation angles provided in the frame NIT definition below are + from [6]. + + \begindata + + FRAME_CLEM_NIR = -40003 + FRAME_-40003_NAME = 'CLEM_NIR' + FRAME_-40003_CLASS = 4 + FRAME_-40003_CLASS_ID = -40003 + FRAME_-40003_CENTER = -40 + TKFRAME_-40003_SPEC = 'ANGLES' + TKFRAME_-40003_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40003_ANGLES = ( -0.005525711614, + -0.001685987814, + -0.023816759530 ) + TKFRAME_-40003_AXES = ( 1, 2, 3 ) + TKFRAME_-40003_UNITS = 'RADIANS' + + \begintext + + +Long Wavelength Infrared Mapping Spectrometer (LWIR) Frame + + The rotation angles provided in the frame LWIR definition below are + from [7]. + + \begindata + + FRAME_CLEM_LWIR = -40004 + FRAME_-40004_NAME = 'CLEM_LWIR' + FRAME_-40004_CLASS = 4 + FRAME_-40004_CLASS_ID = -40004 + FRAME_-40004_CENTER = -40 + TKFRAME_-40004_SPEC = 'ANGLES' + TKFRAME_-40004_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40004_ANGLES = ( -0.00053581608036, + -0.00019722220548, + -3.14159265358979 ) + TKFRAME_-40004_AXES = ( 1, 2, 3 ) + TKFRAME_-40004_UNITS = 'RADIANS' + + \begintext + + +Laser Ranger (LIDAR) Frame + + The rotation angles provided in the frame LIDAR definition below are + from [8]. + + \begindata + + FRAME_CLEM_LIDAR = -40005 + FRAME_-40005_NAME = 'CLEM_LIDAR' + FRAME_-40005_CLASS = 4 + FRAME_-40005_CLASS_ID = -40005 + FRAME_-40005_CENTER = -40 + TKFRAME_-40005_SPEC = 'ANGLES' + TKFRAME_-40005_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40005_ANGLES = ( -0.00504400153826, + -0.00125663706144, + 0.0 ) + TKFRAME_-40005_AXES = ( 1, 2, 3 ) + TKFRAME_-40005_UNITS = 'RADIANS' + + \begintext + + +Star Tracker A (ASTAR) Frame + + The rotation angles provided in the ASTAR frame definition below are + from [9]. + + \begindata + + FRAME_CLEM_ASTAR = -40006 + FRAME_-40006_NAME = 'CLEM_ASTAR' + FRAME_-40006_CLASS = 4 + FRAME_-40006_CLASS_ID = -40006 + FRAME_-40006_CENTER = -40 + TKFRAME_-40006_SPEC = 'ANGLES' + TKFRAME_-40006_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40006_ANGLES = ( 2.04022706372830, + -0.52166146012859, + -3.06113297507285 ) + TKFRAME_-40006_AXES = ( 1, 2, 3 ) + TKFRAME_-40006_UNITS = 'RADIANS' + + \begintext + + +Star Tracker B (BSTAR) Frame + + The rotation angles provided in the frame BSTAR definition below are + from [10]. + + \begindata + + FRAME_CLEM_BSTAR = -40007 + FRAME_-40007_NAME = 'CLEM_BSTAR' + FRAME_-40007_CLASS = 4 + FRAME_-40007_CLASS_ID = -40007 + FRAME_-40007_CENTER = -40 + TKFRAME_-40007_SPEC = 'ANGLES' + TKFRAME_-40007_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40007_ANGLES = ( -2.05078106971511, + -0.51341128875441, + -0.08063421144214 ) + TKFRAME_-40007_AXES = ( 1, 2, 3 ) + TKFRAME_-40007_UNITS = 'RADIANS' + + \begintext + + +Charged Particle Telescope (CPT) Frame + + + The rotation angles provided in the frame definition below are + from [11]. + + \begindata + + FRAME_CLEM_CPT = -40008 + FRAME_-40008_NAME = 'CLEM_CPT' + FRAME_-40008_CLASS = 4 + FRAME_-40008_CLASS_ID = -40008 + FRAME_-40008_CENTER = -40 + TKFRAME_-40008_SPEC = 'ANGLES' + TKFRAME_-40008_RELATIVE = 'CLEM_SC_BUS' + TKFRAME_-40008_ANGLES = ( 0.0, + -3.141592654, + 0.0 ) + TKFRAME_-40008_AXES = ( 1, 2, 3 ) + TKFRAME_-40008_UNITS = 'RADIANS' + + \begintext + + +Clementine NAIF ID Codes Definitions +-------------------------------------------------------- + + This section contains name - to - NAIF ID mappings for the Clementine + mission. Once the contents of this file is loaded into the KERNEL + POOL, these mappings become available within SPICE, making it + possible to use these names in the high level SPICE routine calls. + + Spacecraft: + ----------- + + DSPSE -40 + CLEM -40 + CLEMENTINE_1 -40 + CLEMENTINE -40 + + CLEM_SPACECRAFT -40000 + CLEM_SPACECRAFT_BUS -40000 + CLEM_SC_BUS -40000 + + Science Instruments: + -------------------- + + CLEM_HIRES -40001 + CLEM_UVVIS -40002 + CLEM_NIR -40003 + CLEM_LWIR -40004 + CLEM_LIDAR -40005 + CLEM_ASTAR -40006 + CLEM_BSTAR -40007 + CLEM_CPT -40008 + + UVVIS Specific Frames: + ---------------------- + + CLEM_UVVIS_A -40021 + CLEM_UVVIS_B -40022 + CLEM_UVVIS_C -40023 + CLEM_UVVIS_D -40024 + CLEM_UVVIS_E -40025 + CLEM_UVVIS_F -40026 + + + The mappings summarized in this table are implemented by the keywords + below. + + \begindata + + NAIF_BODY_NAME += ( 'DSPSE' ) + NAIF_BODY_CODE += ( -40 ) + + NAIF_BODY_NAME += ( 'CLEM' ) + NAIF_BODY_CODE += ( -40 ) + + NAIF_BODY_NAME += ( 'CLEMENTINE_1' ) + NAIF_BODY_CODE += ( -40 ) + + NAIF_BODY_NAME += ( 'CLEMENTINE' ) + NAIF_BODY_CODE += ( -40 ) + + NAIF_BODY_NAME += ( 'CLEM_SPACECRAFT' ) + NAIF_BODY_CODE += ( -40000 ) + + NAIF_BODY_NAME += ( 'CLEM_SPACECRAFT_BUS' ) + NAIF_BODY_CODE += ( -40000 ) + + NAIF_BODY_NAME += ( 'CLEM_SC_BUS' ) + NAIF_BODY_CODE += ( -40000 ) + + NAIF_BODY_NAME += ( 'CLEM_HIRES' ) + NAIF_BODY_CODE += ( -40001 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS' ) + NAIF_BODY_CODE += ( -40002 ) + + NAIF_BODY_NAME += ( 'CLEM_NIR' ) + NAIF_BODY_CODE += ( -40003 ) + + NAIF_BODY_NAME += ( 'CLEM_LWIR' ) + NAIF_BODY_CODE += ( -40004 ) + + NAIF_BODY_NAME += ( 'CLEM_LIDAR' ) + NAIF_BODY_CODE += ( -40005 ) + + NAIF_BODY_NAME += ( 'CLEM_ASTAR' ) + NAIF_BODY_CODE += ( -40006 ) + + NAIF_BODY_NAME += ( 'CLEM_BSTAR' ) + NAIF_BODY_CODE += ( -40007 ) + + NAIF_BODY_NAME += ( 'CLEM_CPT' ) + NAIF_BODY_CODE += ( -40008 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_A' ) + NAIF_BODY_CODE += ( -40021 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_B' ) + NAIF_BODY_CODE += ( -40022 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_C' ) + NAIF_BODY_CODE += ( -40023 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_D' ) + NAIF_BODY_CODE += ( -40024 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_E' ) + NAIF_BODY_CODE += ( -40025 ) + + NAIF_BODY_NAME += ( 'CLEM_UVVIS_F' ) + NAIF_BODY_CODE += ( -40026 ) + + \begintext + diff --git a/tests/pytests/data/LUD3125I.161/dspse002.tsc b/tests/pytests/data/LUA3107H.161/dspse002.tsc similarity index 100% rename from tests/pytests/data/LUD3125I.161/dspse002.tsc rename to tests/pytests/data/LUA3107H.161/dspse002.tsc diff --git a/tests/pytests/data/LUA3107H.161/lunarMeanEarth001.tf b/tests/pytests/data/LUA3107H.161/lunarMeanEarth001.tf new file mode 100644 index 000000000..a11b4a97a --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/lunarMeanEarth001.tf @@ -0,0 +1,370 @@ + +KPL/FK + + + SPICE Generic Lunar Reference Frame Specification Kernel + ===================================================================== + + Original file name: lunar_060616.tf + Creation date: 2006 June 16 18:54 + Created by: Nat Bachman (NAIF/JPL) + + Modified: 2007 July 10 15:02 + Modified By: Jeff Anderson + Note: Define lunar frame to default + to mean-earth + + + Introduction + ===================================================================== + + This kernel specifies lunar body-fixed reference frames for use by + SPICE-based application software. These reference frames are + associated with high-accuracy lunar orientation data provided by the + JPL Solar System Dynamics Group's planetary ephemerides (both + trajectory and lunar orientation data are stored in these ephemeris + files). These ephemerides have names of the form DE-nnn (DE stands + for "developmental ephemeris"). + + The frames specified by this kernel are realizations of two different + lunar reference systems: + + Principal axes (PA) system + -------------------------- + The axes of this system are defined by the principal axes of the + Moon. Note that, due to the nature of the Moon's orbit and + rotation, the Z axis of this system does not coincide with the + Moon's mean spin axis, nor does the X axis coincide with the mean + direction to the center of the Earth. + + Lunar principal axes frames realizing the lunar PA system and + specified by this kernel are associated with JPL planetary + ephemerides. Each new JPL planetary ephemeris can (but does not + necessarily) define a new realization of the lunar principal axes + system. Coordinates of lunar surface features expressed in lunar + PA frames can change slightly from one lunar ephemeris version to + the next. + + + Mean Earth/polar axis (ME) system + --------------------------------- + The Lunar mean Earth/axis system is a lunar body-fixed reference + system used in the IAU/IAG Working Group Report [2] to describe + the orientation of the Moon relative to the ICRF frame. The +Z + axis of this system is aligned with the mean lunar north pole, + while the prime meridian contains the the mean Earth direction. + + The mean directions used to define the axes of a mean Earth/polar + axis reference frame realizing the lunar ME system and specified + by this kernel are associated with a given JPL planetary + ephemeris version. The rotation between the mean Earth frame for + a given ephemeris version and the associated principal axes frame + is given by a constant matrix (see [1]). + + + For each JPL planetary ephemeris (DE), this kernel includes + specifications of the corresponding principal axes and mean Earth/ + polar axis frames. The names of these frames have the form + + LUNAR_DE-nnn_PR_AXES + + and + + LUNAR_DE-nn_MEAN_EARTH + + respectively. This set of DE-dependent frame specifications will + grow over time; frame specifications pertaining to older DEs will + be retained in later versions of this frame kernel. + + For each type of reference frame, there are two "generic" + frame specifications: these frames are simply aliases for the + two lunar body-fixed frames associated with the latest DE. The + generic frame names are + + LUNAR_PR_AXES + LUNAR_MEAN_EARTH + + SPICE users may, if they wish, modify this kernel to assign these + frame aliases to older DE-based frames. NAIF recommends that, if + this file is modified, the name of this file also be changed to + avoid confusion. + + + Comparison of PA and ME frames + ------------------------------ + + The rotation between the mean Earth frame for a given DE and the + associated principal axes frame for the same DE is given by a constant + matrix (see [1]). For DE-403, the rotation angle of this matrix is + approximately 0.028241 degrees; this is equivalent to approximately 860 m + when expressed as a displacement along a great circle on the Moon's + surface. + + + Comparison of DE-based and IAU/IAG report rotation data + ------------------------------------------------------- + + Within the SPICE system, the lunar ME frame specified by the + rotational elements from the IAU/IAG Working Group report [2] is + given the name IAU_MOON; the data defining this frame are provided + in a generic text PCK. + + The orientation of the lunar ME frame obtained from the DE-based + lunar libration data and application of the DE-based PA-to-ME + rotation described above does not agree closely with the lunar ME + frame orientation given by the rotational elements from the IAU/IAG + Working Group report (that is, the IAU_MOON frame). The difference + is due to truncation of the libration series used in the report's + formula for lunar orientation (see [1]). + + In the case of DE-403, for the time period ~2000-2020, this + time-dependent difference has an amplitude of approximately 0.005 + degrees, which is equivalent to approximately 150 m, measured along + a great circle on the Moon's surface, while the average value is + approximately 0.0025 degrees, or 75 m. + + + Using this Kernel + ===================================================================== + + In order for a SPICE-based application to use reference frames + specified by this kernel, the application must load both this kernel + and a binary lunar PCK containing lunar orientation data for the + time of interest. Normally the kernels need be loaded only once + during program initialization. + + SPICE users may find it convenient to use a meta-kernel (also called + a "FURNSH kernel") to name the kernels to be loaded. Below, we show + an example of such a meta-kernel, as well as the source code of a + small Fortran program that uses lunar body fixed frames. The + program's output is included as well. + + The kernel names shown here are simply used as examples; users must + select the kernels appropriate for their applications. + + Numeric results shown below may differ from those obtained on users' + computer systems. + + + Meta-kernel + ----------- + + Example meta-kernel showing use of + + - binary lunar PCK + - generic lunar frame kernel (FK) + - leapseconds kernel (LSK) + - planetary SPK + + 16-JUN-2006 (NJB) + + Note: to actually use this kernel, replace the @ + characters below with backslashes (\). The + backslash character cannot be used here because these + comments would be interpreted as actual load commands. + + @begindata + + KERNELS_TO_LOAD = ( 'de403_2000-2020_pa.bpc' + 'lunar_060616.tf' + '/kernels/gen/lsk/leapseconds.ker' + '/kernels/gen/spk/de405.bsp' ) + + @begintext + + + Example program + --------------- + + PROGRAM EX1 + IMPLICIT NONE + + INTEGER FILSIZ + PARAMETER ( FILSIZ = 255 ) + + CHARACTER*(FILSIZ) META + + DOUBLE PRECISION ET + DOUBLE PRECISION LT + DOUBLE PRECISION STME ( 6 ) + DOUBLE PRECISION STPA ( 6 ) + + C + C Prompt user for meta-kernel name. + C + CALL PROMPT ( 'Enter name of meta-kernel > ', META ) + + C + C Load lunar PCK, generic lunar frame kernel, + C leapseconds kernel, and planetary ephemeris + C via metakernel. + C + CALL FURNSH ( META ) + + C + C Convert a time of interest from UTC to ET. + C + CALL STR2ET ( '2006 jun 8 06:50:00', ET ) + + WRITE (*,*) 'ET (sec past J2000 TDB): ', ET + WRITE (*,*) ' State of Earth relative to Moon' + + C + C Find the geometric state of the Earth relative to the + C Moon at ET, expressed relative to the generic ME frame. + C + CALL SPKEZR ( 'Earth', ET, 'LUNAR_MEAN_EARTH', + . 'NONE', 'Moon', STME, LT ) + + WRITE (*,*) ' In ME frame:' + WRITE (*,*) STME + + C + C Find the geometric state of the Earth relative to the + C Moon at ET, expressed relative to the generic PA frame. + C + CALL SPKEZR ( 'Earth', ET, 'LUNAR_PR_AXES', + . 'NONE', 'Moon', STPA, LT ) + + WRITE (*,*) ' In PA frame:' + WRITE (*,*) STPA + + END + + + Program output + -------------- + + Enter name of meta-kernel > meta + ET (sec past J2000 TDB): 203021465. + State of Earth relative to Moon + In ME frame: + 391739.183 -33210.254 25299.0887 -0.0592286405 -0.048721834 0.0917188552 + In PA frame: + 391719.148 -33331.588 25449.2934 -0.0592788895 -0.0487034073 0.0916961762 + + + + References + ===================================================================== + + [1] A.S. Konopliv, S.W. Asmar, E. Carranza, W.L. Sjogren, and D.N. + Yuan (2001). "Recent Gravity Models as a Result of the Lunar + Prospector Mission," Icarus 150, pp. 1-18. + + [2] Seidelmann, P.K., Abalakin, V.K., Bursa, M., Davies, M.E., + Bergh, C. de, Lieske, J.H., Oberst, J., Simon, J.L., Standish, + E.M., Stooke, P., and Thomas, P.C. (2002). "Report of the + IAU/IAG Working Group on Cartographic Coordinates and Rotational + Elements of the Planets and Satellites: 2000," Celestial + Mechanics and Dynamical Astronomy, v.82, Issue 1, pp. 83-111. + + [3] Roncoli, R. (2005). "Lunar Constants and Models Document," + JPL D-32296. + + + Frame Specifications + ===================================================================== + + LUNAR_PR_AXES is the name of the generic lunar principal axes + reference frame. This frame is an alias for the principal axes + frame defined by the latest version of the JPL Solar System Dynamics + Group's planetary ephemeris. + + Currently LUNAR_PR_AXES is an alias for the lunar principal axes + frame associated with the planetary ephemeris DE-403. + + \begindata + + FRAME_LUNAR_PR_AXES = 310000 + FRAME_310000_NAME = 'LUNAR_PR_AXES' + FRAME_310000_CLASS = 4 + FRAME_310000_CLASS_ID = 310000 + FRAME_310000_CENTER = 301 + + TKFRAME_310000_SPEC = 'MATRIX' + TKFRAME_310000_RELATIVE = 'LUNAR_DE-403_PR_AXES' + TKFRAME_310000_MATRIX = ( 1 0 0 + 0 1 0 + 0 0 1 ) + + \begintext + + LUNAR_MEAN_EARTH is the name of the generic lunar mean Earth/ polar + axis reference frame. This frame is an alias for the mean + Earth/polar axis frame defined by the latest version of the JPL + Solar System Dynamics Group's planetary ephemeris. + + Currently LUNAR_MEAN_EARTH is an alias for the lunar mean Earth/ + polar axis frame associated with the planetary ephemeris DE-403. + + \begindata + + FRAME_LUNAR_MEAN_EARTH = 310001 + FRAME_310001_NAME = 'LUNAR_MEAN_EARTH' + FRAME_310001_CLASS = 4 + FRAME_310001_CLASS_ID = 310001 + FRAME_310001_CENTER = 301 + + TKFRAME_310001_SPEC = 'MATRIX' + TKFRAME_310001_RELATIVE = 'LUNAR_DE-403_MEAN_EARTH' + TKFRAME_310001_MATRIX = ( 1 0 0 + 0 1 0 + 0 0 1 ) + + \begintext + + + LUNAR_DE-403_PR_AXES is the name of the lunar principal axes + reference frame defined by JPL's DE-403 planetary ephemeris. + + \begindata + + FRAME_LUNAR_DE-403_PR_AXES = 310002 + FRAME_310002_NAME = 'LUNAR_DE-403_PR_AXES' + FRAME_310002_CLASS = 2 + FRAME_310002_CLASS_ID = 31000 + FRAME_310002_CENTER = 301 + + \begintext + + + + LUNAR_DE-403_MEAN_EARTH is the name of the lunar mean Earth/polar + axis reference frame defined by JPL's DE-403 planetary ephemeris. + + Rotation angles are from reference [1]. + + \begindata + + FRAME_LUNAR_DE-403_MEAN_EARTH = 310003 + FRAME_310003_NAME = 'LUNAR_DE-403_MEAN_EARTH' + FRAME_310003_CLASS = 4 + FRAME_310003_CLASS_ID = 310003 + FRAME_310003_CENTER = 301 + + TKFRAME_310003_SPEC = 'ANGLES' + TKFRAME_310003_RELATIVE = 'LUNAR_PR_AXES' + TKFRAME_310003_ANGLES = ( 63.8986 79.0768 0.1462 ) + TKFRAME_310003_AXES = ( 3, 2, 1 ) + TKFRAME_310003_UNITS = 'ARCSECONDS' + + \begintext + + Set to Mean Earth Lunar frame, dcook July 2007 + + \begindata + OBJECT_MOON_FRAME = 'LUNAR_MEAN_EARTH' + OBJECT_301_FRAME = 'LUNAR_MEAN_EARTH' + + \begintext + End of kernel + + + + + + + + + diff --git a/tests/pytests/data/LUA3107H.161/naif0012.tls b/tests/pytests/data/LUA3107H.161/naif0012.tls new file mode 100644 index 000000000..e1afdee1b --- /dev/null +++ b/tests/pytests/data/LUA3107H.161/naif0012.tls @@ -0,0 +1,152 @@ +KPL/LSK + + +LEAPSECONDS KERNEL FILE +=========================================================================== + +Modifications: +-------------- + +2016, Jul. 14 NJB Modified file to account for the leapsecond that + will occur on December 31, 2016. + +2015, Jan. 5 NJB Modified file to account for the leapsecond that + will occur on June 30, 2015. + +2012, Jan. 5 NJB Modified file to account for the leapsecond that + will occur on June 30, 2012. + +2008, Jul. 7 NJB Modified file to account for the leapsecond that + will occur on December 31, 2008. + +2005, Aug. 3 NJB Modified file to account for the leapsecond that + will occur on December 31, 2005. + +1998, Jul 17 WLT Modified file to account for the leapsecond that + will occur on December 31, 1998. + +1997, Feb 22 WLT Modified file to account for the leapsecond that + will occur on June 30, 1997. + +1995, Dec 14 KSZ Corrected date of last leapsecond from 1-1-95 + to 1-1-96. + +1995, Oct 25 WLT Modified file to account for the leapsecond that + will occur on Dec 31, 1995. + +1994, Jun 16 WLT Modified file to account for the leapsecond on + June 30, 1994. + +1993, Feb. 22 CHA Modified file to account for the leapsecond on + June 30, 1993. + +1992, Mar. 6 HAN Modified file to account for the leapsecond on + June 30, 1992. + +1990, Oct. 8 HAN Modified file to account for the leapsecond on + Dec. 31, 1990. + + +Explanation: +------------ + +The contents of this file are used by the routine DELTET to compute the +time difference + +[1] DELTA_ET = ET - UTC + +the increment to be applied to UTC to give ET. + +The difference between UTC and TAI, + +[2] DELTA_AT = TAI - UTC + +is always an integral number of seconds. The value of DELTA_AT was 10 +seconds in January 1972, and increases by one each time a leap second +is declared. Combining [1] and [2] gives + +[3] DELTA_ET = ET - (TAI - DELTA_AT) + + = (ET - TAI) + DELTA_AT + +The difference (ET - TAI) is periodic, and is given by + +[4] ET - TAI = DELTA_T_A + K sin E + +where DELTA_T_A and K are constant, and E is the eccentric anomaly of the +heliocentric orbit of the Earth-Moon barycenter. Equation [4], which ignores +small-period fluctuations, is accurate to about 0.000030 seconds. + +The eccentric anomaly E is given by + +[5] E = M + EB sin M + +where M is the mean anomaly, which in turn is given by + +[6] M = M + M t + 0 1 + +where t is the number of ephemeris seconds past J2000. + +Thus, in order to compute DELTA_ET, the following items are necessary. + + DELTA_TA + K + EB + M0 + M1 + DELTA_AT after each leap second. + +The numbers, and the formulation, are taken from the following sources. + + 1) Moyer, T.D., Transformation from Proper Time on Earth to + Coordinate Time in Solar System Barycentric Space-Time Frame + of Reference, Parts 1 and 2, Celestial Mechanics 23 (1981), + 33-56 and 57-68. + + 2) Moyer, T.D., Effects of Conversion to the J2000 Astronomical + Reference System on Algorithms for Computing Time Differences + and Clock Rates, JPL IOM 314.5--942, 1 October 1985. + +The variable names used above are consistent with those used in the +Astronomical Almanac. + +\begindata + +DELTET/DELTA_T_A = 32.184 +DELTET/K = 1.657D-3 +DELTET/EB = 1.671D-2 +DELTET/M = ( 6.239996D0 1.99096871D-7 ) + +DELTET/DELTA_AT = ( 10, @1972-JAN-1 + 11, @1972-JUL-1 + 12, @1973-JAN-1 + 13, @1974-JAN-1 + 14, @1975-JAN-1 + 15, @1976-JAN-1 + 16, @1977-JAN-1 + 17, @1978-JAN-1 + 18, @1979-JAN-1 + 19, @1980-JAN-1 + 20, @1981-JUL-1 + 21, @1982-JUL-1 + 22, @1983-JUL-1 + 23, @1985-JUL-1 + 24, @1988-JAN-1 + 25, @1990-JAN-1 + 26, @1991-JAN-1 + 27, @1992-JUL-1 + 28, @1993-JUL-1 + 29, @1994-JUL-1 + 30, @1996-JAN-1 + 31, @1997-JUL-1 + 32, @1999-JAN-1 + 33, @2006-JAN-1 + 34, @2009-JAN-1 + 35, @2012-JUL-1 + 36, @2015-JUL-1 + 37, @2017-JAN-1 ) + +\begintext + + diff --git a/tests/pytests/data/LUD3125I.161/pck00009.tpc b/tests/pytests/data/LUA3107H.161/pck00009.tpc similarity index 100% rename from tests/pytests/data/LUD3125I.161/pck00009.tpc rename to tests/pytests/data/LUA3107H.161/pck00009.tpc diff --git a/tests/pytests/data/LUD3125I.161/uvvisAddendum004.ti b/tests/pytests/data/LUA3107H.161/uvvisAddendum004.ti similarity index 100% rename from tests/pytests/data/LUD3125I.161/uvvisAddendum004.ti rename to tests/pytests/data/LUA3107H.161/uvvisAddendum004.ti diff --git a/tests/pytests/test_clementine_drivers.py b/tests/pytests/test_clementine_drivers.py index 3fa7e4331..70f408dc7 100644 --- a/tests/pytests/test_clementine_drivers.py +++ b/tests/pytests/test_clementine_drivers.py @@ -12,24 +12,24 @@ @pytest.fixture(scope='module') def test_uvvis_kernels(): - kernels = get_image_kernels('LUD3125I.161') + kernels = get_image_kernels('LUA3107H.161') updated_kernels, binary_kernels = convert_kernels(kernels) yield updated_kernels for kern in binary_kernels: os.remove(kern) def test_uvvis_load(test_uvvis_kernels): - label_file = get_image_label('LUD3125I.161', 'isis3') + label_file = get_image_label('LUA3107H.161', 'isis3') isd_str = ale.loads(label_file, props={'kernels': test_uvvis_kernels, 'exact_ck_times': False}) isd_obj = json.loads(isd_str) - compare_isd = get_isd('clementine') + compare_isd = get_isd('clem_uvvis') assert compare_dicts(isd_obj, compare_isd) == [] # ========= Test uvvis isislabel and naifspice driver ========= class test_uvvis_isis_naif(unittest.TestCase): def setUp(self): - label = get_image_label("LUD3125I.161", "isis3") + label = get_image_label("LUA3107H.161", "isis3") self.driver = ClementineUvvisIsisLabelNaifSpiceDriver(label) def test_instrument_id(self): @@ -44,7 +44,7 @@ def test_ephemeris_stop_time(self): assert self.driver.ephemeris_stop_time >= 12345 def test_spacecraft_name(self): - assert self.driver.sensor_name == "CLEM_UVVIS_D" # this is probly not correct + assert self.driver.sensor_name == "CLEM_UVVIS_A" # this is probly not correct def test_sensor_model_version(self): assert self.driver.sensor_model_version == 1