Skip to content

Commit

Permalink
An urgent debug for RegionGrids Generalized Grids
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Jan 17, 2025
1 parent bd2785c commit 821de89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RegionGrids"
uuid = "ecebd26c-3930-4a82-94f6-9df2a191b288"
authors = ["Nathanael Wong <[email protected]>"]
version = "0.0.2"
version = "0.0.3"
desc = "Extracting and Subsetting Gridded Data for a given Geographical Region"

[deps]
Expand Down
4 changes: 2 additions & 2 deletions src/grid/generalized.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function RegionGrid(
mask[iilon,iilat] = 1
wgts[iilon,iilat] = cosd.(lat[iilon,iilat])
else
mask[ii] = NaN
wgts[ii] = 0
mask[iilon,iilat] = NaN
wgts[iilon,iilat] = 0
end
end

Expand Down

0 comments on commit 821de89

Please sign in to comment.