Skip to content

Commit

Permalink
Update coredefs.jl (#45)
Browse files Browse the repository at this point in the history
* Update coredefs.jl

Added some common names found in my experience. Not sure how letter case is handled? e.g. I often find x and sometimes X for longitudes, etc. Hence, right now I only added `t` and not `T`.

* Update Project.toml

Patch number increased
  • Loading branch information
Balinus authored Mar 23, 2021
1 parent 1fe1023 commit fb86d0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ClimateBase"
uuid = "35604d93-0fb8-4872-9436-495b01d137e2"
authors = ["Datseris <[email protected]>", "Philippe Roy <[email protected]>"]
version = "0.11.2"
version = "0.11.3"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
5 changes: 5 additions & 0 deletions src/core/coredefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ A dictionary of common names of dimensions (as strings) to actual dimension type
const COMMONNAMES = Dict(
"lat" => Lat,
"latitude" => Lat,
"y" => Lat,
"yc" => Lat,
"lon" => Lon,
"long" => Lon,
"x" => Lon,
"xc" => Lon,
"longitude" => Lon,
"time" => Time,
"t" => Time,
"height" => Hei,
"altitude" => Hei,
"pressure" => Pre,
Expand Down

0 comments on commit fb86d0c

Please sign in to comment.