Skip to content

Commit

Permalink
Merge more changes from develop (#111)
Browse files Browse the repository at this point in the history
* Revert to develop status

* Fix bugs in getting wrf domain

* Version to 0.2.2 and update NEWS.md

* Fix some indenting and ordering in define_harp_params()
  • Loading branch information
andrew-MET authored Feb 2, 2024
1 parent 6b70097 commit 9fe51a1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions R/harp_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ define_harp_params <- function() {
fa = list(
name = pad_string("CLSMAXI.TEMPERAT", 16),
units = "K"
),
),

obsoul = list(
name = 82,
Expand Down Expand Up @@ -456,7 +456,7 @@ define_harp_params <- function() {

func = function(u, v) sqrt(u ^ 2 + v ^ 2)

),
),
###

d10m = list(
Expand Down Expand Up @@ -1163,7 +1163,7 @@ define_harp_params <- function() {
fa = list(
name = pad_string("SURFNEBUL.TOTALE", 16),
units = "fraction"
),
),

obsoul = list(
name = 91,
Expand Down Expand Up @@ -1371,13 +1371,13 @@ define_harp_params <- function() {
name = "PE1",
param_units = "kg/m^2",
type = "SYNOP"
),
),

obsoul = list(
name = 79,
units = "mm",
harp_name = "AccPcp1h"

)
),
###
Expand Down Expand Up @@ -1410,7 +1410,7 @@ define_harp_params <- function() {
name = "PE6",
param_units = "kg/m^2",
type = "SYNOP"
),
),

obsoul = list(
name = 80,
Expand Down Expand Up @@ -1453,6 +1453,17 @@ define_harp_params <- function() {
),
###

snow = list(

description = "Snow depth",

obsoul = list(
name = 92,
units = "cm",
harp_name = "Snow"
)
),

################
### PRESSURE ###
################
Expand Down Expand Up @@ -1766,21 +1777,10 @@ define_harp_params <- function() {
units = "J/kg"
)

),
)
###

snow = list (

description = "Snow depth",

obsoul = list(
name = 92,
units = "cm",
harp_name = "Snow"

)
)
)

}

Expand Down
2 changes: 1 addition & 1 deletion R/show_param_defs.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ show_param_defs <- function(
}

if (file_format == "fa") {
stop("Doesn't work FA params yet", call. = FALSE)
stop("Doesn't work for FA params yet", call. = FALSE)
}

params <- dplyr::arrange(
Expand Down
Binary file modified data/harp_params.rda
Binary file not shown.

0 comments on commit 9fe51a1

Please sign in to comment.