text
stringlengths
81
112k
plot an OSSOS observation on the OSSOS plot. def ossos_pointings(self): """ plot an OSSOS observation on the OSSOS plot. """ match = re.match('(\d+)\D(\d+)', self.expnum.get()) if match is not None: expnum = int(match.group(1)) ccd = int(match.group(2)) ...
Retrieve the MEGACAM pointings that overlap with the current FOV and plot. @return: None def get_pointings(self): """ Retrieve the MEGACAM pointings that overlap with the current FOV and plot. @return: None """ self.camera.set("MEGACAM_40") (ra1, dec1) = self.c2...
Print the currently defined FOVs def save_pointings(self): """Print the currently defined FOVs""" i = 0 if self.pointing_format.get() in ['GEMINI ET', 'CFHT ET', 'CFHT API']: logging.info('Beginning table pointing save.') for pointing in self.pointings: n...
Clear the plot and then redraw it. def doplot(self): """ Clear the plot and then redraw it. """ w = self w.delete(ALL) w.coord_grid() w.objList.delete(0, END) self._plot()
Draw the actual plot. def _plot(self): """Draw the actual plot. """ w = self kbos = self.kbos re_string = w.FilterVar.get() vlist = [] for name in kbos: if not re.search(re_string, name): continue vlist.append(name) ...
Using the fk_candidate_observations as input get the Object.planted file from VOSpace and match planted sources with found sources. The Object.planted list is pulled from VOSpace based on the standard file-layout and name of the first exposure as read from the .astrom file. :param fk_candidate_observa...
Convert Modfied Juian Date (JD = 2400000.5) to GMST Take from P.T. Walace routines def mjd2gmst(mjd): """Convert Modfied Juian Date (JD = 2400000.5) to GMST Take from P.T. Walace routines""" D2PI= 6.2831853071795864769252867665590057683943387987502 DS2R= 7.272205216643039903848711535...
Convert ecliptic coordinates to equatorial coordinates def ec2eq(self): """Convert ecliptic coordinates to equatorial coordinates""" import math #from numpy.matlib import sin, cos, arcsin, arctan2 from math import sin, cos from math import asin as arcsin from math impor...
plot the ecliptic plane line on the given axes. def plot_line(axes, fname, ltype): """plot the ecliptic plane line on the given axes.""" x = np.genfromtxt(fname, unpack=True) axes.plot(x[0], x[1], ltype)
Calculate the apparent magnitude of a TNO given its absolute magnitude H, for a given distance. :param H: TNO absolute magnitude (unitless) :param d: barycentric distance (AU) :param phi: phase angle (0-1, always v close to 1 for TNOs) :return: apparent magnitude of TNO def apmag_at_absmag(H, d, phi=1...
Summary format: object mag stdev dist ..E nobs time av_xres av_yres max_x max_y a ..E e ..E i ..E node ..E argperi ..E M ..E ra_dis dec_dis def from_summary_line(cls, summaryLine, version=4, existing_object=None): ''' Summary format: object mag...
Class format: class wrt n m security object mag stdev F H_sur dist ..E nobs time av_xres av_yres max_x max_y a ..E e ..E i ..E node ..E argperi ..E time_peri ..E rate def from_class_line(cls, classLine, version=4, existing_object=None): ...
execute SCCI command This function calls SCCI server modules :param host: hostname or IP of iRMC :param userid: userid for iRMC with administrator privileges :param password: password for userid :param cmd: SCCI command :param port: port number of iRMC :param auth_method: irmc_username ...
get SCCI command partial function This function returns SCCI command partial function :param host: hostname or IP of iRMC :param userid: userid for iRMC with administrator privileges :param password: password for userid :param port: port number of iRMC :param auth_method: irmc_username :par...
get Virtual CD Media Set Parameters Command This function returns Virtual CD Media Set Parameters Command :param remote_image_server: remote image server name or IP :param remote_image_user_domain: domain name of remote image server :param remote_image_share_type: share type of ShareType :param rem...
get Virtual FD Media Set Parameters Command This function returns Virtual FD Media Set Parameters Command :param remote_image_server: remote image server name or IP :param remote_image_user_domain: domain name of remote image server :param remote_image_share_type: share type of ShareType :param rem...
get iRMC report This function returns iRMC report in XML format :param host: hostname or IP of iRMC :param userid: userid for iRMC with administrator privileges :param password: password for userid :param port: port number of iRMC :param auth_method: irmc_username :param client_timeout: tim...
get essential properties This function returns a dictionary which contains keys as in prop_keys and its values from the report. :param report: SCCI report element :param prop_keys: a list of keys for essential properties :returns: a dictionary which contains keys as in prop_keys and ...
get capabilities properties This function returns a dictionary which contains keys and their values from the report. :param d_info: the dictionary of ipmitool parameters for accessing a node. :param capa_keys: a list of keys for additional capabilities properties. :param gpu_ids: the list of stri...
process session for Bios config backup/restore or RAID config operation :param irmc_info: node info :param session_timeout: session timeout :param upgrade_type: flag to check upgrade with bios or irmc :return: a dict with following values: { 'upgrade_message': <Message of firmware u...
Gather fgi(foreground initialization) information of raid configuration This function returns a fgi status which contains activity status and its values from the report. :param report: SCCI report information :returns: dict of fgi status of logical_drives, such as Initializing (10%) or I...
get firmware upgrade status of bios or irmc :param irmc_info: dict of iRMC params to access the server node { 'irmc_address': host, 'irmc_username': user_id, 'irmc_password': password, 'irmc_port': 80 or 443, default is 443, 'irmc_auth_method': 'basic' or '...
do it row by row, to save memory.... def median(ma): """ do it row by row, to save memory....""" _median = 0*ma[0].filled(fill_value=0) for i in range(ma.shape[-1]): t=xmedian(ma[:,:,i]) _median[:,i]=t t=None return _median
Given a masked numpy array (build using numpy.ma class) return the median value of the array. def xmedian(ma): """ Given a masked numpy array (build using numpy.ma class) return the median value of the array.""" import numpy _medianIndex = numpy.floor(ma.count(axis=0)/2.0) _sortIndex = ma.argso...
Generates a name for an object given the information in its astrom observation header and FITS header. :param q: a queue of provisional names to return. :type q: Queue :param astrom_header: :param fits_header: def _generate_provisional_name(q, astrom_header, fits_header): """ Generates a na...
The user has pressed the keybind for toggling autoplay. def on_toggle_autoplay_key(self): """ The user has pressed the keybind for toggling autoplay. """ if self.autoplay_manager.is_running(): self.autoplay_manager.stop_autoplay() self.view.set_autoplay(False) ...
Initiates acceptance procedure, gathering required data. @param auto: Set on_accept to automatic measure of source? def on_accept(self, auto=False): """ Initiates acceptance procedure, gathering required data. @param auto: Set on_accept to automatic measure of source? """ ...
After a source has been mark for acceptance create an MPC Observation record. @param minor_planet_number: The MPC Number associated with the object @param provisional_name: A provisional name associated with the object @param note1: The observational quality note @param note2: The obser...
WARNING WARNING: THIS IS ACUTALLY on_do_accept BUT HACKED. TODO: Make it so that we have a short 'vetting' accept dialogue. Current accept dialogue too heavy for this part of process, thus the hack. Process the rejection of a vetting candidate, includes writing a comment to file. @p...
Display the comparison image @param research: find a new comparison image even if one already known? def on_load_comparison(self, research=False): """ Display the comparison image @param research: find a new comparison image even if one already known? """ cutout = self....
Pull the astrometric header for each image, compute an x/y transform and compare to trans.jmp this one overides trans.jmp if they are very different. @param expnums: @param ccd: @param version: @param prefix: @return: None def compute_trans(expnums, ccd, version, prefix=None, default="WCS"): ...
run the actual step2 on the given exp/ccd combo def step2(expnums, ccd, version, prefix=None, dry_run=False, default="WCS"): """run the actual step2 on the given exp/ccd combo""" jmp_trans = ['step2ajmp'] jmp_args = ['step2bjmp'] matt_args = ['step2matt_jmp'] idx = 0 for expnum in expnums: ...
parts0.dat) contains the id number, particle fraction (ignore) a, ecc, inc, long. asc., arg. per, and mean anomaly for every particle in the simulation at t=0. The second (parts3999.dat) contains the same info at t=3.999 Gyrs for these particles. :return: def parse_nate_sims(path): ''' parts0.dat)...
Convert netmask from CIDR format(integer) to doted decimal string. def _convert_netmask(mask): """Convert netmask from CIDR format(integer) to doted decimal string.""" if mask not in range(0, 33): raise scci.SCCIInvalidInputError( 'Netmask value is invalid.') return socket.inet_ntoa(st...
Apply the configuration to iRMC. def apply(self, reboot=False): """Apply the configuration to iRMC.""" self.root.use_virtual_addresses = True self.root.manage.manage = True self.root.mode = 'new' self.root.init_boot = reboot self.client.set_profile(self.root.get_json())
Delete VIOM configuration from iRMC. def terminate(self, reboot=False): """Delete VIOM configuration from iRMC.""" self.root.manage.manage = False self.root.mode = 'delete' self.root.init_boot = reboot self.client.set_profile(self.root.get_json())
Set LAN port information to configuration. :param port_id: Physical port ID. :param mac: virtual MAC address if virtualization is necessary. def set_lan_port(self, port_id, mac=None): """Set LAN port information to configuration. :param port_id: Physical port ID. :param mac: v...
Set iSCSI volume information to configuration. :param port_id: Physical port ID. :param initiator_iqn: IQN of initiator. :param initiator_dhcp: True if DHCP is used in the iSCSI network. :param initiator_ip: IP address of initiator. None if DHCP is used. :param initiator_netmask...
Set FibreChannel volume information to configuration. :param port_id: Physical port ID. :param target_wwn: WWN of target. :param target_lun: LUN number of target. :param boot_prio: Boot priority of the volume. 1 indicates the highest priority. :param initiator_wwn...
Create ports with former port index. :param port_handler: Port information to be registered. Depending on slot type and card type, it is necessary to register LAN ports with former index to VIOM table. def _pad_former_ports(self, port_handler): """Create ports with former port index. ...
Black magic to account for the fact that libsndfile's behavior varies depending on file format when using the virtual io api. If you ask for more samples from an ogg or flac file than are available at that moment, libsndfile will give you no more samples ever, even if more bytes arrive in the buffer la...
Converts an integer to a base n string where n is the length of the provided alphabet. Modified from http://en.wikipedia.org/wiki/Base_36 def encode(number, alphabet): """ Converts an integer to a base n string where n is the length of the provided alphabet. Modified from http://en.wikipedia....
Mu-law compress a block of audio samples, and convert them into a categorical distribution def categorical(x, mu=255, normalize=True): """ Mu-law compress a block of audio samples, and convert them into a categorical distribution """ if normalize: # normalize the signal mx = x....
Invert categorical samples def inverse_categorical(x, mu=255): """ Invert categorical samples """ flat = x.reshape((-1, x.shape[-1])) indices = np.argmax(flat, axis=1).astype(np.float32) indices = (indices / mu) - 0.5 inverted = inverse_mu_law(indices, mu=mu).reshape(x.shape[:-1]) retur...
Synthesize one or more sine waves Args: duration (numpy.timdelta64): The duration of the sound to be synthesized freqs_in_hz (list of float): Numbers representing the frequencies in hz that should be synthesized def synthesize(self, duration, freqs_in_hz...
Synthesize periodic "ticks", generated from white noise and an envelope Args: duration (numpy.timedelta64): The total duration of the sound to be synthesized tick_frequency (numpy.timedelta64): The frequency of the ticking sound def synthesize(self, dura...
Synthesize white noise Args: duration (numpy.timedelta64): The duration of the synthesized sound def synthesize(self, duration): """ Synthesize white noise Args: duration (numpy.timedelta64): The duration of the synthesized sound """ sr = self.s...
Use the MPC file that has been built up in processing this work unit to generate another workunit. def query_ssos(self): """ Use the MPC file that has been built up in processing this work unit to generate another workunit. """ self._ssos_queried = True mpc_filen...
Update the SouceReading information for the currently recorded observations and then flush those to a file. @return: mpc_filename of the resulting save. def save(self): """ Update the SouceReading information for the currently recorded observations and then flush those to a file. @retur...
Get a writer. This method also makes the output filename be the same as the .track file but with .mpc. (Currently only works on local filesystem) :rtype MPCWriter def get_writer(self): """ Get a writer. This method also makes the output filename be the same as the .tra...
return 'true' if filename doesn't match name_filter regex and should be filtered out of the list. @param filename: @return: def _filter(self, filename): """ return 'true' if filename doesn't match name_filter regex and should be filtered out of the list. @param filename: ...
Gets a new unit of work. Args: ignore_list: list(str) A list of filenames which should be ignored. Defaults to None. Returns: new_workunit: WorkUnit A new unit of work that has not yet been processed. A lock on it has been acquired. Ra...
Get a listing of files for the appropriate task which may or may not be locked and/or done. def get_potential_files(self, ignore_list): """ Get a listing of files for the appropriate task which may or may not be locked and/or done. """ exclude_prefix = self.taskid == tas...
Moves the discovery triplet to the front of the reading list. Leaves everything else in the same order. def move_discovery_to_front(self, data): """ Moves the discovery triplet to the front of the reading list. Leaves everything else in the same order. """ readings = sel...
Do a query of the CADC Megacam table. Get all observations insize the box. Returns a file-like object def TAPQuery(RAdeg=180.0, DECdeg=0.0, width=1, height=1): """Do a query of the CADC Megacam table. Get all observations insize the box. Returns a file-like object""" QUERY =( """ SELECT """ ...
check the tags for the given expnum/ccd set. @param ops: @param my_expnum: @return: def check_tags(my_expnum, ops_set, my_ccds, dry_run=True): """ check the tags for the given expnum/ccd set. @param ops: @param my_expnum: @return: """ tags = storage.get_tags(my_expnum) count...
Given a list of exposure numbers and CCD, get them from the DB def get_flipped_ext(file_id,ccd): """Given a list of exposure numbers and CCD, get them from the DB""" import MOPfits import os, shutil filename=MOPfits.adGet(file_id,extno=int(ccd)) if int(ccd)<18: tfname=filename+"F"...
Get the exposure for a particular line in the meausre table def get_file_ids(object): """Get the exposure for a particular line in the meausre table""" import MOPdbaccess mysql = MOPdbaccess.connect('cfeps','cfhls',dbSystem='MYSQL') cfeps=mysql.cursor() sql="SELECT file_id FROM measure WHERE provis...
Do the script. def main(): """Do the script.""" parser = argparse.ArgumentParser( description='replace image header') parser.add_argument('--extname', help='name of extension to in header') parser.add_argument('expnum', type=str, help='exposure to...
Real deriv is to :math:`t`, complex deriv is to :math:`\ln t` def _deriv(UK, deriv): """Real deriv is to :math:`t`, complex deriv is to :math:`\ln t`""" if deriv == 0: return UK if isinstance(deriv, complex): def UKderiv(z): return (-z) ** deriv.imag * UK(z) return UKde...
convert lat/lon from the ecliptic to the invariable plane. def convert(lat, lon): """convert lat/lon from the ecliptic to the invariable plane.""" x = numpy.cos(lon) * numpy.cos(lat) y = numpy.sin(lon) * numpy.cos(lat) z = numpy.sin(lat) # Invariable plane: values in arcseconds. epsilon = 571...
Given a list of exposure numbers, find all the KBOs in that set of exposures def searchTriples(expnums,ccd): """Given a list of exposure numbers, find all the KBOs in that set of exposures""" import MOPfits,os import MOPdbaccess if len(expnums)!=3: return(-1) mysql=MOPdbacces...
Checks what error occured and looks for an appropriate solution. Args: error: Exception The error that has occured. download_request: The request which resulted in the error. def handle_error(self, error, download_request): """ Checks what error occu...
Get the date of the current observation by looking in the header of the observation for the DATE and EXPTIME keywords. The 'DATE AT MIDDLE OF OBSERVATION' of the observation is returned @return: Time def get_current_observation_date(self): """ Get the date of the current observ...
eff_max: Maximum of the efficiency function (peak efficiency) c: shape of the drop-off in the efficiency at bright end m0: transition to tappering at faint magnitudes sigma: width of the transition in efficeincy m1: magnitude at which peak efficeincy occurs square(m) = (eff_max-c*(m-21)**2)/(1+exp...
Parse the line from the .eff file that contains the efficiency function parameters for a 'square' function line : the line containt the parameters, must start with 'square_param' def parse_square_param(line): """ Parse the line from the .eff file that contains the efficiency function parameters for...
Parse through Jean-Marcs OSSSO .eff files. The efficiency files comes in 'chunks' meant to be used at different 'rates' of motion. def parse_eff(filename): """ Parse through Jean-Marcs OSSSO .eff files. The efficiency files comes in 'chunks' meant to be used at different 'rates' of motion. ...
Reads a value from the configuration file. Args: keypath: str Specifies the key for which the value is desired. It can be a hierarchical path. Example: "section1.subsection.key1" configfile: str Path to the config file to read. Defaults to None, in which case the appl...
Create a header for the CDATA section, as a visual guide. def _cdata_header(self, colsep="|"): """ Create a header for the CDATA section, as a visual guide. """ fields = self.fields header_lines = [] line = "" for fieldName in self.field_names: width ...
Append an target location to the ephemeris listing. def _append_cdata(self, coordinate): """ Append an target location to the ephemeris listing. """ fields = self.fields sra = coordinate.ra.to_string(units.hour, sep=':', precision=2, pad=True) sdec = coordinate.dec.to_st...
Write out a GEMINI formated OT ephemeris. This is just a hack of SSD Horizons output. def gemini_writer(self, f_handle): """ Write out a GEMINI formated OT ephemeris. This is just a hack of SSD Horizons output. """ f_handle.write(GEMINI_HEADER) # Date__(UT)__HR:MN Date________...
A simple script to loop over the standard tags for the mkpsf and step1 processing steps. If exposure/ccd combo isn't marked as 'success' then report the failure. This example uses the vos client directly. def mkpsf_failures(): """A simple script to loop over the standard tags for the mkpsf and ...
Given a list of exposure numbers, find all the KBOs in that set of exposures def searchTriples(expnums,ccd,plant=False): """Given a list of exposure numbers, find all the KBOs in that set of exposures""" import MOPfits,os import MOPdbaccess if len(expnums)!=3: raise TaskError, "got %d exp...
Get the 'nailing' images associated with expnum def get_nailing(expnum,ccd): """Get the 'nailing' images associated with expnum""" sql=""" SELECT e.expnum, (e.mjdate - f.mjdate) dt FROM bucket.exposure e JOIN bucket.exposure f JOIN bucket.association b ON b.expnum=f.expnum JOIN bucket.assoc...
Return the intersection between this frequency band and another. Args: other (FrequencyBand): the instance to intersect with Examples:: >>> import zounds >>> b1 = zounds.FrequencyBand(500, 1000) >>> b2 = zounds.FrequencyBand(900, 2000) >>> in...
An iterable of all bands in this scale def bands(self): """ An iterable of all bands in this scale """ if self._bands is None: self._bands = self._compute_bands() return self._bands
Ensure that every adjacent pair of frequency bands meets the overlap ratio criteria. This can be helpful in scenarios where a scale is being used in an invertible transform, and something like the `constant overlap add constraint <https://ccrma.stanford.edu/~jos/sasp/Constant_Overlap_Ad...
The quality factor of the scale, or, the ratio of center frequencies to bandwidths def Q(self): """ The quality factor of the scale, or, the ratio of center frequencies to bandwidths """ return np.array(list(self.center_frequencies)) \ / np.array(list(self...
Given a frequency band, and a frequency dimension comprised of n_samples, return a slice using integer indices that may be used to extract only the frequency samples that intersect with the frequency band def get_slice(self, frequency_band): """ Given a frequency band, and a fre...
Return a :class:`~zounds.spectral.LinearScale` instance whose upper frequency bound is informed by the nyquist frequency of the sample rate. Args: sample_rate (SamplingRate): the sample rate whose nyquist frequency will serve as the upper frequency bound of this scale ...
Convert hertz into a number of semitones above or below some reference value, in this case, A440 def _hz_to_semitones(self, hz): """ Convert hertz into a number of semitones above or below some reference value, in this case, A440 """ return np.log(hz / self._a440) / np.l...
Look up the name of a source using a resolver def resolve(object): """Look up the name of a source using a resolver""" import re sesame_cmd = 'curl -s http://cdsweb.u-strasbg.fr/viz-bin/nph-sesame/-oI?'+string.replace(object,' ','') f = os.popen(sesame_cmd) lines = f.readlines() f.close() ...
Minimize chart junk by stripping out unnecessary plot borders and axis ticks. The top/right/left/bottom keywords toggle whether the corresponding plot border is drawn def remove_border(axes=None, keep=('left', 'bottom'), remove=('right', 'top'), labelcol=ALMOST_BLACK): """ Minimize chart junk by stripping ...
Sample function showing how to interpret the dialog exit codes. This function is not used after every call to dialog in this demo for two reasons: 1. For some boxes, unfortunately, dialog returns the code for ERROR when the user presses ESC (instead of the one chosen for ESC). As th...
This demo shows the main features of the pythondialog Dialog class. def main(): """This demo shows the main features of the pythondialog Dialog class. """ try: demo() except dialog.error, exc_instance: sys.stderr.write("Error:\n\n%s\n" % exc_instance.complete_message()) sys.exi...
Given a list of exposure numbers, find all the KBOs in that set of exposures def searchTriples(expnums,ccd): """Given a list of exposure numbers, find all the KBOs in that set of exposures""" import MOPfits,os import MOPdbaccess if len(expnums)!=3: return(-1) ### Some program Consta...
Display the candidates contained in a candidate record list def discands(record): """Display the candidates contained in a candidate record list""" import pyfits pyraf.iraf.images() pyraf.iraf.images.tv() display = pyraf.iraf.images.tv.display width=128 cands = record['cands'] ...
Given the position and time determin if the given target is up. @param coordinate: the J2000 location of the source @param current_time: The time of the observations @return: True/False def is_up(coordinate, current_time): """ Given the position and time determin if the given target is up. @p...
The __main__ part of the script def TAPQuery(query): """The __main__ part of the script""" tapURL = "http://cadc-ccda.hia-iha.nrc-cnrc.gc.ca/tap/sync" ## Some default parameters for that TAP service queries. tapParams={'REQUEST': 'doQuery', 'LANG': 'ADQL', 'FORMAT': ...
run the actual step1jmp/matt codes. expnum: the CFHT expousre to process ccd: which ccd in the mosaic to process fwhm: the image quality, FWHM, of the image. In pixels. sex_thresh: the detection threhold to run sExtractor at wave_thresh: the detection threshold for wavelet maxcount: saturation...
Create JSON data for AdapterConfig. :returns: JSON data as follows: { "VIOMManage":{ }, "InitBoot":{ }, "UseVirtualAddresses":{ }, "BootMenuEnable":{ }, "...
Create JSON data for slot. :returns: JSON data for slot as follows: { "@SlotIdx":0, "OnboardControllers":{ "OnboardController": [ ] }, "AddOnCards":{ "AddOnCard": [ ...
Create JSON data for LANPort. :returns: JSON data as follows: { "@PortIdx":1, "PortEnable":{ }, "UseVirtualAddresses":{ }, "BootProtocol":{ }, "VirtualAddress":{ "MAC":{ ...
Create FC port. :returns: JSON for FC port as follows: { "@PortIdx":1, "PortEnable":{ }, "UseVirtualAddresses":{ }, "VirtualAddress":{ "WWNN":{ }, ...
Create JSON for CNA port. :returns: JSON for CNA port as follows: { "@PortIdx":1, "PortEnable":{ }, "Functions":{ } } def get_json(self): """Create JSON for CNA port. :returns: JSON for CNA...
Create JSON for FCBootEnvironment. :returns: JSON for FCBootEnvironment as follows: { "FCBootEnvironment":{ "FCTargets":{ "FCTarget":[ ] }, "FCLinkSpeed":{ ...
Create JSON data for iSCSI initiator. :returns: JSON data for iSCSI initiator as follows: { "DHCPUsage":{ }, "Name":{ }, "IPv4Address":{ }, "SubnetMask":{ }, ...
Create JSON data for iSCSI target. :returns: JSON data for iSCSI target as follows: { "DHCPUsage":{ }, "Name":{ }, "IPv4Address":{ }, "PortNumber":{ }, "B...
Scale the data cube into the range 0-255 def zscale(data,contrast,min=100,max=60000): """Scale the data cube into the range 0-255""" ## pic 100 random elements along each dimension ## use zscale (see the IRAF display man page or ## http://iraf.net/article.php/20051205162333315 import random x=[] for i in ran...
Update a row in ossuary with :param ims: an ImageQuery, contains image table and a connector :param image_id: the primary key of the row to be updated :param iq_zeropt: Keyword set if iq and zeropoint are to be checked for updating :param comment: Keyword set if image is to have a comment of Stephen's a...