Skip to content

Commit

Permalink
CMR-8935: Fixed the 500 error when updating dif10 collection with mis…
Browse files Browse the repository at this point in the history
…sing platform shortname. (#1870)

Co-authored-by: siwei xu <[email protected]>
  • Loading branch information
sxu123 and siwei xu authored Mar 15, 2023
1 parent abd1d68 commit 8911f9c
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 1 deletion.
160 changes: 160 additions & 0 deletions ingest-app/resources/CMR-8935/Dif10-Coll-Missing-Plat-ShortName.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="UTF-8"?>
<DIF xmlns="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/" xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/">
<Entry_ID>
<Short_Name>USAP-1543530</Short_Name>
<Version>1</Version>
</Entry_ID>
<Entry_Title>Collaborative Research: Stability and Dynamics of Antarctic Marine Outlet Glaciers</Entry_Title>
<Personnel>
<Role>INVESTIGATOR</Role>
<Contact_Person>
<First_Name>Cornelis</First_Name>
<Last_Name>van der Veen</Last_Name>
<Address>
<Street_Address>University of Kansas Center for Research Inc</Street_Address>
</Address>
<Email>[email protected]</Email>
</Contact_Person>
</Personnel>
<Personnel>
<Role>INVESTIGATOR</Role>
<Contact_Person>
<First_Name>Leigh</First_Name>
<Last_Name>University of Kansas</Last_Name>
<Email>[email protected]</Email>
</Contact_Person>
</Personnel>
<Personnel>
<Role>INVESTIGATOR</Role>
<Contact_Person>
<First_Name>John</First_Name>
<Last_Name>Paden</Last_Name>
<Email>[email protected]</Email>
</Contact_Person>
</Personnel>
<Science_Keywords>
<Category>EARTH SCIENCE</Category>
<Topic>CRYOSPHERE</Topic>
<Term>GLACIERS/ICE SHEETS</Term>
</Science_Keywords>
<ISO_Topic_Category>GEOSCIENTIFIC INFORMATION</ISO_Topic_Category>
<ISO_Topic_Category>CLIMATOLOGY/METEOROLOGY/ATMOSPHERE</ISO_Topic_Category>
<ISO_Topic_Category>OCEANS</ISO_Topic_Category>
<ISO_Topic_Category>BIOTA</ISO_Topic_Category>
<Ancillary_Keyword>numerical glacier modeling</Ancillary_Keyword>
<Ancillary_Keyword>Antarctica</Ancillary_Keyword>
<Ancillary_Keyword>GLACIERS/ICE SHEETS</Ancillary_Keyword>
<Ancillary_Keyword>ice sheet dynamics</Ancillary_Keyword>
<Ancillary_Keyword>basal sliding</Ancillary_Keyword>
<Ancillary_Keyword>iceberg calving</Ancillary_Keyword>
<Platform>
<Type>Models/Analyses</Type>
<Short_Name/>
<Long_Name/>
<Instrument>
<Short_Name>Not provided</Short_Name>
</Instrument>
</Platform>
<Temporal_Coverage>
<Range_DateTime>
<Beginning_Date_Time>2016-06-01</Beginning_Date_Time>
<Ending_Date_Time>2019-05-31</Ending_Date_Time>
</Range_DateTime>
</Temporal_Coverage>
<Dataset_Progress>COMPLETE</Dataset_Progress>
<Spatial_Coverage>
<Spatial_Coverage_Type>Horizontal</Spatial_Coverage_Type>
<Granule_Spatial_Representation>CARTESIAN</Granule_Spatial_Representation>
<Geometry>
<Coordinate_System>CARTESIAN</Coordinate_System>
<Bounding_Rectangle>
<Southernmost_Latitude>-90</Southernmost_Latitude>
<Northernmost_Latitude>-60</Northernmost_Latitude>
<Westernmost_Longitude>-180</Westernmost_Longitude>
<Easternmost_Longitude>180</Easternmost_Longitude>
</Bounding_Rectangle>
</Geometry>
</Spatial_Coverage>
<Location>
<Location_Category>CONTINENT</Location_Category>
<Location_Type>ANTARCTICA</Location_Type>
</Location>
<Project>
<Short_Name>NSF/OPP</Short_Name>
<Long_Name>Office of Polar Programs, National Science Foundation</Long_Name>
</Project>
<Dataset_Language>English</Dataset_Language>
<Organization>
<Organization_Type>ARCHIVER</Organization_Type>
<Organization_Type>DISTRIBUTOR</Organization_Type>
<Organization_Name>
<Short_Name>USAP-DC</Short_Name>
<Long_Name>United States Polar Program - Data Center</Long_Name>
</Organization_Name>
<Organization_URL>https://www.usap-dc.org/</Organization_URL>
<Personnel>
<Role>DATA CENTER CONTACT</Role>
<Contact_Person>
<First_Name>Data</First_Name>
<Last_Name>Manager</Last_Name>
<Address>
<Street_Address>Lamont-Doherty Earth Observatory</Street_Address>
<Street_Address>61 Route 9W</Street_Address>
<City>Palisades</City>
<State_Province>NY</State_Province>
<Postal_Code>10964</Postal_Code>
<Country>USA</Country>
</Address>
<Email>[email protected]</Email>
</Contact_Person>
</Personnel>
</Organization>
<Summary>
<Abstract>Van der Veen/1543530



The objective of this research is to gain better understanding of the West Antarctic ice flow in the transition region from grounded ice to floating ice shelves and investigate the conditions that can initiate and sustain major retreat of these glaciers. Several major Antarctic outlet glaciers and ice streams will be investigated using a suite of observational techniques and modeling tools. Glaciers include Thwaites Glacier, which has become a focal point in the discussion of West Antarctic retreat, Whillans Ice Stream as an example of the archetype ice stream, and Byrd Glacier, a major outlet glacier draining East Antarctica through the Transantarctic Mountains into the Ross Ice Shelf. This study will investigate whether the ongoing changes in these glaciers will lead to long-term mass loss (the onset of ice sheet collapse), or whether these glaciers will quickly stabilize with a new geometry.



To adequately incorporate the dynamic behavior of outlet glaciers and ice streams requires inclusion of the relevant physical processes, and the development of regional models that employ a numerical grid with a horizontal grid spacing sufficiently refined to capture smaller-scale bed topographic features that may control the flow of these glaciers. This award revisits the issue of stability of marine-terminating glaciers whose grounding line is located on a retrograded bed slope. In particular, an attempt will be made to resolve the question whether observed rapid changes are the result of perturbations at the terminus or grounding line, or whether these changes reflect ice-dynamical forcing over the grounded reaches. High-resolution satellite imagery will be used to investigate ice-flow perturbations on smaller spatial scales than has been done before, to evaluate the importance of localized sites of high basal resistance on grounding-line stability. This collaborative project involves a range of modeling strategies including force-budget analysis, flow-band modeling, Full Stokes modeling for local studies, and using the Ice Sheet System Model developed at JPL for regional modeling. Broader Impacts include training two graduate students in computer simulations and ice sheet modeling algorithms. The work will also expand on a web-based interactive flowline model, so that it includes more realistic grounding line dynamics.</Abstract>
</Summary>
<Related_URL>
<URL_Content_Type>
<Type>VIEW RELATED INFORMATION</Type>
</URL_Content_Type>
<URL>http://www.nsf.gov/awardsearch/showAward.do?AwardNumber=1543530</URL>
<Description>NSF Award Abstract</Description>
</Related_URL>
<Related_URL>
<URL_Content_Type>
<Type>VIEW RELATED INFORMATION</Type>
</URL_Content_Type>
<URL>http://www.nsf.gov/awardsearch/showAward.do?AwardNumber=1543533</URL>
<Description>NSF Award Abstract</Description>
</Related_URL>
<IDN_Node>
<Short_Name>AMD</Short_Name>
</IDN_Node>
<IDN_Node>
<Short_Name>AMD/US</Short_Name>
</IDN_Node>
<IDN_Node>
<Short_Name>CEOS</Short_Name>
</IDN_Node>
<IDN_Node>
<Short_Name>USA/NSF</Short_Name>
</IDN_Node>
<Originating_Metadata_Node>GCMD</Originating_Metadata_Node>
<Metadata_Name>CEOS IDN DIF</Metadata_Name>
<Metadata_Version>VERSION 10.2</Metadata_Version>
<Metadata_Dates>
<Metadata_Creation>2022-10-19</Metadata_Creation>
<Metadata_Last_Revision>2022-10-19</Metadata_Last_Revision>
<Data_Creation>2022-10-19</Data_Creation>
<Data_Last_Revision>2022-10-19</Data_Last_Revision>
</Metadata_Dates>
<Product_Level_Id>NA</Product_Level_Id>
<Collection_Data_Type>SCIENCE_QUALITY</Collection_Data_Type>
</DIF>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(let [platform-alias-map (get (humanizer-alias-cache/get-humanizer-alias-map context) "platform")
current-platforms (map :ShortName (:Platforms concept))
previous-platforms (map :ShortName (:Platforms prev-concept))
platform-aliases (mapcat #(get platform-alias-map %) (map str/upper-case current-platforms))
platform-aliases (mapcat #(get platform-alias-map %) (map util/safe-uppercase current-platforms))
;; Only the deleted ones that are not part of the platform-aliases need to be validated.
deleted-platform-names (s/difference
(set (map util/safe-lowercase previous-platforms))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,24 @@
coll2 "2000-05-01T12:00:00Z" "2000-07-01T12:00:00Z"
["Found granules later than collection end date [2000-07-01T12:00:00.000Z]. Found 1 granules."]))))

(deftest collection-update-platform-missing-shortname-test
;; CMR-8935 Verify after a collection ingested, update it with a missing platform
;; shortname will not throw 500 error.
(let [dif10-coll (d/ingest-concept-with-metadata-file
"CMR-8935/Dif10-Coll-Missing-Plat-ShortName.xml"
{:provider-id "PROV1"
:concept-type :collection
:format-key :dif10
:native-id "dif10-8935"})
dif10-coll-update (d/ingest-concept-with-metadata-file
"CMR-8935/Dif10-Coll-Missing-Plat-ShortName.xml"
{:provider-id "PROV1"
:concept-type :collection
:format-key :dif10
:native-id "dif10-8935"})]
(is (= 201 (:status dif10-coll)))
(is (= 200 (:status dif10-coll-update)))))

(deftest collection-update-platform-test
(let [;; Platform Terra is the humanized alias of AM-1
coll (d/ingest-umm-spec-collection "PROV1" (data-umm-c/collection
Expand Down

0 comments on commit 8911f9c

Please sign in to comment.