We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7423428 commit 8231aaaCopy full SHA for 8231aaa
python/extpar_art_to_buffer.py
@@ -164,15 +164,10 @@ def get_fraction_per_soil_type(soil_id):
164
vlons = np.array(tg.vlons)
165
vlats = np.array(tg.vlats)
166
167
-lon_min = np.min(vlons)
168
-lon_max = np.max(vlons)
169
-lat_min = np.min(vlats)
170
-lat_max = np.max(vlats)
171
-
172
-print("LON MIN", lon_min)
173
-print("LON MAX", lon_max)
174
-print("LAT MIN", lat_min)
175
-print("LAT MAX", lat_max)
+lon_min = max(np.min(vlons), -180.0)
+lon_max = min(np.max(vlons), 180.0)
+lat_min = max(np.min(vlats), -90.0)
+lat_max = min(np.max(vlats), 90.0)
176
177
lon_mask = (raw_lon >= lon_min) & (raw_lon <= lon_max)
178
lat_mask = (raw_lat >= lat_min) & (raw_lat <= lat_max)
0 commit comments