Ero sivun ”Malline:ObsSNOWLOAD” versioiden välillä
Järvi-meriwikistä
Rivi 27: | Rivi 27: | ||
|ObsCode=snow | |ObsCode=snow | ||
|Tyyppi=Lumitilanne | |Tyyppi=Lumitilanne | ||
− | |Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat| | + | |Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|100}}}}} |
|Maastotyyppi={{{TERRAINcat|}}} | |Maastotyyppi={{{TERRAINcat|}}} | ||
− | |Lumen paksuus={{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}|{{#ifeq: {{{SNOWcat|}}}|0|0 cm }} }} }}|.|,}} | + | |Lumen paksuus={{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}|{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 cm }} }} }}|.|,}} |
|Sample weight={{#if: {{{WEIGHTval|}}}|{{#replace:{{{WEIGHTval|}}}|.|,}} {{{WEIGHTunit|kg}}}|}} | |Sample weight={{#if: {{{WEIGHTval|}}}|{{#replace:{{{WEIGHTval|}}}|.|,}} {{{WEIGHTunit|kg}}}|}} | ||
|Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}}|}} | |Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}}|}} | ||
− | |Lumikuorma={{#ifeq: {{{SNOWcat| | + | |Lumikuorma={{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 kg/m²|{{#replace: |
{{#if: {{{LOADval|}}} | {{#if: {{{LOADval|}}} | ||
|{{{LOADval|}}} {{{LOADunit|kg/m²}}} | |{{{LOADval|}}} {{{LOADunit|kg/m²}}} | ||
Rivi 78: | Rivi 78: | ||
|{{#if: {{{DEPTHval|}}} | |{{#if: {{{DEPTHval|}}} | ||
|, "val": {{#replace:{{{DEPTHval|}}}|,|.}}, "unit": "{{{DEPTHunit|cm}}}" | |, "val": {{#replace:{{{DEPTHval|}}}|,|.}}, "unit": "{{{DEPTHunit|cm}}}" | ||
− | |{{#ifeq: {{{SNOWcat|}}}|0 | + | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 |
|, "val": 0, "unit": "{{{DEPTHunit|cm}}}" | |, "val": 0, "unit": "{{{DEPTHunit|cm}}}" | ||
|, "val": -999, "unit": "" | |, "val": -999, "unit": "" | ||
Rivi 93: | Rivi 93: | ||
10000 | 10000 | ||
}}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | }}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | ||
− | |{{#ifeq: {{{SNOWcat|}}}|0 | + | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 |
|, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | ||
|, "load": -999, "loadunit": "" | |, "load": -999, "loadunit": "" | ||
}} | }} | ||
}} | }} | ||
− | |{{#ifeq: {{{SNOWcat|}}}|0 | + | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 |
|, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | ||
|, "load": -999, "loadunit": "" | |, "load": -999, "loadunit": "" |