diff --git a/nes/nc_projections/latlon_nes.py b/nes/nc_projections/latlon_nes.py index 2e223160eda16ed934da1c25e1d926bafa12a2bf..43a37a82de573b1beda3b4ceb65b5cb897fff33f 100644 --- a/nes/nc_projections/latlon_nes.py +++ b/nes/nc_projections/latlon_nes.py @@ -125,9 +125,11 @@ class LatLonNes(Nes): projection_data = self.variables['crs'] self.free_vars('crs') else: - msg = 'There is no variable called crs, projection has not been defined.' - raise RuntimeError(msg) - + projection_data = {'grid_mapping_name': 'latitude_longitude', + 'semi_major_axis': str(self.earth_radius[1]), + 'inverse_flattening': str(0), + } + if 'dtype' in projection_data.keys(): del projection_data['dtype'] diff --git a/tests/run_scalability_tests_nord3v2.sh b/tests/run_scalability_tests_nord3v2.sh index 214fecdde6de0e6e4d24d6fc14c679ee30a137e5..00039ad30a43a5229d95ca7de94968f32f253b88 100644 --- a/tests/run_scalability_tests_nord3v2.sh +++ b/tests/run_scalability_tests_nord3v2.sh @@ -5,7 +5,7 @@ SRCPATH="/gpfs/scratch/bsc32/bsc32538/NES_tests/NES/tests" module purge module load Python/3.7.4-GCCcore-8.3.0 -module load NES/1.0.0-nord3-v2-foss-2019b-Python-3.7.4 +module load NES/1.1.1-nord3-v2-foss-2019b-Python-3.7.4 for EXE in "1.1-test_read_write_projection.py" "1.2-test_create_projection.py" "1.3-test_selecting.py" "2.1-test_spatial_join.py" "2.2-test_create_shapefile.py" "2.3-test_bounds.py" "2.4-test_cell_area.py" "3.1-test_vertical_interp.py" "3.2-test_horiz_interp_bilinear.py" "3.3-test_horiz_interp_conservative.py" "4.1-test_daily_stats.py" "4.2-test_sum.py" "4.3-test_write_timestep.py" diff --git a/tests/test_bash_mn4.cmd b/tests/test_bash_mn4.cmd index f7450c727a820ded3b18268f9cdb9861e184a321..4a031efb9105f539e3733b3b475520c0fa6f84c9 100644 --- a/tests/test_bash_mn4.cmd +++ b/tests/test_bash_mn4.cmd @@ -15,7 +15,7 @@ module purge module use /gpfs/projects/bsc32/software/suselinux/11/modules/all -module load NES/1.1.0-mn4-foss-2019b-Python-3.7.4 +module load NES/1.1.1-mn4-foss-2019b-Python-3.7.4 module load OpenMPI/4.0.5-GCC-8.3.0-mn4 cd /gpfs/projects/bsc32/models/NES_master/tests || exit diff --git a/tests/test_bash_nord3v2.cmd b/tests/test_bash_nord3v2.cmd index 1ef30c0fe0a983ea217ebc33b4b5ae9affbde4e3..c6b84090175017dfb5b56f7c522c069f7ca2f407 100644 --- a/tests/test_bash_nord3v2.cmd +++ b/tests/test_bash_nord3v2.cmd @@ -14,7 +14,7 @@ module purge -module load NES/1.1.0-nord3-v2-foss-2019b-Python-3.7.4 +module load NES/1.1.1-nord3-v2-foss-2019b-Python-3.7.4 cd /gpfs/projects/bsc32/models/NES_master/tests || exit diff --git a/tutorials/Jupyter_bash_nord3v2.cmd b/tutorials/Jupyter_bash_nord3v2.cmd index be19eba5303809cc295c955ab30bc5e4e1d124cc..94e4666039ac469c5c54a2aadcb386874e95e535 100644 --- a/tutorials/Jupyter_bash_nord3v2.cmd +++ b/tutorials/Jupyter_bash_nord3v2.cmd @@ -25,7 +25,7 @@ localhost:${port} (prefix w/ https:// if using password) # load modules or conda environments here module load jupyterlab/3.0.9-foss-2019b-Python-3.7.4 -module load NES/1.1.0-nord3-v2-foss-2019b-Python-3.7.4 +module load NES/1.1.1-nord3-v2-foss-2019b-Python-3.7.4 # DON'T USE ADDRESS BELOW.