Published
Edited
Sep 26, 2022
2 stars
Exploration of NASA Acronyms with Multiple MeaningsCode.nasa.gov Data ExplorationsUntitledUntitledQuick Exploration of a selected subset of the DATA.NASA.GOV's data.json file. Not all the metadata but a selection so people can understand the fields that exist in the data schema.UntitledUntitledComparing human-generated vs. A.I.-generated keyword tags on Code.nasa.govFind Labor Hours To Generate OpenSouce NASA Code Since A Selected DateNASA's Open-Source Code Projects: NLP Generated Tags ClusterStars and constellations IIExoplanetsPublic Engagement with NASA's Open-Source Code Projects on GithubMapping Across TimeFinding Recent Additions to Code.nasa.govVisitors to .gov websites via API from analytics.usa.gov. NASA examplesLicenses of Open-Source NASA code projects on code.govNASA's Open-Source Code ProjectsMeteorite landingsUntitledPhases of the MoonInverted Nasa Photos
Asteroids API <a href="https://api.nasa.gov/api#neows-swagger">(N.E.O.)</a> Exploration
NASA Api ExplorerGithub Api ExplorerColor Rendering of SpectraMeteorite landingsGlobal Temperature TrendsWorking with data from transcriptsWorld Population Line GraphsGeometric Algebra Solar System SimulationList of Agencies using NOSA License in Projects on code.govGlobal surface temperature changeGISTEMP nos enseña sobre el calentamiento globalRe: “Can Moons Have Moons?”Distance to shoreEPIC “Blue Marble” BrowserRequest PlaygroundAnálisis de temperatura de superficie GISS (GISTEMP)Global Temperature TrendsNight Skies — Lights and Light Pollution WebGL GlobeSatellite ground track visualizerPt. 2 Can sound add value to data visualizations?
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
switch_with_your_key = "zLQyfmaclId2Zub8LTHrXFOjSknWfsUfzzHp0Wgx"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function addDays(date, days) {
var result = new Date(date);
result.setDate(result.getDate() + days);
return result;
}
Insert cell
Insert cell
Insert cell
date = new Date()
Insert cell
Insert cell
Insert cell
newDate = addDays(date,dateChanger)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
url = 'https://api.nasa.gov/neo/rest/v1/feed?start_date='+startDate+'&end_date='+endDate+'&detailed=true&api_key='
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
unflattened_asteroids = response.data.near_earth_objects
Insert cell
Insert cell
Insert cell
function takeMultipleDaysAndMerge(asteroid_by_days){
let asteroids_array = []
let keys = Object.keys(asteroid_by_days);
for (let i = 0; i < keys.length; i++){
asteroids_array.push(asteroid_by_days[keys[i]])
}
var merged = [].concat.apply([], asteroids_array);
return merged
}
Insert cell
Insert cell
Insert cell
Insert cell
all_asteroids = takeMultipleDaysAndMerge(unflattened_asteroids)
Insert cell
Insert cell
function refactorObj_1(objectRocks){
let new_astroids_array = []
for (let each = 0; each < objectRocks.length; each++){
let newRow = {}
newRow.name = objectRocks[each].name
newRow.size = objectRocks[each]['estimated_diameter']['kilometers']['estimated_diameter_max']
newRow.x = objectRocks[each]['close_approach_data'][0]['relative_velocity']['kilometers_per_second']
newRow.y = objectRocks[each]['close_approach_data'][0]['miss_distance']['lunar']
new_astroids_array.push(newRow)
}
return new_astroids_array
}
Insert cell
Insert cell
Insert cell
Insert cell
function addLabels(data_withoutLabels,x_and_y){
let data = data_withoutLabels
data.x = x_and_y[0]
data.y = x_and_y[1]
return data
}
Insert cell
Insert cell
data = addLabels(data_withoutLabels,["kilometers per second","distance from Earth at closet path in multiples of Earth to Moon distance"])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
y = d3.scaleLinear()
.domain(d3.extent(data, d => d.y)).nice()
.domain([0,250])
.range([height - margin.bottom, margin.top])
// y = d3.scaleLinear()
// .domain(d3.extent(data, d => d.y))
// .range([height - margin.bottom, margin.top])
Insert cell
Insert cell
Insert cell
d3 = require("d3@5")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more