Giter Club home page Giter Club logo

thomasalbin / spacesciencetutorial Goto Github PK

View Code? Open in Web Editor NEW
232.0 232.0 59.0 18.1 MB

This repository is part of a "Space Science with Python" tutorial series. The corresponding articles that explain each part are available on Medium (https://medium.com/@thomas.albin). If you do not have a Medium account, please visit my posts on Reddit, to get the free available Medium friend links (https://www.reddit.com/user/MrAstroThomas).

License: MIT License

Jupyter Notebook 92.06% Python 6.71% HCL 1.23%

spacesciencetutorial's People

Contributors

ajpmaclean avatar thomasalbin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spacesciencetutorial's Issues

SPICE (NOSUCHFILE) - filename issues

SpaceScienceTutorial/part13/

When I tried to load filenames as '67P_CHURY_GERAS_2004_2016.BSP'. the function furnsh didn't accept it, despite 'file.bsp' is in the right folder. It seems some behavior related to characters filename

If I change it to , e.g., 'chgeras.BSP', it runs nicely



--------------------------------------------------------------------------
SpiceNOSUCHFILE                           Traceback (most recent call last)
<ipython-input-6-68654f2ffb0d> in <module>
      2 
      3 
----> 4 spiceypy.furnsh(dir+'kernel_meta.txt')

~/anaconda3/envs/space/lib/python3.8/site-packages/spiceypy/spiceypy.py in with_errcheck(*args, **kwargs)
    106         try:
    107             res = f(*args, **kwargs)
--> 108             check_for_spice_error(f)
    109             return res
    110         except BaseException:

~/anaconda3/envs/space/lib/python3.8/site-packages/spiceypy/spiceypy.py in check_for_spice_error(f)
     89         traceback = qcktrc(200)
     90         reset()
---> 91         raise stypes.dynamically_instantiate_spiceyerror(
     92             short=short, explain=explain, long=long, traceback=traceback
     93         )

SpiceNOSUCHFILE: 
================================================================================

Toolkit version: CSPICE66

SPICE(NOSUCHFILE) --

The fourth file '/home/decicco/Documents/Programas/SpaceScienceTutorial/_kernels/spk/67P_CHURY_GE' specified by KERNELS_TO_LOAD in the file /home/decicco/Documents/Programas/SpaceScienceTutorial/kernel_meta.txt could not be located.

furnsh_c --> FURNSH --> ZZLDKE

SpiceNOLEAPSECONDS:

Screen Shot 2021-05-23 at 1 05 50 PM

Hi, I am a beginner and hence am not able to figure out what is wrong here, could you please help?

Pygame - drawing circles - How to add a label?

Hi,
I need to add a label to this circle ( above or below the circle to indicate its name).
Can anyone please suggest me the change I need to do?
Thank you.

      pygame.draw.circle(screen, (0, 0, 255), [x2, y2], 10)

Issue loading in kernels

So I try and run these and I was fine until I restarted python. If I run

spiceypy.furnsh('kernel_meta.txt')

I get:

Toolkit version: CSPICE_N0067

SPICE(NOLEAPSECONDS) --

The variable that points to the leapseconds (DELTET/DELTA_AT) could not be located in the kernel pool. It is likely that the leapseconds kernel has not been loaded.

utc2et_c --> UTC2ET --> TTRANS

================================================================================

none of the kernels load but if I do the

spiceypy.furnsh('lsk/naif0012.tls')

It works fine. So for some reason it does not like reading these from the text file. Any suggestions? I am using Anaconda.

excess of variable names - part 7

VALUES(...) have 12 entries causing an issue .

BTW, APHELION OR APOHELION?

Insert the data

cur.executemany('INSERT OR REPLACE INTO '
'comets_main(NAME, '
'ORBIT_TYPE, '
'PERIHELION_AU, '
'SEMI_MAJOR_AXIS_AU, '
'APHELION_AU, '
'ECCENTRICITY, '
'INCLINATION, '
'ARG_OF_PERIH_DEG, '
'LONG_OF_ASC_NODE_DEG, '
'EPOCH_UTC, '
'EPOCH_ET, '
'ABSOLUTE_MAGNITUDE, '
'SLOPE_PARAMETER'
') '
'VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)',
c_df[['Designation_and_name',
'Orbit_type',
'Perihelion_dist',
'SEMI_MAJOR_AXIS_AU',
'APHELION_AU',
'e',
'i',
'Peri',
'Node',
'EPOCH_UTC',
'EPOCH_ET',
'H',
'G']].values)

I think the address changed in part 12 to download the model.

The file download did not work for the address currently in the tutorial.
DL_URL = 'https://repos.cosmos.esa.int/socci/projects/SPICE_KERNELS/repos/rosetta/raw/kernels/'
+ 'dsk/ROS_CG_M001_OSPCLPS_N_V1.OBJ'

The file generated starts out with :

<title>Log in - S2E2 Bitbucket</title><script>

window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};window.WRM._unparsedErrors=window.WRM._unparsedErrors||{};
WRM._unparsedData["com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path"]="\u0022\u005C/bitbucket\u0022";
WRM._unparsedData["com.atlassian.plugins.atlassian-clientside-extensions-runtime:runtime.atlassianDevMode"]="false";
WRM._unparsedData["com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:date-format-preference.data"]="\u0022\u0022";
WRM._unparsedData["com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:user-keyboard-shortcuts-enabled.data"]="true";
WRM._unparsedData["com.atlassian.analytics.analytics-client:policy-update-init.policy-update-data-provider"]="false";
WRM._unparsedData["com.atlassian.analytics.analytics-client:programmatic-analytics-init.programmatic-analytics-data-provider"]="false";
WRM._unparsedData["com.atlassian.bitbucket.server.feature-wrm-data:user.time.zone.onboarding.data"]="true";
if(window.WRM._dataArrived)window.WRM._dataArrived();</script>

Going there takes you to a password protected location.

I found the model at https://s2e2.cosmos.esa.int/bitbucket/projects/SPICE_KERNELS/repos/rosetta/browse/misc/models/ROS_CG_M001_OSPCLPS_N_V1.OBJ

Though the code does not work there either. It does not appear to be an issue with the func function as that works on part 7 or whatever it was that used it previously. So no idea what is going on here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.