-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from NASA-PDS/i681
Update precision check to be less than or equal to
- Loading branch information
Showing
6 changed files
with
168 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.xsd"> | ||
<Identification_Area> | ||
<logical_identifier>urn:nasa:pds:bundle:collection:ff_char_test</logical_identifier> | ||
<version_id>1.0</version_id> | ||
<title>Field Format Character Test</title> | ||
<information_model_version>1.20.0.0</information_model_version> | ||
<product_class>Product_Observational</product_class> | ||
</Identification_Area> | ||
<Observation_Area> | ||
<Time_Coordinates> | ||
<start_date_time>2023Z</start_date_time> | ||
<stop_date_time>2023Z</stop_date_time> | ||
</Time_Coordinates> | ||
<Investigation_Area> | ||
<name>None</name> | ||
<type>Other Investigation</type> | ||
<Internal_Reference> | ||
<lid_reference>urn:nasa:pds:context:investigation:individual.none</lid_reference> | ||
<reference_type>data_to_investigation</reference_type> | ||
</Internal_Reference> | ||
</Investigation_Area> | ||
<Observing_System> | ||
<Observing_System_Component> | ||
<name>telescope</name> | ||
<type>Instrument</type> | ||
</Observing_System_Component> | ||
</Observing_System> | ||
<Target_Identification> | ||
<name>target</name> | ||
<type>Comet</type> | ||
</Target_Identification> | ||
</Observation_Area> | ||
<File_Area_Observational> | ||
<File> | ||
<file_name>ff_test_fail.csv</file_name> | ||
</File> | ||
<Table_Character> | ||
<offset unit="byte">0</offset> | ||
<records>3</records> | ||
<record_delimiter>Carriage-Return Line-Feed</record_delimiter> | ||
<Record_Character> | ||
<fields>3</fields> | ||
<groups>0</groups> | ||
<record_length unit="byte">22</record_length> | ||
<Field_Character> | ||
<name>field 1</name> | ||
<field_number>1</field_number> | ||
<field_location unit="byte">1</field_location> | ||
<data_type>ASCII_Real</data_type> | ||
<field_length unit="byte">6</field_length> | ||
<field_format>%6.2f</field_format> | ||
</Field_Character> | ||
<Field_Character> | ||
<name>field 2</name> | ||
<field_number>2</field_number> | ||
<field_location unit="byte">8</field_location> | ||
<data_type>ASCII_Real</data_type> | ||
<field_length unit="byte">4</field_length> | ||
<field_format>%4.2f</field_format> | ||
</Field_Character> | ||
<Field_Character> | ||
<name>field 3</name> | ||
<field_number>3</field_number> | ||
<field_location unit="byte">13</field_location> | ||
<data_type>ASCII_Real</data_type> | ||
<field_length unit="byte">8</field_length> | ||
<field_format>%8.3e</field_format> | ||
</Field_Character> | ||
</Record_Character> | ||
</Table_Character> | ||
</File_Area_Observational> | ||
</Product_Observational> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1K00.xsd"> | ||
<Identification_Area> | ||
<logical_identifier>urn:nasa:pds:bundle:collection:ff_del_test</logical_identifier> | ||
<version_id>1.0</version_id> | ||
<title>Field Format Delimited Test</title> | ||
<information_model_version>1.20.0.0</information_model_version> | ||
<product_class>Product_Observational</product_class> | ||
</Identification_Area> | ||
<Observation_Area> | ||
<Time_Coordinates> | ||
<start_date_time>2023Z</start_date_time> | ||
<stop_date_time>2023Z</stop_date_time> | ||
</Time_Coordinates> | ||
<Investigation_Area> | ||
<name>None</name> | ||
<type>Other Investigation</type> | ||
<Internal_Reference> | ||
<lid_reference>urn:nasa:pds:context:investigation:individual.none</lid_reference> | ||
<reference_type>data_to_investigation</reference_type> | ||
</Internal_Reference> | ||
</Investigation_Area> | ||
<Observing_System> | ||
<Observing_System_Component> | ||
<name>telescope</name> | ||
<type>Instrument</type> | ||
</Observing_System_Component> | ||
</Observing_System> | ||
<Target_Identification> | ||
<name>target</name> | ||
<type>Comet</type> | ||
</Target_Identification> | ||
</Observation_Area> | ||
<File_Area_Observational> | ||
<File> | ||
<file_name>ff_test_fail.csv</file_name> | ||
</File> | ||
<Table_Delimited> | ||
<offset unit="byte">0</offset> | ||
<parsing_standard_id>PDS DSV 1</parsing_standard_id> | ||
<records>3</records> | ||
<record_delimiter>Carriage-Return Line-Feed</record_delimiter> | ||
<field_delimiter>Comma</field_delimiter> | ||
<Record_Delimited> | ||
<fields>3</fields> | ||
<groups>0</groups> | ||
<Field_Delimited> | ||
<name>field 1</name> | ||
<field_number>1</field_number> | ||
<data_type>ASCII_Real</data_type> | ||
<field_format>%6.2f</field_format> | ||
</Field_Delimited> | ||
<Field_Delimited> | ||
<name>field 2</name> | ||
<field_number>2</field_number> | ||
<data_type>ASCII_Real</data_type> | ||
<field_format>%4.2f</field_format> | ||
</Field_Delimited> | ||
<Field_Delimited> | ||
<name>field 3</name> | ||
<field_number>3</field_number> | ||
<data_type>ASCII_Real</data_type> | ||
<field_format>%8.3e</field_format> | ||
</Field_Delimited> | ||
</Record_Delimited> | ||
</Table_Delimited> | ||
</File_Area_Observational> | ||
</Product_Observational> |
2 changes: 1 addition & 1 deletion
2
.../resources/github681/ff_test_no_space.csv → ...test/resources/github681/ff_test_fail.csv
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
124.64,8.29,8.623e04 | ||
154.64,2.2,8.653e04 | ||
154.64,.222,8.653e04 | ||
194.64,8.93,8.673e04 |