Skip to content

Commit

Permalink
Merge pull request #54 from euroargodev/v0p1p18b
Browse files Browse the repository at this point in the history
better handle MITPROFclim_download
  • Loading branch information
gaelforget authored Mar 31, 2024
2 parents 60f66e6 + a0d3945 commit 656f95d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ArgoData"
uuid = "9eb831cf-c491-48dc-bed4-6aca718df73c"
authors = ["gaelforget <[email protected]>"]
version = "0.1.18"
version = "0.1.19"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Dataverse = "9c0b9be8-e31e-490f-90fe-77697562404d"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
MITgcm = "dce5fa8e-68ce-4431-a242-9469c69627a0"
NCDatasets = "85f8d34a-cbdd-5861-8df4-14fed0d494ab"
OceanStateEstimation = "891f6deb-a4f5-4bc5-a2e3-1e8f649cdd2c"
PlutoSliderServer = "2fc8631c-6f24-4c5b-bca7-cbb509c42db4"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Documenter, ArgoData, PlutoSliderServer

using MITgcm; gridded_fields=GriddedFields.load()
using OceanStateEstimation, MITgcm; OceanStateEstimation.MITPROFclim_download()

#python dependencies
if false
Expand Down
8 changes: 5 additions & 3 deletions src/tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ module GriddedFields

using MeshArrays, Statistics

import OceanStateEstimation.MITPROFclim_download
import OceanStateEstimation.ScratchSpaces
import ArgoData.MITprofStandard
import ArgoData.ArgoTools
Expand Down Expand Up @@ -688,15 +687,18 @@ Originally this function returned `Γ,msk,T,S,σT,σS,array`.
The embeded `array()` function returns a 2D array initialized to `missing`.
And `array(1)`, `array(3,2)`, etc add dimensions to the resulting array.
```
using OceanStateEstimation, MITgcm; OceanStateEstimation.MITPROFclim_download()
using ArgoData; gridded_fields=GriddedFields.load()
```
"""
function load()
γ=GridSpec("LatLonCap",MeshArrays.GRID_LLC90)
Γ=GridLoad(γ,option="full")

msk=NaN_mask(Γ)

MITPROFclim_download()

pth=joinpath(ScratchSpaces.MITprof,"gcmfaces_climatologies")
T=MonthlyClimatology(joinpath(pth,"T_OWPv1_M_eccollc_90x50.bin"),msk)
S=MonthlyClimatology(joinpath(pth,"S_OWPv1_M_eccollc_90x50.bin"),msk)
Expand Down
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using ArgoData, MeshArrays, MITgcm, Test
using ArgoData, MeshArrays, Test

using OceanStateEstimation, MITgcm; OceanStateEstimation.MITPROFclim_download()

@testset "ArgoData.jl" begin

Expand Down

0 comments on commit 656f95d

Please sign in to comment.