Skip to content

Commit

Permalink
MIR-678 improved weight matrix validation, integration test ported fr…
Browse files Browse the repository at this point in the history
…om Metview regrid testing
  • Loading branch information
pmaciel committed Nov 19, 2024
1 parent 7d75aad commit 8b460ad
Show file tree
Hide file tree
Showing 55 changed files with 337 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/assertions/regrid.001.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=1/1
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.002.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=gridType=lambert_azimuthal_equal_area;latitudeOfFirstGridPointInDegrees=66.982143;longitudeOfFirstGridPointInDegrees=-35.034024;grid=5000./5000.;Ni=1000;Nj=950;standardParallelInDegrees=52.;centralLongitudeInDegrees=10.
# grib_get
gridType=lambert_azimuthal_equal_area
6 changes: 6 additions & 0 deletions tests/assertions/regrid.003.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=gridType=lambert;latitudeOfFirstGridPointInDegrees=52.041;longitudeOfFirstGridPointInDegrees=1.639;grid=2500./2500.;Ni=739;Nj=949;LaDInDegrees=63.;LoVInDegrees=15.
# grib_get
gridType=lambert
6 changes: 6 additions & 0 deletions tests/assertions/regrid.004.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O32 --interpolation=nearest-neighbour --area=20/-40/-20/40
# grib_get
gridName=O32
6 changes: 6 additions & 0 deletions tests/assertions/regrid.005.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O64 --interpolation=grid-box-average
# grib_get
gridName=O64
7 changes: 7 additions & 0 deletions tests/assertions/regrid.006.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
regular_ll.2-2.grib2
# mir
--grid=1/1 --interpolation=grid-box-statistics --interpolation-statistics=maximum
# grib_get
Ni=360
Nj=181
6 changes: 6 additions & 0 deletions tests/assertions/regrid.007.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=N160 --interpolation=k-nearest-neighbours --nearest-method=nclosest-or-nearest --nclosest=10 --distance=100000. --distance-weighting=gaussian --distance-weighting-gaussian-stddev=10000. --non-linear=missing-if-all-missing
# grib_get
gridName=N160
6 changes: 6 additions & 0 deletions tests/assertions/regrid.009.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O320 --interpolation=structured-bilinear
# grib_get
gridName=O320
6 changes: 6 additions & 0 deletions tests/assertions/regrid.010.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O160 --interpolation=structured-bicubic
# grib_get
gridName=O160
6 changes: 6 additions & 0 deletions tests/assertions/regrid.012.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--nabla=scalar-gradient
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.013.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--nabla=scalar-laplacian
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.014.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-gradient --grid=3/3 --uv2uv
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.015.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-vorticity --grid=3/3 --uv2uv
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.016.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-divergence --grid=3/3 --uv2uv
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.017.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--truncation=19
# grib_get
J=19
7 changes: 7 additions & 0 deletions tests/assertions/regrid.018.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--grid=1/1 --intgrid=O20 --spectral-order=cubic
# grib_get
Ni=360
Nj=181
7 changes: 7 additions & 0 deletions tests/assertions/regrid.019.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--grid=1/1 --intgrid=O20 --truncation=19
# grib_get
Ni=360
Nj=181
7 changes: 7 additions & 0 deletions tests/assertions/regrid.020.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=vo_d,level=1,levtype=ml,resol=20.grib2
# mir
--vod2uv
# grib_get
gridType=sh
shortName=u
7 changes: 7 additions & 0 deletions tests/assertions/regrid.021.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=vo_d,level=1,levtype=ml,resol=20.grib2
# mir
--grid=3/3 --vod2uv
# grib_get
gridType=regular_ll
shortName=u
6 changes: 6 additions & 0 deletions tests/assertions/regrid.022.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=5/5
# grib_get
# (none)
6 changes: 6 additions & 0 deletions tests/assertions/regrid.023.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=5/5 --interpolation=grid-box-average
# grib_get
# (none)
11 changes: 11 additions & 0 deletions tests/assertions/regrid.024.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# input
regular_ll.5-5.area.grib1
# mir
--grid=3/3 --globalise=1
# grib_get
numberOfCodedValues=1200
numberOfMissing=6120
latitudeOfFirstGridPointInDegrees=90
latitudeOfLastGridPointInDegrees=-90
longitudeOfFirstGridPointInDegrees=0
longitudeOfLastGridPointInDegrees=357
11 changes: 11 additions & 0 deletions tests/assertions/regrid.025.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# input
regular_ll.5-5.area.grib1
# mir
--grid=3/3 --pre-globalise=1
# grib_get
numberOfCodedValues=1416
numberOfMissing=5904
latitudeOfFirstGridPointInDegrees=90
latitudeOfLastGridPointInDegrees=-90
longitudeOfFirstGridPointInDegrees=0
longitudeOfLastGridPointInDegrees=357
9 changes: 9 additions & 0 deletions tests/assertions/regrid.026.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# input
regular_ll.2-2.grib2
# mir
--grid=0.75/0.75 --basic-angle=decimal
# grib_get
latitudeOfFirstGridPointInDegrees=90
iDirectionIncrement=750000
basicAngleOfTheInitialProductionDomain=0
subdivisionsOfBasicAngle=MISSING
9 changes: 9 additions & 0 deletions tests/assertions/regrid.027.core.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# input
regular_ll.2-2.grib2
# mir
--grid=0.75/0.75 --basic-angle=fraction
# grib_get
latitudeOfFirstGridPoint=120
iDirectionIncrement=1
basicAngleOfTheInitialProductionDomain=3
subdivisionsOfBasicAngle=4
7 changes: 7 additions & 0 deletions tests/assertions/regrid.028.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=u_v,level=1000,resol=20
# mir
--grid=3/3 --uv2uv
# grib_get
gridType=regular_ll
shortName=u
1 change: 1 addition & 0 deletions tests/assertions/regular_ll.5-5.area.grib1
Binary file added tests/data/regular_ll.5-5.area.grib1
Binary file not shown.
6 changes: 6 additions & 0 deletions tests/plans/regrid.001.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=1/1
# plan
Gridded2RegularLL[increments=Increments[west_east=1,south_north=1],bbox=BoundingBox[north=90,west=0,south=-90,east=359],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.002.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=gridType=lambert_azimuthal_equal_area;latitudeOfFirstGridPointInDegrees=66.982143;longitudeOfFirstGridPointInDegrees=-35.034024;grid=5000./5000.;Ni=1000;Nj=950;standardParallelInDegrees=52.;centralLongitudeInDegrees=10.
# plan
Gridded2TypedGrid[grid={"Ni":"1000","Nj":"950","centralLongitudeInDegrees":"10.","grid":"5000./5000.","gridType":"lambert_azimuthal_equal_area","latitudeOfFirstGridPointInDegrees":"66.982143","longitudeOfFirstGridPointInDegrees":"-35.034024","standardParallelInDegrees":"52."},interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.003.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=gridType=lambert;latitudeOfFirstGridPointInDegrees=52.041;longitudeOfFirstGridPointInDegrees=1.639;grid=2500./2500.;Ni=739;Nj=949;LaDInDegrees=63.;LoVInDegrees=15.
# plan
Gridded2TypedGrid[grid={"LaDInDegrees":"63.","LoVInDegrees":"15.","Ni":"739","Nj":"949","grid":"2500./2500.","gridType":"lambert","latitudeOfFirstGridPointInDegrees":"52.041","longitudeOfFirstGridPointInDegrees":"1.639"},interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.004.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O32 --interpolation=nearest-neighbour --area=20/-40/-20/40
# plan
Gridded2NamedGrid[grid=O32,interpolation=nearest-neighbour,method=KNearestNeighbours[nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=BoundingBox[north=20,west=-40,south=-20,east=40],lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,nearestMethod=NearestNeighbourWithLowestIndex[nclosest=4],distanceWeighting=InverseDistanceWeightingSquared[]]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.005.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O64 --interpolation=grid-box-average
# plan
Gridded2NamedGrid[grid=O64,interpolation=grid-box-average,method=GridBoxMethod[name=grid-box-average,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.006.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=1/1 --interpolation=grid-box-statistics --interpolation-statistics=maximum
# plan
Gridded2RegularLL[increments=Increments[west_east=1,south_north=1],bbox=BoundingBox[north=90,west=0,south=-90,east=359],interpolation=grid-box-statistics,method=GridBoxMethod[name=grid-box-statistics,nonLinear[MissingIfHeaviestMissing[]],solver=Statistics[stats=Maximum[nan]],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.007.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=N160 --interpolation=k-nearest-neighbours --nearest-method=nclosest-or-nearest --nclosest=10 --distance=100000. --distance-weighting=gaussian --distance-weighting-gaussian-stddev=10000. --non-linear=missing-if-all-missing
# plan
Gridded2NamedGrid[grid=N160,interpolation=k-nearest-neighbours,method=KNearestNeighbours[nonLinear[MissingIfAllMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,nearestMethod=NClosestOrNearest[nclosest=10,distanceTolerance=1],distanceWeighting=GaussianDistanceWeighting[stddev=10000]]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.009.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O320 --interpolation=structured-bilinear
# plan
Gridded2NamedGrid[grid=O320,interpolation=structured-bilinear,method=ProxyMethod[options=LocalConfiguration[root={type => structured-bilinear , matrix_free => true}],cropping=none]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.010.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=O160 --interpolation=structured-bicubic
# plan
Gridded2NamedGrid[grid=O160,interpolation=structured-bicubic,method=ProxyMethod[options=LocalConfiguration[root={type => structured-bicubic , matrix_free => true}],cropping=none]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.012.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--nabla=scalar-gradient
# plan
ScalarGradient[meshGeneratorParameters=...]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.013.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--nabla=scalar-laplacian
# plan
ScalarLaplacian[meshGeneratorParameters=...]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.014.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-gradient --grid=3/3 --uv2uv
# plan
ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=F21]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=1e-06,validateMesh=0,projectionFail=missing-value]]|AdjustWindsScaleCosLatitude[]|UVGradient[meshGeneratorParameters=...]|Save[packing=simple,output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.015.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-vorticity --grid=3/3 --uv2uv
# plan
ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=F21]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=1e-06,validateMesh=0,projectionFail=missing-value]]|AdjustWindsScaleCosLatitude[]|UVVorticity[meshGeneratorParameters=...]|Save[packing=simple,output=...]
7 changes: 7 additions & 0 deletions tests/plans/regrid.016.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# input
param=u_v,level=1000,resol=20
# mir
--nabla=uv-divergence --grid=3/3 --uv2uv
# plan
ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=F21]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=1e-06,validateMesh=0,projectionFail=missing-value]]|AdjustWindsScaleCosLatitude[]|UVDivergence[meshGeneratorParameters=...]|Save[packing=simple,output=...]

6 changes: 6 additions & 0 deletions tests/plans/regrid.017.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--truncation=19
# plan
ShTruncate[truncation=19]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.018.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--grid=1/1 --intgrid=O20 --spectral-order=cubic
# plan
ShTruncate[truncation=19]|ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=O20]|Gridded2RegularLL[increments=Increments[west_east=1,south_north=1],bbox=BoundingBox[north=90,west=0,south=-90,east=359],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[packing=simple,output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.019.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=z,level=1,levtype=ml,resol=20.grib2
# mir
--grid=1/1 --intgrid=O20 --truncation=19
# plan
ShTruncate[truncation=19]|ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=O20]|Gridded2RegularLL[increments=Increments[west_east=1,south_north=1],bbox=BoundingBox[north=90,west=0,south=-90,east=359],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[packing=simple,output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.020.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=vo_d,level=1,levtype=ml,resol=20.grib2
# mir
--vod2uv
# plan
ShVodToUV[type=local]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.021.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=vo_d,level=1,levtype=ml,resol=20.grib2
# mir
--grid=3/3 --vod2uv
# plan
ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<vod2uv>,grid=F21]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=1e-06,validateMesh=0,projectionFail=missing-value]]|Save[packing=simple,output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.022.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=5/5
# plan
Gridded2RegularLL[increments=Increments[west_east=5,south_north=5],bbox=BoundingBox[north=90,west=0,south=-90,east=355],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.023.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=5/5 --interpolation=grid-box-average
# plan
Gridded2RegularLL[increments=Increments[west_east=5,south_north=5],bbox=BoundingBox[north=90,west=0,south=-90,east=355],interpolation=grid-box-average,method=GridBoxMethod[name=grid-box-average,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.024.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.5-5.area.grib1
# mir
--grid=3/3 --globalise=1
# plan
Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|GlobaliseFilter[]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.025.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.5-5.area.grib1
# mir
--grid=3/3 --pre-globalise=1
# plan
GlobaliseFilter[]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.026.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=0.75/0.75 --basic-angle=decimal
# plan
Gridded2RegularLL[increments=Increments[west_east=0.75,south_north=0.75],bbox=BoundingBox[north=90,west=0,south=-90,east=359.25],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.027.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
regular_ll.2-2.grib2
# mir
--grid=0.75/0.75 --basic-angle=fraction
# plan
Gridded2RegularLL[increments=Increments[west_east=0.75,south_north=0.75],bbox=BoundingBox[north=90,west=0,south=-90,east=359.25],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=0,validateMesh=0,projectionFail=missing-value]]|Save[output=...]
6 changes: 6 additions & 0 deletions tests/plans/regrid.028.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# input
param=u_v,level=1000,resol=20
# mir
--grid=3/3 --uv2uv
# plan
ShToNamedGrid[type=local,cropping=none,options=[4886829aa871a5c38f41fff09ed0970e],invtrans=<scalar>,grid=F21]|Gridded2RegularLL[increments=Increments[west_east=3,south_north=3],bbox=BoundingBox[north=90,west=0,south=-90,east=357],interpolation=linear,method=FiniteElement[name=linear,nonLinear[MissingIfHeaviestMissing[]],solver=Multiply[],cropping=none,lsmWeightAdjustment=0.2,pruneEpsilon=1e-10,poleDisplacement=1e-06,validateMesh=0,projectionFail=missing-value]]|AdjustWindsScaleCosLatitude[]|Save[packing=simple,output=...]
1 change: 1 addition & 0 deletions tests/plans/regular_ll.5-5.area.grib1

0 comments on commit 8b460ad

Please sign in to comment.