From 8eb8c3810d23886a58825796e11566c342ccbcf1 Mon Sep 17 00:00:00 2001
From: Benjamin Renard <benjamin.renard@akka.eu>
Date: Thu, 14 Mar 2024 15:01:07 +0000
Subject: [PATCH] Fix Galileo parameters in sys3

---
 PARAM_DEF/b_jrm09_sys3_can.xml                  | 22 ++++++++++++++++++++++
 PARAM_DEF/b_jrm33_sys3_con.xml                  | 22 ++++++++++++++++++++++
 PARAM_INFO_PREDEFINED/info_b_jrm09_sys3_can.xml |  9 +++++++++
 PARAM_INFO_PREDEFINED/info_b_jrm33_sys3_con.xml |  9 +++++++++
 ParamTemplateList.xml                           | 24 ++++++++++++++++++++++++
 5 files changed, 86 insertions(+), 0 deletions(-)
 create mode 100644 PARAM_DEF/b_jrm09_sys3_can.xml
 create mode 100644 PARAM_DEF/b_jrm33_sys3_con.xml
 create mode 100644 PARAM_INFO_PREDEFINED/info_b_jrm09_sys3_can.xml
 create mode 100644 PARAM_INFO_PREDEFINED/info_b_jrm33_sys3_con.xml

diff --git a/PARAM_DEF/b_jrm09_sys3_can.xml b/PARAM_DEF/b_jrm09_sys3_can.xml
new file mode 100644
index 0000000..aca2aec
--- /dev/null
+++ b/PARAM_DEF/b_jrm09_sys3_can.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<param xml:id="b_jrm09_sys3_can_##sampling##_##can##_##orbit##">
+  <info>
+        <name>b_jrm09 @@orbit@@</name>
+        <short_name>b_jrm09 @@orbit@@</short_name>
+        <components>br,btheta,bphi</components>
+        <units>nT</units>
+        <coordinates_system>SYS3</coordinates_system>
+        <tensor_order/>
+        <si_conversion/>
+        <table/>
+        <fill_value/>
+        <ucd/>
+        <dataset_id/>
+        <instrument_id/>
+  </info>
+  <get>
+	<amdaParam name="##orbit##"/>
+  </get>
+  <process description="jupiter_JRM09_CAN81_bsphr(##sampling##,##orbit##,##can##)">#jupiter_JRM09_CAN81_bsphr((#sampling_classic($##orbit##;##sampling##;5));##can##)</process>
+  <output/>
+</param>
diff --git a/PARAM_DEF/b_jrm33_sys3_con.xml b/PARAM_DEF/b_jrm33_sys3_con.xml
new file mode 100644
index 0000000..5b2f22e
--- /dev/null
+++ b/PARAM_DEF/b_jrm33_sys3_con.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<param xml:id="b_jrm33_sys3_con_##sampling##_##con##_##orbit##">
+  <info>
+        <name>b_jrm33 @@orbit@@</name>
+        <short_name>b_jrm33 @@orbit@@</short_name>
+        <components>br,btheta,bphi</components>
+        <units>nT</units>
+        <coordinates_system>SYS3</coordinates_system>
+        <tensor_order/>
+        <si_conversion/>
+        <table/>
+        <fill_value/>
+        <ucd/>
+        <dataset_id/>
+        <instrument_id/>
+  </info>
+  <get>
+	<amdaParam name="##orbit##"/>
+  </get>
+  <process description="jupiter_JRM33_CON2020_bpol(##sampling##,##orbit##,##can##)">#internalfield_pol((#sampling_classic($##orbit##;##sampling##;5));1;##con##)</process>
+  <output/>
+</param>
diff --git a/PARAM_INFO_PREDEFINED/info_b_jrm09_sys3_can.xml b/PARAM_INFO_PREDEFINED/info_b_jrm09_sys3_can.xml
new file mode 100644
index 0000000..0cf5919
--- /dev/null
+++ b/PARAM_INFO_PREDEFINED/info_b_jrm09_sys3_can.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<paraminfo id="b_jrm09_sys3_can">
+    <dimensions dim_1="3"/>
+    <components>
+		<component index_1="0" name="br"/>
+		<component index_1="1" name="btheta"/>
+		<component index_1="2" name="bphi"/>
+	</components>
+</paraminfo>
diff --git a/PARAM_INFO_PREDEFINED/info_b_jrm33_sys3_con.xml b/PARAM_INFO_PREDEFINED/info_b_jrm33_sys3_con.xml
new file mode 100644
index 0000000..5231d67
--- /dev/null
+++ b/PARAM_INFO_PREDEFINED/info_b_jrm33_sys3_con.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<paraminfo id="b_jrm33_sys3_con">
+    <dimensions dim_1="3"/>
+    <components>
+		<component index_1="0" name="br"/>
+		<component index_1="1" name="btheta"/>
+		<component index_1="2" name="bphi"/>
+	</components>
+</paraminfo>
diff --git a/ParamTemplateList.xml b/ParamTemplateList.xml
index c42587d..5873f65 100644
--- a/ParamTemplateList.xml
+++ b/ParamTemplateList.xml
@@ -1162,6 +1162,18 @@
             <param>b_jrm09_can_60_1_gll_xyz_iau</param>
         </predefined>
 	</paramTemplate>
+        <paramTemplate paramId="b_jrm09_sys3_can" fileName="b_jrm09_sys3_can_##sampling##_##can##_##orbit##">
+		<arguments>
+			<argument key="sampling" name="Time Step (sec)" type="float" default="60"/>
+			<argument key="can" name="Use CAN81 model" type="bool" default="1"/>
+			<argument key="orbit" name="Spacecraft Orbit" type="list" default="gll_xyz_iau">
+				<item key="gll_xyz_iau" name="Galileo"/>
+			</argument>
+		</arguments>
+            <predefined> 
+                <param>b_jrm09_sys3_can_60_1_gll_xyz_iau</param>
+            </predefined>
+	</paramTemplate>
     <paramTemplate paramId="b_jrm09_can_tot" fileName="b_jrm09_can_tot_##sampling##_##can##_##orbit##">
 		<arguments>
 			<argument key="sampling" name="Time Step (sec)" type="float" default="60"/>
@@ -1206,6 +1218,18 @@
                         <param>b_jrm33_con_60_1_gll_xyz_iau</param>
                 </predefined>
         </paramTemplate>
+        <paramTemplate paramId="b_jrm33_sys3_con" fileName="b_jrm33_sys3_con_##sampling##_##con##_##orbit##">
+		<arguments>
+			<argument key="sampling" name="Time Step (sec)" type="float" default="60"/>
+			<argument key="con" name="Use Con2020 model" type="bool" default="1"/>
+			<argument key="orbit" name="Spacecraft Orbit" type="list" default="gll_xyz_iau">
+				<item key="gll_xyz_iau" name="Galileo"/>
+			</argument>
+		</arguments>
+            <predefined> 
+                <param>b_jrm33_sys3_con_60_1_gll_xyz_iau</param>
+            </predefined>
+	</paramTemplate>
         <paramTemplate paramId="b_jrm33_con_tot" fileName="b_jrm33_con_tot_##sampling##_##con##_##orbit##">
                 <arguments>
                         <argument key="sampling" name="Time Step (sec)" type="float" default="60"/>
--
libgit2 0.21.2