Pattern only indicates amount of yarn needed in grams. Can I look up the yarn find the yards and calculate that way?
depending on the weight of yarn (that is, the thickness… fingering, worsted, etc) you can get a decent guesstimate. here’s a handy calculator for going back and forth between weight and length. oz and yards are the default, but you can change to grams and/or meters as needed: http://www.thedietdiary.com/knittingfiend/tools/ConvertYardsorMetersToOunces.html