GithubHelp home page GithubHelp logo

nikonlenses's Introduction

Nikon Lens Queries

This project convert the Nikon Lens data pages on http://www.photosynthesis.co.nz/nikon to a json to simplify lens data queries.

The web pages have an extensive list of all Nikon Lenses, but as a simple web pages also limited to data queries. A PowerShell script is used to download and convert the html pages to a JSON file to allow lens data queries.

(Permission granted from photosynthesis.co.nz)

For example:

# Get all 16mm Fisheye lenses.
$16mmFisheye = $allLensData.Where({ $_.Group -eq "Fisheye" -and $_.Lens.StartsWith("16/") })

foreach ($lens in $16mmFisheye) {
    "$($lens.Lens) $($lens.Type)"
}
16/3.5 F
16/3.5 K
16/3.5 Ai
16/2.8 Ai
16/2.8 Ai-S
16/2.8 D AF
# Get all heavy lenses >2000g.
$heavyLenses = $allLensData.Where({ [int]($_.Weight) -gt 2000 })

# Get the first 5 heaviest lenses.
$first5heavyLenses = $heavyLenses.GetEnumerator() | Sort-Object { [int]($_.Weight) } -Descending | Select-Object -First 5

foreach ($lens in $first5heavyLenses) {
    "$($lens.Lens) $($lens.Type) ($($lens.Weight)g)"
}
1200-1700/5.6-8 IF-ED Ai-P (16000g)
1000/6.3 Reflex F (9900g)
50cm/5 T·C S, M39 (8500g)
360-1200/11 ED Ai-S (8250g)
2000/11 Reflex A,C (7500g)

Use NikonHtmlToJson.ps1 to download and create the .json files, CombineToAllJson.ps1 to create the combined .json file and NikonLenses.ps1 for example queries using the combined .json file.

nikonlenses's People

Contributors

jurgen178 avatar

Stargazers

 avatar

Watchers

 avatar

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.