Skip to content

Commit

Permalink
Merge pull request #3428 from architecture-building-systems/fixing-in…
Browse files Browse the repository at this point in the history
…appropriate-crs

fixing inappropriate coordinate system
  • Loading branch information
ShiZhongming authored Jan 8, 2024
2 parents 2e4d974 + dbdf3e0 commit 4a0dc30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cea/default.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ scenario.help = Select the scenario you're working on.

multiprocessing = true
multiprocessing.type = BooleanParameter
multiprocessing.help = Multiprocessing (if available) for quicker calculation.
multiprocessing.help = True for quicker calculation.

number-of-cpus-to-keep-free = 1
number-of-cpus-to-keep-free.type = IntegerParameter
Expand Down Expand Up @@ -131,11 +131,11 @@ weather.help = Either a full path to a weather file or the name of one of the we
[radiation]
buildings =
buildings.type = BuildingsParameter
buildings.help = List of buildings considered for the radiation simulation (to simulate all buildings leave blank).
buildings.help = List of buildings considered for the radiation simulation. Leave blank when simulating all buildings.

use-latest-daysim-binaries = true
use-latest-daysim-binaries.type = BooleanParameter
use-latest-daysim-binaries.help = Set true to use latest Daysim binaries which is faster and able to run larger sites, but it produces non-deterministic results. Set false to use the old binary for reproducibility. (only applicable to Windows, will be ignored otherwise)
use-latest-daysim-binaries.help = True to use the latest Daysim binaries which is faster and able to run larger sites, yet producing non-deterministic results. False to use old binary for reproducibility. Applicable only to Windows and will be ignored otherwise.

albedo = 0.2
albedo.type = RealParameter
Expand Down Expand Up @@ -254,11 +254,11 @@ write-sensor-data.category = Advanced
[radiation-simplified]
sample-buildings =
sample-buildings.type = BuildingsParameter
sample-buildings.help = List of buildings to sample for the radiation simulation.
sample-buildings.help = List of buildings to sample for the radiation simulation. Note that this list of sampled buildings must be a subset of the list of buildings selected above.

buffer = 50
buffer.type = RealParameter
buffer.help = Perimeter buffer length around sample buildings (in meters).
buffer.help = Perimeter buffer (m) around sample buildings .

[schedule-maker]
buildings =
Expand Down
4 changes: 2 additions & 2 deletions cea/utilities/standardize_coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def get_geographic_coordinate_system():
def get_projected_coordinate_system(lat, lon):
easting, northing, zone_number, zone_letter = utm.from_latlon(lat, lon)
if zone_letter in "NPQRSTUVWXX":
return "+proj=utm +zone=" + str(zone_number) + " +ellps=WGS84 +datum=WGS84 +units=m +no_defs +south"
elif zone_letter in "CDEFGHJKLM":
return "+proj=utm +zone=" + str(zone_number) + " +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
elif zone_letter in "CDEFGHJKLM":
return "+proj=utm +zone=" + str(zone_number) + " +ellps=WGS84 +datum=WGS84 +units=m +no_defs +south"
else:
Exception('The projected coordinate system is unknown, lon{}, lat{}').format(lat, lon)

Expand Down

0 comments on commit 4a0dc30

Please sign in to comment.