Skip to content

Commit

Permalink
CMR-9518 Modified code to get the correct extensions for the output f…
Browse files Browse the repository at this point in the history
…ormat.
  • Loading branch information
siwei xu authored and siwei xu committed Dec 10, 2023
1 parent 6d615ef commit 454f2cb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions other/cmr-exchange/ous-plugin/src/cmr/ous/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,15 @@
#(granule-link->opendap-url % tag-data))
granule-links)
format (or (:format params) const/default-format)
dap-format (if (and (is-dap-version-4? dap-version)
(= "nc" format))
dap-format (if (or (and (is-dap-version-4? dap-version)
(= "nc" format))
(and (is-dap-version-4? dap-version)
(= "nc4" format)))
"dap.nc4"
format)]
(if (and (is-dap-version-4? dap-version)
(= "ascii" format))
"dap.csv"
format))]
(if (errors/any-erred? urls)
(do
(log/error "Some problematic urls:" (vec urls))
Expand Down

0 comments on commit 454f2cb

Please sign in to comment.