sdarji

Original Gravity using Salinity Refractometer

Jun 2nd, 2026
39
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. # ****************************************************************************
  4. # Inputs: Original Salinity and Final Salinity (both in % solute by weight)
  5. # Output: Final ABV
  6. # Produced 2026-06-02
  7. # Author: Sachin (Chino) Darji, adopted from other code.)
  8. # Original author: unknown, from 2016-09-24
  9. # ****************************************************************************
  10.  
  11. def salinity2brix(salinity):
  12.     Brix = 1.187*salinity
  13.     return Brix
  14.      
  15. OS = int(input('What was your original salinity reading?'))/10  # Original Salinity
  16. FS = int(input('What is your final salinity reading?'))/10      # Final Salinity
  17. OE = salinity2brix(OS)                                          # Original Extract (Brix)
  18. AE = salinity2brix(FS)                                          # Apparent Extract (Brix)
  19. OG = (OE / (258.6-((OE / 258.2)*227.1))) + 1
  20. FG = 1.001843 - 0.002318474*OB - 0.000007775*OB*OB - 0.000000034*(OE**3) + 0.00574*AE + 0.00003344*(AE**2) + 0.000000086*(AE**3)
  21. abv = (OG - FG) *131.25100
  22. print("your ABV is ~", abv)
  23. print("Your original extract (Brix) was: ", OE,"\nGiving an original gravity of ", OG, "\nYour apparent extract (Brix) was: ", AE, "\nGiving a final Gravity of ", FG)
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • Hihunbe
    31 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Amtiryg
    6 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=jiqmvpaxye
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment