Skip to content

Commit 1dcc42d

Browse files
Merge pull request #119 from Projeto-Jupiter/develop
WIP: Last touches for release 0.9.9
2 parents 04ca5a1 + 623171c commit 1dcc42d

File tree

15 files changed

+232
-139
lines changed

15 files changed

+232
-139
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
project = "RocketPy"
2222
copyright = "2020, Projeto Jupiter"
23-
author = "Giovani Hdalgo Ceotto"
23+
author = "Giovani Hidalgo Ceotto"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.9.8"
26+
release = "0.9.9"
2727

2828

2929
# -- General configuration ---------------------------------------------------
240 KB
Binary file not shown.

docs/user/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to choose a specific version to guarantee compatibility, you may ins
1919

2020
.. code-block:: shell
2121
22-
pip install rocketpy==0.9.8
22+
pip install rocketpy==0.9.9
2323
2424
2525
Optional Installation Method: ``conda``

rocketpy/Environment.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Environment:
4646
Environment.earthRadius : float
4747
Value of Earth's Radius = 6.3781e6 m.
4848
Environment.airGasConstant : float
49-
Value of Air's Gast Constant = 287.05287 J/K/Kg
49+
Value of Air's Gas Constant = 287.05287 J/K/Kg
5050
5151
Gravity and Launch Rail Length:
5252
Environment.rl : float
@@ -82,14 +82,14 @@ class Environment:
8282
Environment.date : datetime
8383
Date time of launch.
8484
85-
Topographic informations:
85+
Topographic information:
8686
Environment.elevLonArray: array
8787
Unidimensional array containing the longitude coordinates
8888
Environment.elevLatArray: array
8989
Unidimensional array containing the latitude coordinates
9090
Environment.elevArray: array
9191
Two-dimensional Array containing the elevation information
92-
Environment.topograficProfileAticvated: bool
92+
Environment.topographicProfileActivated: bool
9393
True if the user already set a topographic plofile
9494
9595
Atmosphere Static Conditions:
@@ -167,7 +167,7 @@ class Environment:
167167
'CustomAtmosphere', 'WyomingSounding', 'NOAARucSounding',
168168
'Forecast', 'Reanalysis', 'Ensemble'.
169169
Environment.atmosphericModelFile : string
170-
Adress of the file used for the atmospheric model being used.
170+
Address of the file used for the atmospheric model being used.
171171
Only defined for 'WyomingSounding', 'NOAARucSounding',
172172
'Forecast', 'Reanalysis', 'Ensemble'
173173
Environment.atmosphericModelDict : dictionary
@@ -332,7 +332,7 @@ def __init__(
332332
-------
333333
None
334334
"""
335-
# Save launch rail ength
335+
# Save launch rail length
336336
self.rL = railLength
337337

338338
# Save gravity value
@@ -504,7 +504,7 @@ def setTopographicProfile(self, type, file, dictionary="netCDF4", crs=None):
504504
NASADEM data products were derived from original telemetry data from
505505
the Shuttle Radar Topography Mission (SRTM).
506506
file : string
507-
The path/name of the topografic file. Usually .nc provided by
507+
The path/name of the topographic file. Usually .nc provided by
508508
dictionary : string, optional
509509
Dictionary which helps to read the specified file. By default
510510
'netCDF4' which works well with .nc files will be used.
@@ -520,7 +520,7 @@ def setTopographicProfile(self, type, file, dictionary="netCDF4", crs=None):
520520
self.elevLatArray = rootgrp.variables["lat"][:].tolist()
521521
self.elevArray = rootgrp.variables["NASADEM_HGT"][:].tolist()
522522
# crsArray = rootgrp.variables['crs'][:].tolist().
523-
self.topograficProfileAticvated = True
523+
self.topographicProfileActivated = True
524524

525525
print("Region covered by the Topographical file: ")
526526
print(
@@ -559,7 +559,7 @@ def getElevationFromTopograghicProfile(self, lat, lon):
559559
ValueError
560560
[description]
561561
"""
562-
if self.topograficProfileAticvated == False:
562+
if self.topographicProfileActivated == False:
563563
print(
564564
"You must define a Topographic profile first, please use the method Environment.setTopograghicProfile()"
565565
)
@@ -750,7 +750,7 @@ def setAtmosphericModel(
750750
String that must be given when type is either
751751
'WyomingSounding', 'Forecast', 'Reanalysis' or 'Ensemble'.
752752
It specifies the location of the data given, either through
753-
a local file adress or a URL.
753+
a local file address or a URL.
754754
If type is 'Forecast', this parameter can also be either
755755
'GFS', 'FV3', 'RAP' or 'NAM' for latest of these forecasts.
756756
References: GFS: Global - 0.25deg resolution - Updates every 6 hours, forecast for 81 points spaced by 3 hours
@@ -759,15 +759,15 @@ def setAtmosphericModel(
759759
NAM: Regional CONUS Nest - 5 km resolution - Updates every 6 hours, forecast for 21 points spaced by 3 hours
760760
If type is 'Ensemble', this parameter can also be either
761761
'GEFS', or 'CMC' for the latest of these ensembles.
762-
Refrences: GEFS: Global, bias-corrected, 0.5deg resolution, 21 forecast members, Updates every 6 hours, forecast for 65 points spaced by 4 hours
762+
References: GEFS: Global, bias-corrected, 0.5deg resolution, 21 forecast members, Updates every 6 hours, forecast for 65 points spaced by 4 hours
763763
CMC: Global, 0.5deg resolution, 21 forecast members, Updates every 12 hours, forecast for 65 points spaced by 4 hours
764764
dictionary : dictionary, string, optional
765765
Dictionary that must be given when type is either
766766
'Forecast', 'Reanalysis' or 'Ensemble'.
767767
It specifies the dictionary to be used when reading netCDF
768768
and OPeNDAP files, allowing the correct retrieval of data.
769769
Acceptable values include 'ECMWF', 'NOAA' and 'UCAR' for
770-
default dicitonaries which can generally be used to read
770+
default dictionaries which can generally be used to read
771771
datasets from these institutes.
772772
Alternatively, a dictionary structure can also be given,
773773
specifying the short names used for time, latitude, longitude,
@@ -799,7 +799,7 @@ def setAtmosphericModel(
799799
meters while the second column must be the pressure in Pa.
800800
If an array is given, it is expected to be a list or array
801801
of coordinates (height in meters, pressure in Pa).
802-
Finally, a callable or function is also acepted. The
802+
Finally, a callable or function is also accepted. The
803803
function should take one argument, the height above sea
804804
level in meters and return a corresponding pressure in Pa.
805805
temperature : float, string, array, callable, optional
@@ -814,7 +814,7 @@ def setAtmosphericModel(
814814
meters while the second column must be the temperature in K.
815815
If an array is given, it is expected to be a list or array
816816
of coordinates (height in meters, temperature in K).
817-
Finally, a callable or function is also acepted. The
817+
Finally, a callable or function is also accepted. The
818818
function should take one argument, the height above sea
819819
level in meters and return a corresponding temperature in K.
820820
wind_u : float, string, array, callable, optional
@@ -830,7 +830,7 @@ def setAtmosphericModel(
830830
meters while the second column must be the wind-u in m/s.
831831
If an array is given, it is expected to be an array of
832832
coordinates (height in meters, wind-u in m/s).
833-
Finally, a callable or function is also acepted. The
833+
Finally, a callable or function is also accepted. The
834834
function should take one argument, the height above sea
835835
level in meters and return a corresponding wind-u in m/s.
836836
wind_v : float, string, array, callable, optional
@@ -846,7 +846,7 @@ def setAtmosphericModel(
846846
meters while the second column must be the wind-v in m/s.
847847
If an array is given, it is expected to be an array of
848848
coordinates (height in meters, wind-v in m/s).
849-
Finally, a callable or function is also acepted. The
849+
Finally, a callable or function is also accepted. The
850850
function should take one argument, the height above sea
851851
level in meters and return a corresponding wind-v in m/s.
852852
@@ -1249,7 +1249,7 @@ def processCustomAtmosphere(
12491249
meters while the second column must be the pressure in Pa.
12501250
If an array is given, it is expected to be a list or array
12511251
of coordinates (height in meters, pressure in Pa).
1252-
Finally, a callable or function is also acepted. The
1252+
Finally, a callable or function is also accepted. The
12531253
function should take one argument, the height above sea
12541254
level in meters and return a corresponding pressure in Pa.
12551255
temperature : float, string, array, callable, optional
@@ -1264,7 +1264,7 @@ def processCustomAtmosphere(
12641264
meters while the second column must be the temperature in K.
12651265
If an array is given, it is expected to be a list or array
12661266
of coordinates (height in meters, temperature in K).
1267-
Finally, a callable or function is also acepted. The
1267+
Finally, a callable or function is also accepted. The
12681268
function should take one argument, the height above sea
12691269
level in meters and return a corresponding temperature in K.
12701270
wind_u : float, string, array, callable, optional
@@ -1280,7 +1280,7 @@ def processCustomAtmosphere(
12801280
meters while the second column must be the wind-u in m/s.
12811281
If an array is given, it is expected to be an array of
12821282
coordinates (height in meters, wind-u in m/s).
1283-
Finally, a callable or function is also acepted. The
1283+
Finally, a callable or function is also accepted. The
12841284
function should take one argument, the height above sea
12851285
level in meters and return a corresponding wind-u in m/s.
12861286
wind_v : float, string, array, callable, optional
@@ -1296,7 +1296,7 @@ def processCustomAtmosphere(
12961296
meters while the second column must be the wind-v in m/s.
12971297
If an array is given, it is expected to be an array of
12981298
coordinates (height in meters, wind-v in m/s).
1299-
Finally, a callable or function is also acepted. The
1299+
Finally, a callable or function is also accepted. The
13001300
function should take one argument, the height above sea
13011301
level in meters and return a corresponding wind-v in m/s.
13021302
@@ -1402,7 +1402,7 @@ def processWyomingSounding(self, file):
14021402
----------
14031403
file : string
14041404
URL of an upper air sounding data output from Wyoming
1405-
Upper Air Soundigs database.
1405+
Upper Air Soundings database.
14061406
Example:
14071407
http://weather.uwyo.edu/cgi-bin/sounding?region=samer&TYPE=TEXT%3ALIST&YEAR=2019&MONTH=02&FROM=0200&TO=0200&STNM=82599
14081408
More can be found at:
@@ -1720,7 +1720,7 @@ def processForecastReanalysis(self, file, dictionary):
17201720
used for time, latitude, longitude, pressure levels,
17211721
temperature profile, geopotential or geopotential height
17221722
profile, wind-u and wind-v profiles in the dataset given in
1723-
the file parameter. An example is the following dicitonary,
1723+
the file parameter. An example is the following dictionary,
17241724
generally used to read OPeNDAP files from NOAA's NOMAD
17251725
server: {'time': 'time',
17261726
'latitude': 'lat',
@@ -1749,8 +1749,8 @@ def processForecastReanalysis(self, file, dictionary):
17491749
raise TypeError(
17501750
"Please specify Location (lat, lon). when "
17511751
"initializing this Environment. "
1752-
"Alternatively, use the Environment.setLoc"
1753-
"ation method."
1752+
"Alternatively, use the Environment."
1753+
"setLocation method."
17541754
)
17551755

17561756
# Read weather file
@@ -2108,14 +2108,14 @@ def processEnsemble(self, file, dictionary):
21082108
file : string
21092109
String containing path to local netCDF file or URL of an
21102110
OPeNDAP file, such as NOAA's NOMAD or UCAR TRHEDDS server.
2111-
dicitonary : dictionary
2111+
dictionary : dictionary
21122112
Specifies the dictionary to be used when reading netCDF and
21132113
OPeNDAP files, allowing for the correct retrieval of data.
21142114
The dictionary structure should specify the short names
21152115
used for time, latitude, longitude, pressure levels,
21162116
temperature profile, geopotential or geopotential height
21172117
profile, wind-u and wind-v profiles in the dataset given in
2118-
the file parameter. An example is the following dicitonary,
2118+
the file parameter. An example is the following dictionary,
21192119
generally used to read OPeNDAP files from NOAA's NOMAD
21202120
server: {'time': 'time',
21212121
'latitude': 'lat',
@@ -2144,8 +2144,8 @@ def processEnsemble(self, file, dictionary):
21442144
raise TypeError(
21452145
"Please specify Location (lat, lon). when "
21462146
"initializing this Environment. "
2147-
"Alternatively, use the Environment.setLoc"
2148-
"ation method."
2147+
"Alternatively, use the Environment."
2148+
"setLocation method."
21492149
)
21502150

21512151
# Read weather file
@@ -2673,7 +2673,7 @@ def pressure_function(h):
26732673

26742674
def calculateDensityProfile(self):
26752675
"""Compute the density of the atmosphere as a function of
2676-
heigth by using the formula rho = P/(RT). This function is
2676+
height by using the formula rho = P/(RT). This function is
26772677
automatically called whenever a new atmospheric model is set.
26782678
26792679
Parameters
@@ -2702,7 +2702,7 @@ def calculateDensityProfile(self):
27022702

27032703
def calculateSpeedOfSoundProfile(self):
27042704
"""Compute the speed of sound in the atmosphere as a function
2705-
of heigth by using the formula a = sqrt(gamma*R*T). This
2705+
of height by using the formula a = sqrt(gamma*R*T). This
27062706
function is automatically called whenever a new atmospheric
27072707
model is set.
27082708
@@ -3280,7 +3280,7 @@ def geodesicToUtm(self, lat, lon, datum):
32803280
x = 500000 + K0 * n * (ag + J + K)
32813281
y = N0 + K0 * (m + n * np.tan(lat) * (ag * ag / 2 + L + M))
32823282

3283-
# Convert the output lat and lon to degress
3283+
# Convert the output lat and lon to degrees
32843284
lat = lat * 180 / np.pi
32853285
lon = lon * 180 / np.pi
32863286
lon_mc = lon_mc * 180 / np.pi
@@ -3328,7 +3328,7 @@ def utmToGeodesic(self, x, y, utmZone, hemis, datum):
33283328
y = y + 10000000
33293329

33303330
# Calculate the Central Meridian from the UTM zone number
3331-
centralMeridian = utmZone * 6 - 183 # degress
3331+
centralMeridian = utmZone * 6 - 183 # degrees
33323332

33333333
# Select the desired datum
33343334
if datum == "SAD69":
@@ -3475,7 +3475,7 @@ def decimalDegressToArcSeconds(self, angle):
34753475
min: float
34763476
The arc minutes. 1 arc-minute = (1/60)*degree
34773477
sec: float
3478-
The arc Seconds. 1 arc-secon = (1/360)*degree
3478+
The arc Seconds. 1 arc-second = (1/360)*degree
34793479
"""
34803480

34813481
if angle < 0:
@@ -3494,7 +3494,7 @@ def decimalDegressToArcSeconds(self, angle):
34943494

34953495
def printEarthDetails(self):
34963496
"""[UNDER CONSTRUCTION]
3497-
Function to print informations about the Earth Model used in the
3497+
Function to print information about the Earth Model used in the
34983498
Environment Class
34993499
35003500
"""

0 commit comments

Comments
 (0)