Sign in to follow this  
Steve Shanbaum

Base Curve Charts

Recommended Posts

This is to get the conversation started on Base Curve Charts within the LPDS.

(Very condensed and slightly modified) Zeiss presented something similar to the following as a suggested terse method of transmitting the Base Curve Charts.  Steve should be able to post the actual presentation to get much better detail to explain this.  

Add,  Sphere, Cyl, Base
0,      -9,          -4,    NA
0,      -9,          -2,      8
0,      -9,            0,      6
0,      -6,          -4,    NA
0,      -6,          -2,      6
0,      -6,            0,      4

Where a -6sph, -2.5cyl would pick a 6 base.  

Which, at first glance, to fit into JSON tersely, would be something like:

“Base Curve Charts” : [
 {
 “ID” : “123”,
 “Owner ID” : “TVC”,
 “Adds” : 
  [ “0” : 
    { Spheres : 
      [
        “-9” : 
          [
            “-4” : “NA”,
            “-2” : 8,
            “0” : 6
          ],
       “-6” : 
        [
          “-4” : “NA”, 
          “-2” : 6, 
          “0” : 4
        ] 
      ]
    }
  ]
}
]
 

Which, since JSON parsers don't ensure that things get spit out in the same order that they were input in, the readability goes out the window.  It also doesn't have to be interpreted into JSON and could be left more in the original format.  But, this is just to get conversation going about this.    

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this