ua-snap / rasdaman-ingest

Collection of ingredients/configurations + docs for ingesting data into Rasdaman
MIT License
3 stars 0 forks source link

Debug jan_min_max_mean temp ingest with missing style #41

Closed charparr closed 2 years ago

charparr commented 2 years ago

The ingest recipe for jan_min_max_mean_temp has four style hooks, three of which were executed successfully when ingesting to Zeus. temp_midcentury_january_min did not wind up on Zeus for some reason (though was later added manually) even though it is indeed in the ingest recipe. Find out why by testing on Apollo once coverages are all stable.

kyleredilla commented 2 years ago

This also appears to have happened for the July coverage, and I would bet it is related. Here is the console output from running that import:

Executing hook 'Create July Midcentury Min Temp Style for WMS Layer'...
Executing shell command 'curl "http://localhost:8080/rasdaman/admin/layer/style/add?COVERAGEID=july_min_max_mean_temp&STYLEID=temp_midcentury_july_min&ABSTRACT=Midcentury%20July%20minimum%20temperatures%2C%202040-2069%2C%20NCAR%20CCSM4%2C%20RCP%208.5&WCPSQUERYFRAGMENT%28condense%20%2B%20over%20%24t%20year%28139%3A168%29%20using%20%24c%5Byear%28%24t%29%2C%20model%286%29%2C%20scenario%283%29%2C%20tempstat%282%29%5D%29%20%2F%2030&COLORTABLETYPE=ColorMap&" --data-urlencode "COLORTABLEDEFINITION={\"type\": \"ramp\", \"colorTable\": {  \"-9999\": [0, 0, 0, 0],       \"-30\": [33, 102, 172, 255],       \"-15\": [103, 169, 207, 255],       \"-5\": [209, 229, 240, 255],       \"0\": [247, 247, 247, 255],       \"5\": [253, 219, 199, 255],       \"15\": [239, 138, 98, 255],       \"30\": [178, 24, 43, 255] } }"'...
Output result '  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1302  100   644  100   658  83865  85688 --:--:-- --:--:-- --:--:-- 94000
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="2.1.0"
    xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"
    xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
    <ows:Exception exceptionCode="InvalidRequest" >
        <ows:ExceptionText>Parameter 'wcpsqueryfragment(condense + over $t year(139:168) using $c[year($t), model(6), scenario(3), tempstat(2)]) / 30' is not valid in request.</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>
'
charparr commented 2 years ago

Totally - this is probably a URL encoding goof / typo that propagated via copy-paste. I'm optimistic we can fix this later

kyleredilla commented 2 years ago

Think I found it, these styles have missing = after &WCPSQUERYFRAGMENT in URLs. Will add and commit those to active styles branch.